Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual
Page 4

Teledyne LeCroy
Voyager USB 3.0 Exerciser Generation Script Language Reference Manual
iv
Field Definitions ............................................................................ 32
Defining a Field at a Specific Offset ............................................ 32
Defining a Field at the Current Offset .......................................... 33
Defining a Field with Variable Length .......................................... 34
Defining a Default Field Value ..................................................... 35
Specifying Byte Order in Field Definitions ................................... 36
Using Byte Stream Literals in Field Assignments........................ 36
List of Possible Field Values Attribute ......................................... 37
Defining Subfields ........................................................................ 38
Constants/Arithmetic Expressions in Template Declarations ....... 40
Packet Template Inheritance ........................................................ 42
Packet Template Single Inheritance ............................................ 42
Packet Template Multiple Inheritance ......................................... 43
Packet Template Insert Directive ................................................ 45
Complex Packet Templates ......................................................... 47
Packet Template Multi-byte Field Byte Order Attribute ................ 49
Big Endian Byte Order ................................................................. 49
Another Example ......................................................................... 50
Structure Declaration Examples ................................................... 51
GENERATION PROCEDURES ............................................ 52
Transaction Engine Instructions ................................................... 53
SendPipeCommand Instruction ................................................... 54
SetSequenceNumber Instruction................................................. 60
Transaction Engine Scripts supplied with Voyager ..................... 61
Device Emulation Instructions ...................................................... 61
StartDeviceFrameworkHandler Instruction .................................. 62
InitDevice Instruction ................................................................... 62
AddDescriptor Instruction ............................................................ 63
WaitForDeviceRequest Instruction .............................................. 65
AddDrive Instruction .................................................................... 66
Send Packet Instruction ................................................................ 68
Using Local Fields in Send Packet Instructions ........................... 69
Instruction Parameters ................................................................. 70
Structure Variable Syntax ............................................................. 72
Omitting the Send Keyword ......................................................... 72
Changing a Generation Setting .................................................... 73
SetLinkState Instruction ................................................................ 74
TxSleep Instruction ....................................................................... 79
SendFile Instruction ...................................................................... 80
Wait Packet Instruction ................................................................. 80
Prepare Wait Packet Instruction ................................................... 83
Wait Event Instruction ................................................................... 84
Loop Instruction ............................................................................ 85
BreakLoop Instruction ................................................................... 86
Exit Instruction .............................................................................. 87
Analyzer Control Instructions ........................................................ 88
StartRecording Instruction ........................................................... 88
StopRecording Instruction ........................................................... 89
TriggerAnalyzer instruction .......................................................... 90
Trace Instruction .......................................................................... 91
Trace_B Instruction ..................................................................... 92
ADVANCED SCRIPT PARSER FEATURES ........................ 93
Local Numeric Parser Variables ................................................... 93