134
ChipScope Pro Software and Cores User Guide
UG029 (v14.3) October 16, 2012
Chapter 5:
ChipScope Engine Tcl Interface
CseFpga Tcl Commands
The CseFpga Tcl command category consists of several commands (see
Note:
Refer to the file csefpgaglobals.tcl in the ChipScope Pro tool installation for all CseFpga Tcl
global variable declarations.
Table 5-6:
Summary of ::chipscope::csejtag_tap Subcommands
Subcommand
Description
autodetect_chain
Attempts to automatically detect all information
pertaining to the JTAG chain currently connected to
the target.
interrogate_chain
Scans the JTAG chain to determine the length of the
chain and the
IDCODE
information of each device in
the chain.
get_device_count
Gets the number of devices in the JTAG chain.
set_device_count
Sets the number of devices in the JTAG chain.
get_irlength
Gets the instruction register (IR) length of a device.
set_irlength
Sets the instruction register (IR) length of a device.
get_device_idcode
Gets the
IDCODE
of a device.
set_device_idcode
Sets the
IDCODE
of a device.
navigate
Navigates to a JTAG
TAP
state.
shift_chain_ir
Shifts a stream of bits into and out of the instruction
register of the JTAG chain.
shift_chain_dr
Shifts a stream of bits into and out of the data register
of the JTAG chain.
shift_device_ir
Shifts a stream of bits into and out of the instruction
register of a particular device in the JTAG chain.
shift_device_dr
Shifts a stream of bits into and out of the data register
of a particular device in the JTAG chain.
Table 5-7:
CseFpga Tcl Commands
Command
Description
::chipscope::
csefpga_configure_device
Configures an FPGA device with the contents of a byte array
containing the contents of a .
bit
, .
rbt
, or .
mcs
file.
::chipscope::
csefpga_configure_device_with_file
Configures an FPGA device with the contents of a .
bit
, .
rbt
,
or .
mcs
file.
::chipscope::csefpga_get_config_reg
Reads the configuration register bits of the target FPGA
device.
::chipscope::
csefpga_get_instruction_reg
Reads the instruction register of the target FPGA device and
format the configuration-specific status bits.