Teledyne Sierra M6-2 User Manual page 471

Sas/sata protocol analyzer
Table of Contents

Advertisement

Trainer Script Enhancements
Example for if, then else:
Note:
In this release, while condition is limited to simple variable values only. Combining operators is
not allowed in while expressions. You should move such expressions inside while block.
Note:
Nested while and if are supported.
Wait/When/Do in Logical Expressions
The wait/when/do syntaxes are:
Example:
Example:
Note:
Nested wait should not exceed 2 deep. Use a procedure call to extend wait logic sequence. Wait
+ Wait_For ok.
 
Sierra M6‐2 SAS/SATA Protocol Analyzer User Manual
@HT_RxFISType = LRF[0:7]
#LRF_SATA_FIS_TYPE_START_BIT:LRF_SATA_FIS_TYPE_END_BIT
if
(@HT_RxFISType == SATA_FIS_TYPE_DMA_ACTIVATE)
else { if (@HT_RxFISType == SATA_FIS_TYPE_DATA) then
else { if (@HT_RxFISType == SATA_FIS_TYPE_RD2H)
} }
Example for while:
while (@NCQ_Temp0)
@NCQ_Temp1= @NCQ_Temp1 >> 1
If (@NCQ_Temp1 != 0) then { ... }
@NCQ_Temp0 = @NCQ_Temp1 & 0x00000001
wait (time)
{when
{exp}do
{
....
}
elsewhen
{
{exp}do
{
....
}
on_timeout
{
....
}}
wait
{ #no timeout use global WaitTimeout value default 1000 useconds
(1 ms)
when
{WF_OPEN_ACCEPT}
elsewhen
{WF_OPEN_REJECT}
on_timeout
{ ... }
wait_for (100000)
{
do
{ ... }
do
}
{ WF_OPEN_ACCEPT
then
}
{ ... }
WF_TIMEOUT}
{ ... } # (100 ms)
Teledyne LeCroy
{...}
{...}
then
{...}
469

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents