beautypg.com

5 connecting the trainer – Teledyne LeCroy Sierra M122 User Manual User Manual

Page 310

background image

Teledyne LeCroy

Sierra Trainer Generation Language

308

 

 

Sierra M122 SAS/SATA Protocol Analyzer User Manual

{

send instructions

assignments

change values

send instructions

}

Example:

LOOP( 50 )

{

"CHAIN (ONE)"

"CHAIN (TWO)"

Some_Frame

$Y = Some_Frame { Data = 256, 0xFEFEFEFE }

Y

Change Y { Field32 = x }

Y

Y

}

5.11.5

Connecting the Trainer

Three methods are available for connecting the trainer: 

Use the Connect command to connect and perform transmitter training. 

Use the new commands to handle the transmitter training manually (see 

Man‐

ual Transmitter Training Commands and Descriptions

 below). 

Use the Send_Train_TX_Window command to send transmitter training auto‐
matically and use other commands for speed negotiation.

The SATA scripts should be run in SAS mode.

Manual Transmitter Training Commands and Descriptions

SendRAWTTIU(Pattern_marker  32bits of BMC encoded TTIU)

This command is for transmitting a Raw_TTIU. i.e BMC encoded 32 bits TTIU can be 
specified here. The user has the flexibility to specify the pattern marker.

Example

:

Generation

{

Send_raw_ttiu( ffffc0000 FF C00F FC00 FF C00F FC00 FF C00F FC00 FF C00F

FC00 FF C1F0 7C00 FF C00F FC00 FF C00F FC00 FF C00F FC00}

Idle(54)

}

Where “ffffc0000” is the pattern marker.

Send_TTIU (32'b DATA/Variable, Idle count, Repeat number) 

This instruction is mainly for sending a specific TTIU with variable number of Idles. 32 bit 
TTIU value can be specified either by directly specifying the 32 bit data or by specifying a 
variable. When the variable name is recognized, the trainer reads the data in the 
specified variable and considers it as the TTIU value. The Idle count defines the number