4 ptracetemplate( ) : parser trace template, Ptracetemplate( ) : parser trace template, Ptracetemplate – Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual
Page 136

Teledyne LeCroy
Voyager USB 3.0 Exerciser Generation Script Language Reference Manual
127
10.20.4 PtraceTemplate( ) : Parser Trace Template
Format
PTraceTemplate( <template list Template_1, Template_2
, …> )
Parser Trace Template displays the layout of the supplied comma-separated templates. Use it to
verify that template declaration was written as intended or to look at what the template type
contains when the template has include statements. This primitive does not accept parameters
other than templates, such as struct, packet, and packet names, which generate parse errors.
Example
const
DPH =
0x8
Packet
USB3Common
{
Type :
5
}
struct
LinkCtrlWord
{
Hseq :
3
LcwRsvd :
3
HDepth :
3
D1 :
1
D2 :
1
CRC_5 :
5
# Auto calculated
}
Packet
DataPacket : USB3Common
{
#Dword 0
Type = DPH
RouteStr :
20
DevAddr :
7
#Dword 1
SeqNum :
5
Rsvd1 :
1
Delayed :
1
EOB :
1
Endp :
4
Rsvd2 :
3
Setup :
1
DataLen :
16
#Dword 2
StreamID :
16
Rsvd3 :
11
PP :
1
Rsvd4 :
4