Expression On Variables; If/While In Logical Expressions - Teledyne Sierra M6-2 User Manual

Sas/sata protocol analyzer
Table of Contents

Advertisement

Teledyne LeCroy
Example:
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.

5.13.3 Expression on Variables

Mathematical expressions, such as sum, subtract, and shift:
Logical expressions, such as compare, equal, not, and, and or:
Complex expressions (combination of different operators) with prioritizing supported:

5.13.4 If/While in Logical Expressions

Like programming languages, scripts allow conditional statements.
The if/while syntaxes are:
468
@varName1 = LRF[stratBitOffset:endBitOffset],
where offsets are bit based
SendSSPFrameCommand_Initiator
{Data = LRF[startBitOffset:endBitOffset] )
Tag = 0x101}
Random values: @varName1 = Random
@varName1 + @varName2
@varName1 - @ varName2
@varName1 & @varName2
@varName1 | @varName2
@varName1
<<
2
@varName1
>
@varName2
@varName1 < @ varName2
@varName1 ==
@varName2
@varName1 != @ varName2
(logical expression1) &&
(logical expression1) || (logical expression2)
(@varName1 + @varName2) > @varName3
If (expression)then
{
....
}
else
{
....
}
While(@VarName)
{
.......
}
(logical expression2)
Sierra M6‐2 SAS/SATA Protocol Analyzer User Manual
Trainer Script Enhancements

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents