beautypg.com

Teledyne LeCroy Sierra M124 User Manual User Manual

Page 317

background image

    

Sierra M124 SAS/SATA Protocol Analyzer User Manual

315

Sierra Trainer Generation Language

Teledyne LeCroy

Training_ERROR_COUNT

This instruction is for having access to the error count of the received Dwords. This will 
give flexibility to user to decide on changing 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 / ResetTrainingErrorCount

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

Ex: 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

     }

}