184
ChipScope Pro Software and Cores User Guide
UG029 (v14.3) October 16, 2012
Chapter 5:
ChipScope Engine Tcl Interface
::chipscope::csefpga_get_usercode
Reads the
USERCODE
register of the target FPGA device.
Syntax
::chipscope::csefpga_get_usercode handle deviceIndex
Arguments
Returns
The contents of the
USERCODE
register (in hexadecimal).
An exception is thrown if the command fails.
Example
Read the contents of the
USERCODE
register of the third device in the JTAG chain.
%set usercode [csefpga_get_usercode $handle 2]
Back to list of all CseFpga Tcl Commands
Table 5-51:
Arguments for Subcommand ::chipscope::csefpga_get_usercode
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.