Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual
Page 49
Advertising

Teledyne LeCroy
Voyager USB 3.0 Exerciser Generation Script Language Reference Manual
40
8.3 Constants/Arithmetic Expressions in Template
Declarations
You can use constants and arithmetic expressions in both field definitions and value declarations.
Examples
const
DPH =
_1000
# 0x8
struct
LinkCtrlWord
{
Hseq :
3
LcwRsvd :
3
HDepth :
3
D1 :
1
D2 :
1
CRC_5 :
5
# Auto calculated
}
const
TYPE_LEN =
5
Packet
DPH
{
#Dword 0
Type : TYPE_LEN = 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
#Dword 3
Advertising