beautypg.com

4 tlptype = cfgrd0, cfgwr0, cfgrd1, cfgwr1 – Teledyne LeCroy PETrainer Scripting Language Reference Manual User Manual

Page 17

background image

Teledyne LeCroy

PETrainer Scripting Language

12

3.1.4 TLPType = Cfgrd0, Cfgwr0, Cfgrd1, Cfgwr1


Parameter

Value

Default Comment

LastDwBe

0:15

0

Byte 7 in the TLP header. See rules for
Last DW BE in the PCI Express
Specification.

FirstDwBe

0:15

0

Byte 7 in the TLP header. See rules for
1st DW BE in the PCI Express
Specification.

DeviceID

(XX:XX:X) or direct
value

0

Bytes 8-9 in the TLP header. This
parameter can be set in the following
format:
(BusNumber : DeviceNumber :
FunctionNumber
)

Register

0

Bytes 10-11 in the TLP header.



Example 1:

This example reads the Capability Pointer from the device’s configuration space
(Bus Number 0, Device Number 2, Function Number 4).

Packet = TLP {

TLPType = CfgRd0

DeviceId = (0:2:4)

Register = 0x34

Length = 1

FirstDwBe = 0x1

}



Example 2:

This example writes to the Command Register of the device’s configuration space
(Bus Number 0, Device Number 0, Function Number 1).

Packet = TLP {

TLPType = CfgWr0

DeviceId = 1

Register = 0x04

Length = 1

FirstDwBe = 0x3

Payload = ( 0x03000000 )

}