beautypg.com

2 trace event-dependent set of members, 1 usb packet-specific set of members, Race – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual

Page 18: Vent, Dependent, Et of, Embers, Usb packet-specific set of members

background image

Teledyne LeCroy

Verification Script Engine Reference Manual




Page 18 of 115



5.2 Trace Event-dependent Set of Members


This set of members is defined and can be used only for a specific event or after calling functions that provide
values of variables:

5.2.1 USB Packet-specific Set of Members


Members of this set are valid for all USB packet events:

in.RawPacket

: Bit source of the whole packet. Note: You can extract any necessary information using the

GetNBits(), NextNBits(), or PeekNBits() functions. (Refer to section 14 in the USBScriptDecodeManual.pdf.)

in.RawPacketLength

: Length of the packet (in bytes).

in.Duration

: Time it took to transmit the packet on the bus (

VSE Time object

).

in.Errors

: A bitmap of packet level errors. The table below describes the current list of possible packet errors

and their bit positions in the error bitmap:

Error type

Bit position

Description

USB2 Errors:

PID_ERROR

1

Bad PID value

CRC5_ERROR

2

Bad CRC5

CRC16_ERROR

3

Bad CRC16

PACKETLEN_ERROR

4

Wrong packet length

BIT_STUFF_ERROR

5

Bit stuffing error

EOP_ERROR

6

Bad End Of Packet

BABBLE_START_ERROR

7

Babble start error

BABBLE_END_ERROR

8

Babble end (Loss Of Activity) error

FRAME_LENGTH_ERROR

9

Wrong frame length

HANDSHAKE_TIMEOUT_ERROR

10

Bad turnaroud timing or timeout
condition for handshake

INTERNAL_ERROR

11

Analyzer internal error

DATA_TOGGLE_ERROR

12

Data toggling error

MICROFRAME_ERROR

13

Bad frame or microframe number

MOD_8_ERROR

14

Last Byte Incomplete error

OTG_ERROR

15

Bad OTG Signal value

USB3 Errors. TBD.