User Tools

Site Tools


phase1:phase1:pxlpilotfed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
phase1:phase1:pxlpilotfed [2015/12/09 12:42] – [case 'a'] leacphase1:phase1:pxlpilotfed [2015/12/09 19:01] (current) – [case 'a'] leac
Line 30: Line 30:
  
 ====case 'a'==== ====case 'a'====
-Inject one trigger and readout FED.\\\\+Inject one trigger and readout FED.\\
  
-How to interpret output:\\+**How to interpret output**:\\
  
-  TEMP FIFO Sup +**Output of Piggy**: (Two columns correspond to two TBM cores)\\ 
-  TEMP FIFO Sdown+  PIGGYup 
 +  ffff ffff              1111111111111111    1111111111111111 
 +  ffff ffff              1111111111111111    1111111111111111 
 +  ffff ffff              1111111111111111    1111111111111111 
 +  ffff ffff              1111111111111111    1111111111111111 
 +  ffff ffff              1111111111111111    1111111111111111 
 +  ffdf ffbf              1111111111011111    1111111110111111 
 +  f006 e00e              1111000000000110    1110000000001110 
 +  e1ff 03ff              1110000111111111    0000001111111111 
 +  b880 7100              1011100010000000    0111000100000000 
 +  7fff ffff              0111111111111111    1111111111111111 
 +  ffff ffff              1111111111111111    1111111111111111 
 +  ffff ffff              1111111111111111    1111111111111111 
 +  ffff ffff              1111111111111111    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,LAD_N+0x1a8000,4,CHa_CHb_mux+0x2300); // ch selection for transparent mode: 5-fiber#12, 4-fiber#11, 3-fiber#10, 2-fiber#9, 1-fiber# 8, 0-fiber#7 
 +  VMEout(0x3,LAD_S+0x1a8000,4,CHa_CHb_mux+0x2304); // ch selection for transparent mode: 5-fiber#12, 4-fiber#11, 3-fiber#10, 2-fiber#9, 1-fiber# 8, 0-fiber#7 
 +   
 +The output can be decoded using Satoshi's script (see: https://github.com/hsatoshi/FpixTbmDecoder):\\ 
 +  ./FpixTbmDecoder/bin/decode_piggy 
 +  ----------------------------------- 
 +  ----------- 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   : TBM Trailer - info 
 +    * 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   : TBM Trailer - 6bit stack counter 
 +  - - - 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   : TBM Trailer - info 
 +    * 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   : TBM Trailer - 6bit stack counter 
 +  - - - 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://www.physik.uzh.ch/~leac/CMSPixel/Docs/FED/FED_configuration_map.pdf\\ 
 +Channels 1-4 are Nup, channels 5-9 are Ndown\\ 
 +Channel selection described on p.3. 
 +  
   TEMP FIFO NCup   TEMP FIFO NCup
   2be11601   2be11601
Line 44: Line 149:
  
  
-  +**Output of FIFO 2**: How is channel selection done?\\
  
 +  Channel mapping for FIFO2 is described on p.1 here: http://www.physik.uzh.ch/~leac/CMSPixel/Docs/FED/FED_configuration_map.pdf\\
 +  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\\
  
phase1/phase1/pxlpilotfed.1449661323.txt.gz · Last modified: 2015/12/09 12:42 by leac