
LeCroy Corporation
Trainer Script Enhancements
410
Sierra M6
‐
2 SAS/SATA Protocol Analyzer User Manual
If/While in Logical Expressions
Like programming languages, scripts allow conditional statements.
The
if/while
syntaxes are:
If (expression)
{
….
}
else
{
….
}
While(@VarName)
{
…….
}
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.
Using Variable Values in Creating Patterns on Bus
In creating patterns to send on bus, trainer script allows using variables. In these cases,
because the created pattern is dynamic, it is not possible to do scrambling and calculating
in software code. These tasks are done in the hardware engine. To activate, set “Auto
scramble mode” in “on” state.
The following examples show uses of variables in creating patterns.
Use
variable
for
field
value:
SendOpenAddressFrameSSP
{
InitiatorPort = 0x1
InitiatorConnectionTag = @variableName1
…...
}
The constraints are:
Field Length bigger than 64 bit is not supported.
Field StartBitOffset and EndBitOffset should be in same DWORD, except for
length bigger than 32.
Содержание Sierra M6-2
Страница 18: ...LeCroy Corporation Contents 16 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...
Страница 42: ...LeCroy Corporation Viewing Captured Data 40 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...
Страница 192: ...LeCroy Corporation Target and Device Emulation 190 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...
Страница 241: ...Sierra M6 2 SAS SATA Protocol Analyzer User Manual 239 Search LeCroy Corporation Figure 3 64 SAS Search Data Pattern ...
Страница 314: ...LeCroy Corporation Running Verification Script Engine VSE 312 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...
Страница 462: ...LeCroy Corporation Resetting the Toolbar 460 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...
Страница 468: ...LeCroy Corporation 466 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...