beautypg.com

Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual

Page 4

background image

Teledyne LeCroy

Voyager USB 3.0 Exerciser Generation Script Language Reference Manual

iv

8.2

Field Definitions ............................................................................ 32

8.2.1

Defining a Field at a Specific Offset ............................................ 32

8.2.2

Defining a Field at the Current Offset .......................................... 33

8.2.3

Defining a Field with Variable Length .......................................... 34

8.2.4

Defining a Default Field Value ..................................................... 35

8.2.5

Specifying Byte Order in Field Definitions ................................... 36

8.2.6

Using Byte Stream Literals in Field Assignments........................ 36

8.2.7

List of Possible Field Values Attribute ......................................... 37

8.2.8

Defining Subfields ........................................................................ 38

8.3

Constants/Arithmetic Expressions in Template Declarations ....... 40

8.4

Packet Template Inheritance ........................................................ 42

8.4.1

Packet Template Single Inheritance ............................................ 42

8.4.2

Packet Template Multiple Inheritance ......................................... 43

8.4.3

Packet Template Insert Directive ................................................ 45

8.4.4

Complex Packet Templates ......................................................... 47

8.5

Packet Template Multi-byte Field Byte Order Attribute ................ 49

8.5.1

Big Endian Byte Order ................................................................. 49

8.5.2

Another Example ......................................................................... 50

8.6

Structure Declaration Examples ................................................... 51

9

GENERATION PROCEDURES ............................................ 52

9.1

Transaction Engine Instructions ................................................... 53

9.1.1

SendPipeCommand Instruction ................................................... 54

9.1.2

SetSequenceNumber Instruction................................................. 60

9.1.3

Transaction Engine Scripts supplied with Voyager ..................... 61

9.2

Device Emulation Instructions ...................................................... 61

9.2.1

StartDeviceFrameworkHandler Instruction .................................. 62

9.2.2

InitDevice Instruction ................................................................... 62

9.2.3

AddDescriptor Instruction ............................................................ 63

9.2.4

WaitForDeviceRequest Instruction .............................................. 65

9.2.5

AddDrive Instruction .................................................................... 66

9.3

Send Packet Instruction ................................................................ 68

9.3.1 68

9.4

Using Local Fields in Send Packet Instructions ........................... 69

9.5

Instruction Parameters ................................................................. 70

9.6

Structure Variable Syntax ............................................................. 72

9.6.1

Omitting the Send Keyword ......................................................... 72

9.7

Changing a Generation Setting .................................................... 73

9.8

SetLinkState Instruction ................................................................ 74

9.9

TxSleep Instruction ....................................................................... 79

9.10

SendFile Instruction ...................................................................... 80

9.11

Wait Packet Instruction ................................................................. 80

9.12

Prepare Wait Packet Instruction ................................................... 83

9.13

Wait Event Instruction ................................................................... 84

9.14

Loop Instruction ............................................................................ 85

9.15

BreakLoop Instruction ................................................................... 86

9.16

Exit Instruction .............................................................................. 87

9.17

Analyzer Control Instructions ........................................................ 88

9.17.1

StartRecording Instruction ........................................................... 88

9.17.2

StopRecording Instruction ........................................................... 89

9.17.3

TriggerAnalyzer instruction .......................................................... 90

9.17.4

Trace Instruction .......................................................................... 91

9.17.5

Trace_B Instruction ..................................................................... 92

10

ADVANCED SCRIPT PARSER FEATURES ........................ 93

10.1

Local Numeric Parser Variables ................................................... 93