beautypg.com

Teledyne LeCroy Sierra M124 User Manual User Manual

Page 314

background image

Teledyne LeCroy

Sierra Trainer Generation Language

312

 

 

Sierra M124 SAS/SATA Protocol Analyzer User Manual

Example

:

Var32 @error_count

Generation

{

Send_ttiu ((0x00006000, 0x36, 0xA)

Wait_ttiu (change_ttiu , 0x00004000)

@error_count= Training_ERROR_COUNT;

If(@error_count<2)

{

Send_ttiu ((0x0000A000, 0x36, 0xA)

Rest_Training_Error_count

}

}

Change_Local_tx_parameter(16'b data/variable)

This instruction is to change the Local tx parameters. It takes either 16 bit data or 16 bit 
variable which represents the control word of the TTIU. When this command is given, the 
32 bit data or 16 bit variable value is written to the constant variable memory location 
(address location is 511)

Example

:

var32 @received_control

var32 @Status

var32 @ control=0x00100000

var32 @temp

Generation

{

Send_ttiu ((0x00006000, 0x36, 0xA)

Wait_ttiu (change_ttiu , 0x00004000)

Change_Local_tx_parameter (0x0400) //requesting to change the tx

parameters to reference_1

@received_control=LRT

@temp=@received_control & 0x1111000 //0x11110000 is the mask data so that

the variable contains only the

control

word

of

the

received

ttiu.

Change_Local_tx_parameter(@temp)//variable as input

@status= Local_ Tx_status_word

@temp=@status | @control

Send_ttiu(@temp,0x36,0xA)

}

Where “0x0400” is the control word of TTIU.