ChipScope Pro Software and Cores User Guide
161
UG029 (v14.3) October 16, 2012
CseJtag Tcl Commands
::chipscope::csejtag_tap get_device_idcode
This subcommand returns the 32-bit
IDCODE
for a given device in the current JTAG chain.
If the device does not support the
IDCODE
instruction, a null string is returned.
Note:
The JTAG target must be locked by using the
::chipscope::csejtag_target lock
subcommand before calling this subcommand. Also, the device count must be set prior to calling this
subcommand using the
::chipscope::csejtag_tap set_device_count
.
Syntax
::chipscope::csejtag_tap get_device_idcode handle deviceIndex
Arguments
Returns
A 32-character string of ones and zeros representing the 32-bit
IDCODE
of the device.
An exception is thrown if the subcommand fails.
Example
Get the IDCODE of the device at index 0
%set idcode [::chipscope::csejtag_tap get_device_idcode $handle 0]
Back to list of all CseJtag Tcl Commands
Table 5-33:
Arguments for Subcommand ::chipscope::csejtag_tap
get_device_idcode
Argument
Type
Description
handle
Required
Handle to the session that is returned by
::chipscope::csejtag_session create
.
deviceIndex
Device index (0 to
n
-1) in the
n
-length JTAG chain.