Create JTAG sequence object.
Create JTAG sequence object.
The jtag sequence command creates a new sequence object. After creation the sequence is empty. The following sequence object commands are available:
sequence state new-state [count]
Move JTAG state machine to
<new-state> and then generate
<count> JTAG clocks. If
<clock> is given and
<new-state> is not a looping state (RESET, IDLE, IRSHIFT,
IRPAUSE, DRSHIFT or DRPAUSE), the state machine will move towards RESET state.
sequence irshift [options] [bits [data]] sequence drshift [options] bits [data]
Shift data in IRSHIFT or DRSHIFT state. Data is either given as the
last argument or if -tdi option is given then data will be all zeros or all ones
depending on the argument given to -tdi. The
arguments are not used for irshift when the -register option is specified. Available
Select instruction register by name. This option is only supported for irshift.
TDI value to use for all clocks in SHIFT state.
<data> is binary,
for example data from a file or from binary format.
<data> is an
integer. The least significant bit of data is shifted first.
<data> is a binary
text string. The first bit in the string is shifted first.
<data> is a
hexadecimal text string. The least significant bit of the first byte in the string
is shifted first.
Capture TDO data during shift and return from sequence run command.
State to enter after shift is complete. The default is RESET.
sequence delay usec
Generate delay between sequence commands. No JTAG clocks will be
generated during the delay. The delay is guaranteed to be at least
<usec> microseconds, but can be longer for cables
that do not support delays without generating JTAG clocks.
sequence get_pin pin
Get value of
pins are cable specific.
sequence set_pin pin value
Set value of
<value>. Supported pins are cable specific.
sequence atomic enable
Set or clear atomic sequences. This is useful to creating sequences that are guaranteed to run with precise timing or fail. Atomic sequences should be as short as possible to minimize the risk of failure.
sequence run [options]
Run JTAG operations in sequence for the currently selected jtag target. This command will return the result from shift commands using -capture option and from get_pin commands. Available options:
Format return value(s) as binary. The first bit shifted out is the least significant bit in the first byte returned.
Format return values(s) as integer. The first bit shifted out is the least significant bit of the integer.
Format return value(s) as binary text string. The first bit shifted out is the first character in the string.
Format return value(s) as hexadecimal text string. The first bit shifted out is the least significant bit of the first byte of the in the string.
Combine all return values as a single piece of data. Without this option the return value is a list with one entry for every shift with -capture and every get_pin.
Remove all commands from sequence.
JTAG sequence object.
set seqname [jtag sequence] $seqname state RESET $seqname drshift -capture -tdi 0 256 set result [$seqname run] $seqname delete