beautypg.com

Teledyne LeCroy PETrainer Scripting Language Reference Manual User Manual

Page 12

background image

Teledyne LeCroy

PETrainer Scripting Language

7

Example 2:

Read 32 DWORDs of data starting from address 0x1000.
PSN would accept values 0 for first TLP and 1 for second TLP.
TC, EP, Ordering, and Snoop parameters are not specified, so the default value of 0 is used.
LCRC is not specified, so the LCRC is calculated by software.
ECRC is not specified, so the ECRC is calculated by software.

Packet = TLP {

PSN = Incr

TLPType = MRd32

Tag = 0

Address = 0x1000
TD = 1
FirstDwBe = 0xF

Length = 16

}

Packet = TLP {

PSN = Incr

TLPType = MRd32

Tag = 1

Address = 0x1010
TD = 1
FirstDwBe = 0xF

Length = 16

}


Example 3:

This example does not specify PSN, Tag, and LCRC. Those values are calculated automatically by the
PETrainer hardware (see more on Config = TLP command, Page 39).

Config = TLP {

AutoSeqNumber = Yes

AutoLCRC = Yes

TagGeneration = Default

}

Packet = TLP {

TLPType = MRd32

Address = 0x1010
TD = 1

Length = 1

}


Example 4:

This example shows how to specify a reserved field in the TLP header using the RawData parameter
(see more on the RawData parameter, Page 29).

Packet = TLP {

TLPType = MRd32

Address = 0x1010

RawData@4 = ( D1 )

}