beautypg.com

Io.dec – Teledyne LeCroy Protocol Analyzers File-Based Decoding User Manual User Manual

Page 67

background image

File-based Decoding User Manual

LeCroy Corporation

61

io.dec

Description: io.dec is an IO data script decoder.

Input Data Fields

in.Channel: Direction of the traffic: 0 = Upstream, 1 = Downstream. The following
constants are defined for the possible values:

_CHANNEL_UPSTREAM

_CHANNEL_DOWNSTREAM

in.Speed: Speed of the traffic: 0 = 2.5 GT/s, 1 = 5.0 GT/s, 2 = 8.0 GT/s. The following
constants are defined for the possible values:

_SPEED_GEN1

_SPEED_GEN2

_SPEED_GEN3

in.LinkWidth: LinkWidth of the traffic: 1, 2, 4, 8, 16. Represents the number of lanes on
the link.

in.Data: Data block to decode

in.DataLength: Length of data block in bytes

in.PrepareFldsForDlg: If not 0, means that script should prepare decoded fields for
presenting them in a special dialog.

in.Type: Request type:

_TLP_TYPE_ID_IORD

_TLP_TYPE_ID_IOWR

in.FirstByteEnabled: Index of first enabled byte in data block

in.EnabledByteCount: Number of enabled bytes in data block

in.Address: Address

in.TC: TC (Traffic class) field of TLP header

in.Tag: Tag field of TLP header

in.RequesterID: RequesterID field of TLP header

in.Attr: Attr field of TLP header

in.Length: Length field of TLP header

in.TD: TD (Transport Digest) field of TLP header

in.EP: EP (End-to-end Poisoning) field of TLP header

in.CompleterID: ID of the completer that completed the transaction

in.HeaderData: Packet header data bytes, without any formatting or transformation.

This field is available on all levels: Packet, Link, Split, and NVM.
in.HeaderDataLength: Length of packet header data in bytes. This field is available on
all levels: Packet, Link, Split, and NVM.

Output Data Fields

out.Decoded: Amount of data (in bytes) that has been decoded
set OutputType = "__IO"; # remove __ to use the script