Teledyne LeCroy PETrainer Scripting Language Reference Manual User Manual
Page 41

Teledyne LeCroy
PETrainer Scripting Language
36
Example 1:
The following example configures PETrainer to generate traffic on an x4 link (LinkWidth = 4) as a host
emulator (DirectionRx = Upstream) and invert polarity on the first two lanes on incoming traffic
(InvertPolarityRx = (1,1,0,0)).
The PETrainer is reset before script execution (TrainerReset = Yes).
All options that are not specified (DisableScrambleTx, DisableDescrambleRx, ReverseLanesTx,
ReverseLanesRx, InvertPolarityTx, BaseSpec10, SkewTx, and UseExtRefClock) are taken from the
Generation Options dialog.
Config = General {
LinkWidth = 4
DirectionRx = Upstream
InvertPolarityRx = (1,1,0,0)
TrainerReset = Yes
}
Example 2:
The following example configures PETrainer to generate traffic on an x8 link (LinkWidth = 8) as a device
emulator (DirectionRx = Downstream).
Outgoing lanes are reversed (ReverseLanesTx = Yes).
Polarity on the last four outgoing lanes on outgoing traffic is inverted:
(InvertPolarityTx = ( 0,0,0,0,1,1,1,1 )).
Lanes 0 and 4 have a skew value of 1 symbol time.
PETrainer is reset before script execution (TrainerReset = Yes).
Config = General
{
LinkWidth = 8
DirectionRx = Downstream
SkewTx = (1,0,0,0,1,0,0,0)
InvertPolarityTx = ( 0,0,0,0,1,1,1,1 )
ReverseLanesTx = Yes
TrainerReset = Yes
}