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

Teledyne LeCroy
Voyager USB 3.0 Exerciser Generation Script Language Reference Manual
v
Local Structure Parser Variables .................................................. 94
Using Local Fields in Structure Variables ..................................... 96
Changing Structure Parser Variables ........................................... 97
Sending Frames using Structure Variables ................................ 101
Using Special Data Pattern Creators in Field Assignments ....... 102
Using Structure Variables to Assign Field Values ...................... 103
Using Multipliers to Assign Field Values .................................... 104
Using the Append Operator in Field Assignments ..................... 105
Initializing Struct Variables from Hex Streams ........................... 106
Assignments for Variables with Fixed-length Fields ............. 106
Assignments for Variables with Variable Length Fields ........ 107
Sizeof Operators ......................................................................... 109
Preprocessor Integer Arithmetic ................................................. 110
Preprocessor If Operator ............................................................ 111
Preprocessor Loop Operators .................................................... 112
Forward Declarations ................................................................. 112
RAND Token ............................................................................... 114
RandStream( n ) Primitive .......................................................... 114
Global Numeric and Structure Variables .................................... 115
Using the Call Directive for Generation Procedure Insertions .... 116
Calling a Generation Procedure with Parameters ................ 116
Calling a Generation Procedure with No Parameters ........... 120
Nested Calls Using Global Variables .................................... 121
Parser Tracing Functions ........................................................... 122
PTrace( ) : Parser Trace ....................................................... 122
PTraceVar( ) : Parser Trace Variable ................................... 123
PTraceVarEx( ) : Parser Trace Variable Extended ............... 124
PtraceTemplate( ) : Parser Trace Template ......................... 127
Name Aliasing ............................................................................. 130
Include Path Directive ................................................................. 132
– GENERATION SCRIPT EXAMPLE .......... 133
Example Script 1......................................................................... 133
Example Script 2......................................................................... 139
APPENDIX B - RAW REGISTER SETTINGS ..................... 141
SKP_TIMER .............................................................................. 142
PM_ACCEPT_MODE ................................................................ 143
CORRUPT_LC .......................................................................... 143
CORRUPT_LMP ....................................................................... 144
CORRUPT_SHP_FRAMING ..................................................... 146
CORRUPT_SDP_FRAMING ..................................................... 147
CORRUPT_END_FRAMING ..................................................... 147
CORRUPT_SLC_FRAMING ..................................................... 148
DELAY_LAU .............................................................................. 150
Insert K-Sym Error (LC and HP) ........................................... 150
LTSSM_SETTING ................................................................ 152
LTSSM_U3EXIT_CONTROL ................................................ 153
LTSSM_HOTRESET_TIME .................................................. 154
LTSSM_RXDETECT_CONTROL ......................................... 155
Generate LFPS Command ................................................... 156
HOW TO CONTACT TELEDYNE LECROY ....................... 158