Protocols | CTOC | L3

Media: fiber optic, GLINK
Record Length: fixed, pad frames are required to make the record length a multiple of 8 (VRB requirement)

  19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 VRB START Header Length #Dwords MSb #LVDS Links
2   Hdr Fmt Obj Fmt #Dwords LSb
3   Tick Data Type
4   Turn
5   0x00 Firmware Version
6   0x0000
:   Input Link Data Block
(140 frames)
147   Data Type Tick
148   Vertical Parity
149   0x0000
150   0x0000
151   0x0000
152 VRB END 0x0000

Field Definitions

note: empty cells will contain zeros
VRB START     = "0101"
Header Length = 0x03
#Dwords MSb   = number of data words (upper nibble) = 0
#LVDS Links   = 10
Hdr Fmt       = Header Format, "010"
Obj Fmt       = Object format, "00001"
#Dwords LSb   = number of data words (lower byte) = 140 = 0x8C
Tick          = The accelerator bunch crossing number, range 1-159
Data Type     = 0x01
Turn          = The accelerator turn (revolution) number, range 0-65535

Input Link Data Block = ten 
DFEA L1 records are concatenated and stored here as follows: 

  "0000"+link0 frame1 bits[27:16]
  link0 frame1 bits[15:0]
  "0000"+link0 frame2 bits[27:16]
  link0 frame2 bits[15:0]
  ... 
  "0000"+link9 frame7 bits[27:16]
  link9 frame7 bits[15:0]

Vertical Parity = odd vertical parity calculated over frames 1-147
VRB END         = "1010"

Firmware Version = this is the same byte that is reported back through
                   the status bits.  This number should be >= 35.

Revision History

1 Nov 2005: created JTO
2 Nov 2005: add description for #LVDS Links, link to DFEA L1 record
3 Jan 2006: add parity links
2 Jun 2006: update for standard L3 sender code: frame 6 empty,
            remove minor version field, real vertical parity,
            range on the tick number is now 1-159, not 0-158!

jamieson@fnal.gov
Last modified: Fri Jun 2 10:17:41 2006