5 instruction parameters, Instruction parameters, Override_p – Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual
Page 79
![background image](/manuals/353648/79/background.png)
Teledyne LeCroy
Voyager USB 3.0 Exerciser Generation Script Language Reference Manual
70
Note 1: The instruction parameters
“( … )” and packet/structure field assignments “{ … }” are
interchangeable in order within the Send instruction.
Note 2: Declare local fields within the Send instruction in the same way that packet template
fields are declared. They exist only for the instruction in which they are declared.
9.5 Instruction Parameters
The parser searches the template list first.
If a template with the specified name is not found, it searches the local generation
procedure structure variable list.
If a local generation procedure structure variable is not found, the parser searches the
global structure variable list.
If a structure variable is not found, the system reports a parser error.
The named instruction parameters are:
Delay: Delay time (in nanoseconds) to wait before sending the packet.
Override: Specifies a bitmap that instructs the Voyager USB 3.0 Exerciser to set values for
the CRC-5, CRC-16, CRC-32 and Length fields from the packet template and insert
erroneous values for Delayed and Header Sequence Number fields from the bitmap, rather
than calculating them automatically.
Send Packet Override Field Instruction Parameters
(constants defined in "gen_constants.ginc" )
CRC-5
OVR_CRC5 = 0x01
CRC-16
OVR_CRC16 = 0x02
CRC-32
OVR_CRC32 = 0x04
Delayed
OVR_DELAYED = 0x08
HSN
OVR_HSN = 0x10
Length
OVR_LEN = 0x20
No Override
OVR_NONE = 0
Override All
OVR_ALL = (OVR_CRC5 | OVR_CRC16| OVR_CRC32 |
OVR_DELAYED | OVR_HSN | OVR_LEN)
The default value for the Delay parameter is UNDEFINED (0xFFFFFFFF), so that a delay
between packets is taken from the PktDelay global setting (which is 0 by default).
The default value for Override is OVR_NONE.
Delimit instruction parameters use a comma, as shown in the following examples
(“TX_PACKET” after the Send keyword in the examples below denotes some template name.):
To send a TX_Packet with Delay = 0 and No Override:
Send TX_PACKET(
Delay
=
0
,
Override
= OVR_NONE )
To send a TX_Packet with Delay = 200 ns and No Override:
Send TX_PACKET(
200
, OVR_NONE )
To send a TX_Packet with Delay = 400 ns:
Send TX_PACKET(
400
)
To send a TX_Packet with Delay = 20 ns and Override CRC-5:
Send TX_PACKET(
Delay
=
20
,
Override
= OVR_CRC5
)
or
Send TX_PACKET(
20
, OVR_CRC5
)