Teledyne LeCroy Sierra M122 User Manual User Manual
Page 314

Teledyne LeCroy
Sierra Trainer Generation Language
312
Sierra M122 SAS/SATA Protocol Analyzer User Manual
Example:
Var32 @ttiu =0x00006000
Generation {
Send_ttiu (0x00006000, 0x36, 0xA) //ttiu with specific data
Send_ttiu (@ttiu, 0x36, 0xA) //TTIU with variable
}
Wait_For_TTIU/WaitforTTIU(DATA/Change TTIU , MASK)
This instruction waits for specific TTIU. During this instruction previous transmitted TTIU
will be transmitted. User can trigger wait for specific TTIU, Change in TTIU or part of TTIU
by specifying 32'bit mask value.
Default mask value is set to all ones. i.e waits for all 32'bits to match with the received
TTIU. Changing the mask value gives the flexibility to wait for some specific bits in the
TTIU. Giving Change_TTIU with mask value waits for any change in the specified Bits in
the Received TTIU compared to the previous 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 having access to the last received TTIU. User can have access to the
received ttiu and reuse it as required. Example for using this command in the script is as
follows:
{
@ttiu_mask=0x0006000
@ttiu=LRT
@ttiu_temp=@ttiu and @ttiu_mask
If(ttiu_temp=0006000)
{
Send_ttiu(0x0006000)
}
}