14 generation settings outside procedures, 15 generation settings inside procedures, 16 arithmetic expressions in constants – Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual
Page 39: Generation settings outside procedures, Generation settings inside procedures, Arithmetic expressions in constants
Teledyne LeCroy
Voyager USB 3.0 Exerciser Generation Script Language Reference Manual
30
7.14 Generation Settings outside Procedures
Generation settings specified outside the generation procedures are set before the first script
generation instruction is executed, no matter where they appear in the script. The two examples
below are equivalent.
Example 1
# Set a setting before the first instruction is executed.
Set
PktDelay =
20
Main
{
# Some generation instructions
}
Example 2
# Set a setting before the first instruction is executed.
Main
{
# Some generation instructions
}
# Set before the first instruction is executed,
# though the Set line is below the instruction in the script.
Set
PktDelay =
12
7.15 Generation Settings inside Procedures
Generation settings specified inside a generation procedure are set only during script execution
by the Voyager USB 3.0 Exerciser.
Main
{
Set
PktDelay =
24
# Set during runtime.
}
7.16 Arithmetic Expressions in Constants
You can use arithmetic expressions, such as
+, -, *, /, %, >>, <<, &, |, ^, and ()
to define setting values.
Example
Const
SOME_CONST =
5
Set
PktDelay = (
2000000
+
5
) >> ( 8 + SOME_CONST )