ChipScope Pro Software and Cores User Guide
189
UG029 (v14.3) October 16, 2012
CseFpga Tcl Commands
::chipscope::csefpga_run_sys_mon_command_sequence
Executes a sequence of reads and writes from/to System Monitor registers.
Syntax
::chipscope::csefpga_run_sys_mon_command_sequence handle deviceIndex
[list hexAddresses...] [list hexInData...] [list setModes...]
commandCount
Arguments
Returns
A list containing commandCount elements each of which represents a register read value.
Note that the data element is valid if the corresponding
setModes
element is zero.
An exception is thrown if the command fails.
Example
For the second device in the JTAG chain, write
0x55AA
to the system monitor DRP register
address
0x10
and read from DRP register address
0x11
.
%set hexOutData [csefpga_run_sys_mon_command_sequence $handle 1 [list
10 11] [list 55AA 0000] [list 1 0] 2]
Back to list of all CseFpga Tcl Commands
Table 5-56:
Arguments for Subcommand
::chipscope::csefpga_run_sys_mon_command_sequence
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.
[list
hexAddresses...]
List of System Monitor DRP register addresses (in
hexadecimal) to be accessed. This number of elements in
this list is dictated by
commandCount
.
[list
hexInData...]
List of data to be written to System Monitor DRP
registers specified by the list of
hexAddresses
. The
hexInData
element is only written if the corresponding
setModes
element is non-zero. This number of elements
in this list is dictated by
commandCount
.
[list
setModes...]
List of setMode flags. Zero indicates read data from
register, non-zero indicates write. This number of
elements in this list is dictated by
commandCount
.
commandCount
Number of commands (and number of elements in each
list argument)