
DRS4 Evaluation Board User’s Manual
Page 6 of 21
CY7C68013A/drs_eval1.iic Compiled firmware file (For Cypress EZ-USB Console
download)
CY7C68014A/* Remaining files are standard files from EZ-USB development
kit
The FPGA firmware implements a set of control and status registers, through which the DRS4
can be controlled and read out. The mapping of the control registers is as follows:
# Ofs. Bit Name Comment
0 0x00 0 start_trig write a "1" to start the domino wave
0 0x00 1 reinit_trig write a "1" to stop & reset the DRS chip
0 0x00 2 soft_trig write a "1" to stop the DRS chip & read the data to RAM
0 0x00 3 flash_trig Flash contents of RAM into EEPROM
0 0x02 18 led 1=on, 0=blinks once at beginning of DRS chip readout
0 0x02 19 tcal_en switch on (1) / off (0) 264 MHz calib. sig. for DRS chips
0 0x02 21 transp_mode 1=send DRS inputs to outputs ("transparent mode")
0 0x02 22 enable_trigger write a "1" to enable hardware trigger
0 0x02 23 readout_mode 0:start from first bin, 1:start from domino stop
0 0x02 24 neg_trigger 1=trigger on high to low transition
0 0x02 25 acalib write "1" to enable amplitude calibration
0 0x02 27 dactive 0:stop domino wave during readout, 1:keep it running
0 0x02 28 standby 1: put chip in standby mode
1 0x04 31..16 DAC0 Set DAC 0 (=A, ROFS)
1 0x06 15..0 DAC1 Set DAC 1 (=B, CMOFS)
2 0x08 31..16 DAC2 Set DAC 2 (=C, CAL-)
2 0x0A 15..0 DAC3 Set DAC 3 (=D, CAL+)
3 0x0C 31..16 DAC4 Set DAC 4 (=E, BIAS)
3 0x0E 15..0 DAC5 Set DAC 5 (=F, TLEVEL)
4 0x10 31..16 DAC6 Set DAC 6 (=G, O-OFS)
4 0x12 15..0 DAC7 Set DAC 7 (=H, -)
5 0x14 31..24 configuration Bit0: DMODE, Bit1: PLLEN, Bit2: WSRLOOP
5 0x14 23..16 channel_config 1=1x8k,0x11=2x4k,0x33=4x2k,0xFF=8x1k
5 0x16 7..4 first_chn first channel address to read out (0..9)
5 0x16 3..0 last_chn last channel address to read out (1..9)
6 0x18 31..16 trigger_delay trigger delay in ticks of roughly 0.56 ns
6 0x1A 15..0 sampling_freq sampling frequency in ticks (=1024/fsamp*0.120-2)
While the mapping of the status registers is like this:
# Ofs. Bits Name Comment
0 0x00 31..16 board_magic 0xC0DE, Magic number for DRS board identification
0 0x02 15..8 board_type 5 for DRS4 USB Evaluation Board 1.1
0 0x02 7..0 drs_type 4 for DRS4
1 0x04 0 running "1" while domino wave running or readout in progress
2 0x08 31..16 stop_cell position of cell where sampling stopped at last trigger
8 0x20 31..16 temperature temperature in 0.0625 deg. C units
9 0x24 31..16 serial_cmc Serial number CMC board
9 0x26 15..0 version_fw firmware version (SVN revision)