beautypg.com

2 addressspace = write, Addressspace = write – Teledyne LeCroy PETrainer Scripting Language Reference Manual User Manual

Page 78

background image

Teledyne LeCroy

PETrainer Scripting Language

73

14.2 AddressSpace = Write


This command writes specified memory region into PETrainer from specified data source.

During write operations into Mem64, Mem32A, Mem32B, IOA, and IOB regions, the automatic
completions of Memory and IO TLP requests are disabled (see Section 0).

During write operations into Cfg region, the automatic completions of Configuration TLP requests are
disabled (see Section 0).

Parameter

Values

Default

Comment

Location

Cfg
Mem64
Mem32A
Mem32B
IOA
IOB

Specifies the memory region into
which to write.
The memory region is mapped to
the address space according to
the rules described above.
Mem64, Mem32A, Mem32B,
IOA, and IOB are applicable to
PETrainer EML only.

Offset

Any number from 0 to
the maximum allowed
address determined by
the memory region
specified in the
Location parameter

0

Specifies offset in bytes from the
beginning of the memory region
specified in the Location
parameter.

Size

Any number from 0.
The combination of
Offset and Size
parameters is limited by
the maximum allowed
address.
(The maximum allowed
address is determined
by the memory region
specified in the
Location parameter.)

If Zeros, Ones, Random,
or Incr is specified for the
LoadFrom parameter,
then the default value is
the maximum allowed size
for the memory region
specified in the Location
parameter.
Otherwise, the default size
is the size of data
specified in the LoadFrom
parameter.

Specifies number of bytes to
write starting from the address
specified in the Offset
parameter.

LoadFrom

Any file path
Any array of bytes
Zeros
Ones
Random
Incr

Zeros



Example 1:

This command clears the whole Mem32A memory region.


AddressSpace = Write {

Location = Mem32B

LoadFrom = Zeros

}