3 ptracevarex( ) : parser trace variable extended, Ptracevarex( ) : parser trace variable extended, Ptracevarex – Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual
Page 133

Teledyne LeCroy
Voyager USB 3.0 Exerciser Generation Script Language Reference Manual
124
10.20.3 PTraceVarEx( ) : Parser Trace Variable Extended
Format
PTraceVarEx(
, …> )
Parser Trace Variable Extended outputs the values of the supplied comma-separated variables.
PTraceVarEx( ) is the same as PTraceVar( ), except that packet variable values are output in
detail at the field level, rather than just as a byte stream. Numeric variables are output in decimal
and hex format. This primitive does not accept constants or data patterns, which generate parse
errors. In the example below, also note that the language is not case sensitive.
Note: Numeric variables are DWORDS.
Example
51:
struct
IE_Info
# Create Struct IE_Info.
52: {
53: ElemID :
8
54: ElemLen :
8
55: }
56:
Packet
Test_IE_ChSelect : IE_INFO
# Create Packet Test_IE_ChSelect.
57: {
58: ElemID =
251
59: ElemLen =
2
60: TModeSubType :
8
=
1
61: PHYChNum :
8
62: }
63:
Packet
BPOIE : IE_INFO
# Create Packet BPOIE.
64: {
65: ElemID =
1
66: BPLen :
8
67: Occupancy : *
68: DevAddrList : *
69: }
70: Test_IE_ChSelect $Pkt_Var { PHYCHNUM =
5
}
# Global Packet Variable
71: BPOIE $Pkt_Var2
# Global Packet Variable
72: {
73: BPLen =
12
74: Occupancy = {
00 01 00
}
75: DevAddrList =
0x0004
76: ElemLen =
6
77: }
78: alternateCHNum =
7
# Global Numeric Variable