beautypg.com

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

Page 306

background image

Teledyne LeCroy

Sierra Trainer Generation Language

304

 

 

Sierra M122 SAS/SATA Protocol Analyzer User Manual

When there are variable values in RawData, you must include SendCRC command instead 
of last dword. Otherwise, wrong CRC value will be sent. The constraints are: 

 Variables are not allowed on First and LAST DWORD (instead of start/end 
frames). 

SendCRC is only supported on last DWORD before end of frame.

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