Teledyne LeCroy PETrainer Scripting Language Reference Manual User Manual
Page 50
Advertising
Teledyne LeCroy
PETrainer Scripting Language
45
Example 2:
This example shows how to use definitions in the expressions (see Page 65) and how to redefine the
values.
Config = Definitions {
READ_START = 0x10
}
; Repeat 10 times.
Repeat = Begin {
Count=10
Counter = i
}
; Send TLP using repeat counter (i) and
; READ_START to specify the address.
Packet = TLP {
TLPType = CfgRd0
Register = ( READ_START + ( 4 << i ) )
}
Repeat=End
; Redefine READ_START, now READ_START is 0x40.
Config = Definitions
{
READ_START = ( READ_START + 0x30 )
}
; Send TLP using READ_START to specify the address.
Packet = TLP {
TLPType = CfgRd0
Register = READ_START
}
Advertising