
Teledyne LeCroy
Trainer Script Enhancements
468
Sierra M6
‐
2 SAS/SATA Protocol Analyzer User Manual
@varName1 = LRF[stratBitOffset:endBitOffset]
,
where offsets are bit based
Example:
SendSSPFrameCommand_Initiator
{Data = LRF[startBitOffset:endBitOffset] )
Tag = 0x101}
The constraints are 1) Length bigger than 64 bit is not supported and 2) Offsets
(StartBitOffset and EndBitOffset) should be in same DWORD, except for length bigger
than 32.
Random
values
:
@varName1 = Random
5.13.3 Expression on Variables
Mathematical
expressions
, such as sum, subtract, and shift:
@va @varName2
@varName1 - @ varName2
@varName1 & @varName2
@varName1 | @varName2
@varName1 << 2
Logical
expressions
, such as compare, equal, not, and, and or:
@varName1 > @varName2
@varName1 < @ varName2
@varName1 == @varName2
@varName1 != @ varName2
(logical expression1) && (logical expression2)
(logical expression1) || (logical expression2)
Complex
expressions
(combination of different operators) with prioritizing supported:
(@va @varName2) > @varName3
5.13.4 If/While in Logical Expressions
Like programming languages, scripts allow conditional statements.
The
if/while
syntaxes are:
If (expression)then
{
….
}
else
{
….
}
While(@VarName)
{
…….
}
Summary of Contents for Sierra M6-2
Page 37: ...Sierra M6 2 SAS SATA Protocol Analyzer User Manual 35 Expandability Teledyne LeCroy ...
Page 375: ...Sierra M6 2 SAS SATA Protocol Analyzer User Manual 373 Interface Teledyne LeCroy ...
Page 436: ...Teledyne LeCroy Scenario Batch Files 434 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...
Page 526: ...Teledyne LeCroy 524 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...