To send a packet, write the Send keyword followed by the name of the packet template or packet variable in the generation procedure and provide a list of parameters that override the default instruction parameters, if any.
The script parser constructs a Send Packet instruction based on the packet template or packet variable, plus the provided parameters, and sends it to the Voyager USB 3.2 Exerciser.
# Basic Send instruction
Send(Packet Template name | Structure variable name )
[
{
Field = Value
...
}
(packet delay, override bitmap)
]
Sending Frames Using Structure Variables
You can send a packet based on some packet variable.
Main
{
# Send a packet based on the packet variable X using overridden values.
# Note: Packet variable X field values are NOT changed.
# '$' may be omitted after the 'Send' keyword,
# but if there is a template X, it is used instead of
# the structure variable X.
SendX
{
StreamID = 2
DevAddr = 0x12
Endp = 3
Data = { AA BB CC DD 12 34 56 78 [PATTERN_2] }
}
# '$' explicitly indicates that you want to send a packet
# based on the structure variable X.
Send$X
{
StreamID = 2
DevAddr = 0x12
Endp = 3
Data = { AA BB CC DD 12 34 56 78 [PATTERN_2] }
}
# Short syntax.
# Send a packet based on the packet variable X having delay 50 ns
X ( 50 )
}