8 procedure definition, 14 sierra trainer generation commands, 1 general commands – Teledyne LeCroy Sierra M6-2 SAS_SATA Protocol Analyzer User Manual User Manual
Page 434

Teledyne LeCroy
Sierra Trainer Generation Commands
432
Sierra M6‐2 SAS/SATA Protocol Analyzer User Manual
@varName1 = COUNT_REC_RESOURCE_OUTPUT_C
@varName1 = COUNT_REC_RESOURCE_OUTPUT_D
@varName1 = COUNT_REC_RESOURCE_OUTPUT_E
@varName1 = COUNT_REC_RESOURCE_OUTPUT_F
Syntax for clearing (resetting) counters is:
CLEAR_REC_RESOURCE_OUTPUT_A
CLEAR_REC_RESOURCE_OUTPUT_B
CLEAR_REC_RESOURCE_OUTPUT_C
CLEAR_REC_RESOURCE_OUTPUT_D
CLEAR_REC_RESOURCE_OUTPUT_E
CLEAR_REC_RESOURCE_OUTPUT_F
Example:
CLEAR_REC_RESOURCE_OUTPUT_A
While(@Counter < MaxPrimitiveCount) {
… @Counter = COUNT_REC_RESOURCE_OUTPUT_A … }
5.13.8
Procedure Definition
Procedures allow creating simple syntaxes for complex reusable parts in scripts. You can
write such code once as a procedure and use everywhere required.
Procedure definition syntax is:
procedure
procedureName
{
...
}
Calling procedure syntax is:
Call
procedureName
5.14
Sierra Trainer Generation Commands
5.14.1
General Commands
IDLE (n)
Generator will insert n idle
DWORD
s into the
generation stream.
CLEAR_CREDIT_AVAIL
This commands clears the credit
established with the command
WF_CREDIT_AVAIL. (See WF_CREDIT_AVAIL
in following section on Wait Commands for
explanation).
RD_ERROR
Generator will insert one idle
DWORD
into
the generation stream, which will
intentionally break RD sequence creating
RD error.