Documente Academic
Documente Profesional
Documente Cultură
Pablo Bleyer Kocik [pablo at bleyer dot org] jjtag is a framework for interfacing and managing Joint Test Action Group (JTAG) IEEE1149.1 controllers in Java. jjtag defines a common API for JTAG TAP controllers and provides utility classes that encapsulate frequent JTAG actions.
Description TAP data input TAP data output TAP state control TAP clocking TAP reset
1
TEST_LOGIC_RESET
0
RUN_TEST_IDLE
SELECT_DR
SELECT_IR
0
CAPTURE_DR
0 1 1
CAPTURE_IR
0
SHIFT_DR
0
SHIFT_IR
1 1 0
EXIT1_DR
1
EXIT1_IR
1 0
0
PAUSE_DR
0
PAUSE_IR
1
EXIT2_DR
1 0 0
EXIT2_IR
1
UPDATE_DR
1
UPDATE_IR
Host
Shift/Load DR
Serial Output
IR Mode
NDI
0 1 0 1 D C
Clock DR Update DR
NDO
D C
Serial Input
API
byte state; int delay; Holds the current state of the JTAG controller. Controls the inter-delay time between bit clocking. Meaning is controllerdependent, delay is usually expressed in milliseconds. Initializes and resets the controller. Controls the TRST signal. If the target TAP interface does not have one, then a softreset should be performed. Controls the TMS signal. The controller should keep track of the target's TAP state and update the state variable accordingly. Controls the TDI signal.
void tdi(byte[], int, byte[], boolean); void rtdi(byte[], int, byte[], boolean); String path(byte); void jump(byte); void reset();