beautypg.com

Packets/ frames – Teledyne LeCroy Sierra M124 User Manual User Manual

Page 308

background image

Teledyne LeCroy

Sierra Trainer Generation Language

306

 

 

Sierra M124 SAS/SATA Protocol Analyzer User Manual

Raw 10 bits codes. This definition might cause running disparity errors.

Example:

Primitive "CHAIN (TWO)" = 305 2D4 1E4 362

Mixed bytes and 10b codes. This definition might cause running disparity errors.

Example:

Primitive "CHAIN (TWO)" = 305 2D4 1E4 362 ["CHAIN (ONE)"]

Packets/ Frames

Using the “Frame” or “Packet” keyword, you can define a frame of traffic to use in the 
generation stream. Declarations of prolog and epilog may be mixed with field 
declarations. 

Frame "name" : "parent name"

{

Field Definition 0: "Field Name : Field Length = Default Value"

Field Definition n: "Field Name : Field Length = Default Value"

Primitive Definition 0: "Primitive name, offset, count"

Primitive Definition m: "Primitive name, offset, count"

Prolog = "primitive name"

Epilog = "primitive name"

}

Field Definition

Field length is in bits. '*' means that the length is variable and is set based on the 
assigned value.

Field starting offset is calculated from frame start based on the length of the pre‐
vious fields.

Examples:

Field32 : 32 = 0xAABBFFEE

FrameType : 8 = 12

HashedDest : 24 = HEX_DATA

Reserved1 : 8 = 0xDA

Field16 : 16 = 0xAAAA

Reserved2 : 8 = 0xAD

CRC : 32

Data field Definition

Data = { pattern }: Pattern is assigned to Data.

Data = count, value: A pattern of “count” times “value” is assigned to Data.

Data = count, start value, step: A pattern of values starting with “start value” with steps of “step”
and a length of “count” is assigned to Data.