beautypg.com

Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual

Page 109

background image

Teledyne LeCroy

Voyager USB 3.0 Exerciser Generation Script Language Reference Manual

100


# Change $X from the above to
# {C0 01 C0 DE 11 22 AA EE BE F0 0D F0 0D}
# and add local field F1_F2 and B3 to variable X.
# B3 is only 16 bits long, hence only AA EE is taken as data,
# and FF BB is truncated.

$X

{

F1_F2 :

0

,

40

= {

C0 01 C0 DE 11

}

B3 :

48

,

16

= {

AA EE FF BB

}

#Note: B3 is only 16 bits long.

}

# Send a packet of {C0 01 C0 DE 11 22 AA EE 44 55 22 33 44} by
# modifying $X from the above.
# Existing local field F6 is used and
# F7 is instantiated for use in this Send instruction only.
# F6 fills in from offset 72-103,
# because that is where it became declared
# when created in $X earlier.
# F7 fills in offset 64-79,
# because variable length fields F3 and F4 still exist,
# and there is a hole between offset 63-72.

Send $X{
F6 = {

11 22 33 44

}

F7 :

16

= {

44 55

}

}
}