Teledyne LeCroy PETrainer Scripting Language Reference Manual User Manual
Page 23

Teledyne LeCroy
PETrainer Scripting Language
18
Address = ( FROM_MEM32_A, 32 )
The system takes the value of the Address field from the Mem32 A address space, starting with byte 32
from the beginning of the memory space image.
Tag = ( FROM_CFG, 256 )
The system takes the value of the Tag field from Configuration Space byte location 256 (which is register
location 64).
Payload = ( FROM_MEM64 )
The system copies the data Payload stream for this TLP from the beginning of the Memory Space 64
image.
Scripts can define substitution only for the following TLP fields:
o
Payload
o
Tag
o
RequesterId
o
CompleterId
o
Address
o
AddressLo
o
AddressHi
o
ComplStatus
Note: The Summit Z2-16 and Summit Z3-16 Trainers track all accesses and locations of address spaces.
The substitution address_space_offset parameter can be the string value LAST_WRITTEN. When
performing a substitution that uses LAST_WRITTEN for the address_space_offset parameter, the
Summit Z2-16 and Summit Z3-16 Trainers use the value from the beginning of the location where the
system performed the latest Write transaction. The LAST_WRITTEN option allows writing new values at
random locations or at locations that the script writer cannot determine beforehand and making such
values available for later field or Payload substitution.
An example Packet definition with field name substitution using the LAST_WRITTEN option is:
Packet=TLP
{
TLPType=MemWr32
Length = 16
...
Payload= ( FROM_MEM32_A, LAST_WRITTEN )
}
If the script transmits this TLP packet in a loop, initially the system sends a Payload filled with zeroes (or
whatever value initialized memory space 32 A). Before the system writes into a memory space, the last-
written address initializes to the beginning of the memory space, so the LAST_WRITTEN parameter
starts at 0. Now suppose that the system writes into memory space 32 A at offset 0x100. The next
transmitted TLP Payload specified by the above code includes 16 dwords of the data the system wrote
starting at offset 0x100 of memory space 32 A.