ChipScope Pro Software and Cores User Guide www.xilinx.com 203
UG029 (v14.3) October 16, 2012
CseVIO Tcl Commands
::chipscope::csevio_write_values
Writes values to the specified signal/bus of the target VIO core.
Syntax
::chipscope::csevio_write_values handle [list deviceIndex
userRegNumber coreIndex] outputTclArray
Arguments
Returns
An exception is thrown if the command fails.
Example
Assumptions for these examples:
• coreRef has already been set to the VIO core
• A signal called “reset” is defined as a bit in the SYNC_OUTPUT port
• A bus called “instruction” is defined as an 8-bit bus in the ASYNC_OUTPUT port
1. Set the reset signal to 0 and set the instruction bus to FF
%set outputTclArray(reset) 0
%set outputTclArray(instruction) FF
%csevio_write_values $handle $coreRef outputTclArray
2. Send a single clock cycle pulse of 1 followed by 0s to the reset signal
%set outputTclArray(reset.pulsetrain) 00000000000000000000000000000001
%csevio_write_values $handle $coreRef outputTclArray
Back to list of all CseVIO Tcl Commands
Table 5-69: Arguments for Subcommand ::chipscope::csevio_write_values
Argument Type Description
handle
Required
Handle to the session that is returned by
::chipscope::csejtag_session create
[list
deviceIndex
userRegNumber
coreIndex]
A list containing three elements:
• Device index (0 to n-1) in the n-length JTAG chain
• BSCAN block USER register number (starting with 1)
• Index for core unit. First core unit connected to ICON has
index 0.
outputTclArray
Name of a Tcl array. The index into the array is the name of an
output signal or bus defined by csevio_define_signal or
csevio_define_bus, respectively. For signals that belong to the
SYNC_OUTPUT port, the postfix ".pulsetrain" can be
appended to the name and a string hexadecimal values can be
specified (LSB is right-most character). In order to use the
pulse train, 16 values must be passed in, with the first value
sent in to the right. Each value must be byte aligned. This
means that a single signal requires two hexadecimal characters
for each value. If the value is greater than 8 bits, then two
additional characters are required per value, and so on. Each
element of the array must be unset manually after this
command is called to reuse the array.