This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| phase1:phase1:pxlpilotfed [2015/12/09 12:45] – [case 'a'] leac | phase1:phase1:pxlpilotfed [2015/12/09 19:01] (current) – [case 'a'] leac | ||
|---|---|---|---|
| Line 32: | Line 32: | ||
| Inject one trigger and readout FED.\\ | Inject one trigger and readout FED.\\ | ||
| - | How to interpret output:\\ | + | **How to interpret output**:\\ |
| - | Output of FIFO 1: Data for all channels which are connected is printed (loop over all channels).\\ | + | |
| - | Decodes TBM Header and Trailers. \\ | + | |
| - | Channel mapping for FIFO1 is described on p.2 here: http:// | + | |
| + | **Output of Piggy**: (Two columns correspond to two TBM cores)\\ | ||
| + | PIGGYup | ||
| + | ffff ffff 1111111111111111 | ||
| + | ffff ffff 1111111111111111 | ||
| + | ffff ffff 1111111111111111 | ||
| + | ffff ffff 1111111111111111 | ||
| + | ffff ffff 1111111111111111 | ||
| + | ffdf ffbf 1111111111011111 | ||
| + | f006 e00e 1111000000000110 | ||
| + | e1ff 03ff 1110000111111111 | ||
| + | b880 7100 1011100010000000 | ||
| + | 7fff ffff 0111111111111111 | ||
| + | ffff ffff 1111111111111111 | ||
| + | ffff ffff 1111111111111111 | ||
| + | ffff ffff 1111111111111111 | ||
| + | | ||
| + | The above is the output of one fiber. The fiber is selcted by a VME command: | ||
| + | //this choose the channel read by piggy: ex. CHa_CHb_mux+0x2304 reads channel 4 | ||
| + | VMEout(0x3, | ||
| + | VMEout(0x3, | ||
| + | | ||
| + | The output can be decoded using Satoshi' | ||
| + | ./ | ||
| + | ----------------------------------- | ||
| + | ----------- TBM B ----------------- | ||
| + | ----------------------------------- | ||
| + | ---- Input words ------- | ||
| + | 0111 1111 1100 0000 | ||
| + | 0001 1011 1000 0111 | ||
| + | 1111 1110 1110 0010 | ||
| + | 0000 0001 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 11 | ||
| + | --------------------------- | ||
| + | 011111111100 : TBM_Header | ||
| + | 00000001 : Event Number | ||
| + | 10111000 : DataID | ||
| + | 011111111110 : TBM Trailer | ||
| + | 1110001000 | ||
| + | * 1 : NoTokenPass | ||
| + | * 1 : Reset TBM | ||
| + | * 1 : Reset Roc | ||
| + | * 0 : Sync Error | ||
| + | * 0 : Sync Trigger | ||
| + | * 0 : Clear Trig Cntr | ||
| + | * 1 : Cal Trigger | ||
| + | * 0 : Stack Full | ||
| + | * 0 : Auto Reset Sent | ||
| + | * 0 : Pkam Reset Sent | ||
| + | 000001 | ||
| + | - - - end decoding - - - - | ||
| + | Data structure of input seems fine. Decode finished finiding TBM trailer. | ||
| + | - - - Dump leftover - - - | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 11 | ||
| + | ----------------------------------- | ||
| + | ----------- TBM A ----------------- | ||
| + | ----------------------------------- | ||
| + | ---- Input words ------- | ||
| + | 0111 1111 1100 0000 | ||
| + | 0001 1100 0000 0111 | ||
| + | 1111 1110 1110 0010 | ||
| + | 0000 0001 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 111 | ||
| + | --------------------------- | ||
| + | 011111111100 : TBM_Header | ||
| + | 00000001 : Event Number | ||
| + | 11000000 : DataID | ||
| + | 011111111110 : TBM Trailer | ||
| + | 1110001000 | ||
| + | * 1 : NoTokenPass | ||
| + | * 1 : Reset TBM | ||
| + | * 1 : Reset Roc | ||
| + | * 0 : Sync Error | ||
| + | * 0 : Sync Trigger | ||
| + | * 0 : Clear Trig Cntr | ||
| + | * 1 : Cal Trigger | ||
| + | * 0 : Stack Full | ||
| + | * 0 : Auto Reset Sent | ||
| + | * 0 : Pkam Reset Sent | ||
| + | 000001 | ||
| + | - - - end decoding - - - - | ||
| + | Data structure of input seems fine. Decode finished finiding TBM trailer. | ||
| + | - - - Dump leftover - - - | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 1111 | ||
| + | 1111 1111 1111 111 | ||
| + | |||
| + | |||
| + | **Output of FIFO 1**: Data for all channels which are connected is printed (loop over all channels).\\ | ||
| + | Decodes TBM Header and Trailers. \\ | ||
| + | Channel mapping for FIFO1 is described on p.1 here: http:// | ||
| + | Channels 1-4 are Nup, channels 5-9 are Ndown\\ | ||
| + | Channel selection described on p.3. | ||
| | | ||
| TEMP FIFO NCup | TEMP FIFO NCup | ||
| Line 46: | Line 149: | ||
| - | | + | **Output of FIFO 2**: How is channel selection done?\\ |
| + | Channel mapping for FIFO2 is described on p.1 here: http:// | ||
| + | Fifo-2 North up 0 0 Fifo-2 NorthCenter up 0 80 | ||
| + | Fifo-2 North up 1 0 Fifo-2 NorthCenter up 1 91 | ||
| + | Fifo-2 North up 2 0 Fifo-2 NorthCenter up 2 ab | ||
| + | Fifo-2 North up 3 0 Fifo-2 NorthCenter up 3 b8 | ||
| + | Fifo-2 North up 4 0 Fifo-2 NorthCenter up 4 ce | ||
| + | Fifo-2 North up 5 0 Fifo-2 NorthCenter up 5 d2 | ||
| + | Fifo-2 North up 6 0 Fifo-2 NorthCenter up 6 e0 | ||
| + | Fifo-2 North up 7 0 Fifo-2 NorthCenter up 7 f1 | ||
| + | Fifo-2 North up 8 0 Fifo-2 NorthCenter up 8 0 | ||
| + | Fifo-2 North up 9 0 Fifo-2 NorthCenter up 9 0 | ||
| + | | ||
| + | Marker for TBM Header: 89ab\\ | ||
| + | Marker for TBM Trailer: cdef\\ | ||
| + | Marker for ROC Header : 7\\ | ||