beautypg.com

3 packet command, 1 packet = tlp, Packet command – Teledyne LeCroy PETrainer Scripting Language Reference Manual User Manual

Page 8: Packet = tlp, Packet

background image

Teledyne LeCroy

PETrainer Scripting Language

3

3 Packet Command


This command initiates transmission of a specified packet on the bus.

3.1 Packet = TLP


This command initiates transmission of TLP packet on the bus. The parameters of the Packet = TLP
command cover all the fields in the TLP header: TLP Payload, PSN (Packet Sequence Number), ECRC,
and LCRC. Reserved fields can be set with the RawData parameter.

Parameter

Values

Default
Value

Comment

PSN

0:4095, Incr

0

When Incr is specified, the PSN for the
current TLP is assigned as the PSN of the
previously sent TLP incremented by 1.
When the PSN is generated automatically
(see the AutoSeqNumber parameter,
Page 38), this parameter has no effect.
Note: When automatic PSN is turned off
PSN=Incr will work properly only for TLP
transmissions with Count=1. Count
instructs the exerciser to repeat the same
packet and when automatic PSN
generation is turned off, all repeated
packets will have the same PSN.

TLPType

MRd32
MRdLk32
MWr32
MRd64
MRdLk64
MWr64
IoRd
IoWr
CfgRd0
CfgWr0
CfgRd1
CfgWr1
Msg
MsgD
Cpl
CplLk
CplD
CplDLk

0

Sets the Fmt (bits 6:5 of byte 0 in the TLP
header) and Type (bits 4:0 of byte 0 in the
TLP header) fields in the TLP header.

Also, this field can be specified as a direct
numeric value that specifies bits 6:0 of
byte 0 in the TLP header.

TC

0:7

0

Traffic Class: bits 6:4 of byte 1 in the
TLP header

TD

0:1

0

Bit 7 of byte 2 in the TLP header:
1 indicates presence of TLP digest in the
form of a single DW at the end of the TLP.

EP

0:1

0

Bit 6 of byte 2 in the TLP header:
1 indicates the TLP is poisoned.

0:1

0

Bit 4 of byte 2 in the TLP header: