15 structure command, 1 command parameters, Structure command – Teledyne LeCroy PETrainer Scripting Language Reference Manual User Manual
Page 80: Command parameters

Teledyne LeCroy
PETrainer Scripting Language
75
15 Structure Command
This command writes the PETrainer™ memory region, allowing you to specify various structures
to be placed in the previously defined Host Memory Region.
It is used for Host Emulation of a storage protocol using the Z3-16 Trainer.
The structure command is equivalent to the AddressSpace=Write command, but it allows
specifying the data to be written field by field and conforms to a specific PCIe-based storage
specification.
Currently, two types of structures are supported: AHCI and NVMe.
15.1 Command Parameters
The Location and Offset parameters are the same as for AddressSpace = Write command.
Additional parameters for NVMe structures:
Parameter
Values
Default
Comment
NVMeStructType AdminCommand
NVMCommand
PRP
Choosing one of the structure
types determines the total size
of the structure. Additional
parameters will display in the
list on the right allowing you to
further specify the opcodes and
fields of the corresponding
structure.
Additional parameters for AHCI structures:
Parameter
Values
Default
Comment
AhciStructType Command
FIS
PRDT
Choosing one of the structure
types determines the total size
of the structure. Additional
parameters will display in the list
on the right allowing you to
further specify the opcodes and
fields of the corresponding
structure.
Examples of NVMe structures:
Structure=NVMe
{
Location=Mem64
Offset = 0
NVMeStructType=AdminCommand
OpcodeAdmin = ADMIN_IDENTIFY
PRP1_Low = 0x3F25B190
PRP1_High = 0x8
PRP2_Low = 0x3F25C000
PRP2_High = 0x8
CNS = Controller
}