This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
phase1:phase1:pxlpilotfed [2015/12/09 12:53] – [case 'a'] leac | phase1:phase1:pxlpilotfed [2015/12/09 13:00] – [case 'a'] leac | ||
---|---|---|---|
Line 50: | Line 50: | ||
ffff ffff 1111111111111111 | ffff ffff 1111111111111111 | ||
| | ||
- | This is the output of one fiber. The fiber is selcted by a VME command: | + | 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 | //this choose the channel read by piggy: ex. CHa_CHb_mux+0x2304 reads channel 4 | ||
VMEout(0x3, | VMEout(0x3, | ||
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).\\ | **Output of FIFO 1**: Data for all channels which are connected is printed (loop over all channels).\\ | ||
Decodes TBM Header and Trailers. \\ | Decodes TBM Header and Trailers. \\ | ||
- | Channel mapping for FIFO1 is described on p.2 here: http:// | + | Channel mapping for FIFO1 is described on p.1 here: http:// |
- | Channels 1-4 are Nup, channels 5-9 are Ndown | + | Channels 1-4 are Nup, channels 5-9 are Ndown\\ |
+ | Channel selection described on p.3. | ||
| | ||
TEMP FIFO NCup | TEMP FIFO NCup | ||
Line 69: | 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 | ||