beautypg.com

Teledyne LeCroy Sierra M124 User Manual User Manual

Page 313

background image

    

Sierra M124 SAS/SATA Protocol Analyzer User Manual

311

Sierra Trainer Generation Language

Teledyne LeCroy

bits in the TTIU. Giving the Change_TTIU command with mask value waits for any change 
in the specified Bits in the Received TTIU compared to the previously received TTIU.

Example:

Generation

{

Wait_for_ttiu (change_ttiu , 0x00004000) //waiting for change in tx_init

bit of TTIU

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

Wait_for_ttiu (0x0000A000 , 0X00008000) //waiting for train comp bit to

go high

}


LRT: Last received TTIU

This instruction is for accessing the last received TTIU. The user can access the received 
TTIU and reuse it as required. 

Example:

{

@ttiu_mask=0x0006000

@ttiu=LRT

@ttiu_temp=@ttiu and @ttiu_mask

If(ttiu_temp=0006000)

{

Send_ttiu(0x0006000)

}

}

Training_ERROR_COUNT

This instruction is for accessing the error count of the received Dwords. This gives 
flexibility to the user to change the remote tx parameters to get the optimal link with 
minimal errors.

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)

}

}

Reset_Training_ERROR_COUNT

During manual Tx_Training resetting error _count can be done using this command.