iTOP Data Format Proposals
Kurtis Nishimura University of Hawaii September 21, 2012 US Firmware Meeting
1
iTOP Data Format Proposals Kurtis Nishimura University of Hawaii - - PowerPoint PPT Presentation
iTOP Data Format Proposals Kurtis Nishimura University of Hawaii September 21, 2012 US Firmware Meeting 1 iTOP Data Formatting Two sources of data, divided by fiberoptic transceiver (or by USB endpoint pair for local test/use) [see here]:
1
DSP_cPCI or DSP_FIN (COPPER).
TRG_FIN (COPPER).
2
*Data flow is asymmetric. Data coming from back- to front- is less common, but should be given priority so that commands are executed regardless of front- status.
3
– Written by Xin Gao. – Trigger algorithm will need revisiting, but general data flow/combining can be used. – Previous document on data format is available here:
– Primary data structure is 32-bit word. Two types: data & control.
0 P P P C C C C T T T T T T T T T T T T T T T T T T T T T T T T
Trigger hit data word: 31 0 P – PMT # C – CH # T – Timing data
1 0 0 0 M M M M F F R R R R R R R R R R R R R R R R R R R R R R
Control word: link initialization (SCROD TRG_FIN): 31 0 M – iTOP Module # F – Fiber # R – Resereved
1 0 0 1 W W W W R R R R R R R R R R R R R R R R R R R R R R R R
Control word: wait to transmit (TRG_FIN SCROD): 31 W – Wait code R – Resereved
4
5
6
Word Bits 31:16 Bits 15:0 Notes Header word TBD (previously 0x00BE11E2) 1 Target SCROD ID Or generic ID to send to all SCRODs. 2 Command word 3 Associated data words e.g., register address 4 Associated data words e.g., register data to write/read 5 …
7
– Primary commands will be a load or a read of a specific memory address.
– Each command from back-end will be acknowledged with packet by front-end, so verification can be done by software.
– Helpful for resynchronization if a misformatted packet arrives.
– Header packet – Waveform packets [x128] – Housekeeping packet [temperature & DAC information] – Footer packet
8
in case we find we need them.
9
10
Word Bits 31:16 Bits 15:0 Notes Header word TBD (previously 0x00BE11E2) 1 Packet size in words (not including this word or header) 2 Protocol freeze data YYYYMMDD in BCD 3 Header packet ID word TBD (previously was 0x0000EADA) 4 SCROD ID As read from SCROD EEPROM 5 Event Number 6 Event Type E.g., Regular/software trigger 7 Event Flags E.g., Pedestal mode. 8 Number of waveform packets this event 9 Number of auxiliary packets this event 10 Checksum Payload only, header/footer not included. 11 Footer TBD (previously “bPID” in ASCII, 0x62504944)
11
Word Bits 31:16 Bits 15:0 Notes Header word TBD (previously 0x00BE11E2) 1 Packet size in words (not including this word or header) 2 Waveform packet ID word TBD (previously was 0x00C0FFEE) 3 Waveform segments this packet 4 Waveform origin window Identifies ASIC, CH, ROW, COL, WINDOW, SAMPLE of starting point for following waveform 5 Number of waveform points 6 Waveform Data 0 Waveform Data 1 … … … Repeat for another waveform … … … N-2 Checksum Payload only, header/footer not included. N-1 Footer TBD (previously “bPID” in ASCII, 0x62504944)
12
Word Bits 31:16 Bits 15:0 Notes Header word TBD (previously 0x00BE11E2) 1 Packet size in words (not including this word or header) 2 Waveform packet ID word TBD (previously was 0x00C0FFEE) 3 Waveform segments this packet 4 Waveform origin window Identifies ASIC, CH, ROW, COL, WINDOW, SAMPLE of starting point for following waveform 5 Number of waveform points 6 Waveform Data 0 Waveform Data 1 … … … Repeat for another waveform … … … N-2 Checksum Payload only, header/footer not included. N-1 Footer TBD (previously “bPID” in ASCII, 0x62504944)
due to the order in which data is fastest digitized.
13
Word Bits 31:16 Bits 15:0 Notes Header word TBD (previously 0x00BE11E2) 1 Packet size in words (not including this word or header) 2 Waveform packet ID word TBD (previously was 0x00C0FFEE) 3 Waveform segments this packet 4 Waveform origin window Identifies ASIC, CH, ROW, COL, WINDOW, SAMPLE of starting point for following waveform 5 Number of waveform points 6 Waveform Data 0 Waveform Data 1 … … … Repeat for another waveform … … … N-2 Checksum Payload only, header/footer not included. N-1 Footer TBD (previously “bPID” in ASCII, 0x62504944)
packets? I think if we find it is necessary, we can add it as an auxiliary packet that covers all ASICs.
14