beautypg.com

Teledyne LeCroy Sierra M122 User Manual User Manual

Page 307

background image

    

Sierra M122 SAS/SATA Protocol Analyzer User Manual

305

Sierra Trainer Generation Language

Teledyne LeCroy

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.

Primitive definition. Primitives are inserted into the frame payload. Primitive definitions 
are inherited by descended frame templates.

Assigning '*' clears all previous settings (maybe from parent frame template). 

Offset specifies the DWORD offset where this primitive is inserted in the Frame.

Count specifies how many times to repeat the primitive.

Examples:

Primitive : *

Primitive : SOF, 48 # where 48 = offset

Primitive : "CLOSE (NORMAL)", 36, 5 # where 5 = repeat

Prolog and Epilog define Primitive chains to be used at the beginning and end of the 
frame.

Examples:

Prolog = SOF # For this frame primitive 'SOF' is a Prolog.

Epilog = EOF # For this frame primitive 'EOF' is an Epilog.

Frames can be derived from other Frames, therefore inheriting the layout of the parent 
Frame. In this case, the user may:

Change Prolog and Epilog.

Change default field values.

Add new fields.

Frame Examples

Frame Some_Frame

{

Field32 : 32 = 0xAABBFFEE

FrameType : 8 = 12

HashedDest : 24 = HEX_DATA

Reserved1 : 8 = 0xDA

Field16 : 16 = 0xAAAA

Reserved2 : 8 = 0xAD

Data : * = PATTERN_1

CRC : 32

Primitive : *

Primitive : SOF, 48

Primitive : SOF, 96

Primitive : "CLOSE (NORMAL)", 36, 5

Prolog = SOF

Epilog = EOF

}

Frame Some_Frame_1 : Some_Frame

{