wire / wire-format / jtag-tap
JTAG (IEEE 1149.1) provides a serial interface for testing and debugging. TAP controller: 16-state FSM controlled by TMS (Test Mode Select) and TCK (Test Clock). Registers: IR (Instruction Register), DR (Data Register, includes IDCODE, BYPASS, BOUNDARY SCAN). Operations: shift instructions into IR, then shift data through DR. Used for boundary scan testing, flash programming, and CPU debugging.
aka: JTAG TAP (Test Access Port)
spec: IEEE 1149.1 (JTAG)
JTAG (IEEE 1149.1) provides a serial interface for testing and debugging. TAP controller: 16-state FSM controlled by TMS (Test Mode Select) and TCK (Test Clock). Registers: IR (Instruction Register), DR (Data Register, includes IDCODE, BYPASS, BOUNDARY SCAN). Operations: shift instructions into IR, then shift data through DR. Used for boundary scan testing, flash programming, and CPU debugging.
| field | size | meaning |
|---|---|---|
| TMS (Test Mode Select) | 1 bit | Controls the TAP state machine. Sampled on rising TCK edge. |
| TCK (Test Clock) | clock | Test clock (typically 1-10 MHz). |
| TDI (Test Data In) | 1 bit | Serial data input. Shifted into IR or DR. |
| TDO (Test Data Out) | 1 bit | Serial data output. Shifted out of IR or DR. |
| TRST (Test Reset) | 1 bit (optional) | Asynchronous reset for TAP controller. |
| IR (Instruction Register) | 2-32 bits | Holds the current instruction. Common: IDCODE (read device ID), BYPASS (1-bit pass-through), SAMPLE/PRELOAD (boundary scan), EXTEST (external test). |
| DR (Data Register) | variable | Data register selected by IR. IDCODE (32 bits: version (4) + part number (16) + manufacturer (11) + 1), BYPASS (1 bit), BOUNDARY SCAN (chain of boundary scan cells). |
| TAP states | 16 states | Test-Logic-Reset, Run-Test/Idle, Select-DR-Scan, Capture-DR, Shift-DR, Exit1-DR, Pause-DR, Exit2-DR, Update-DR, Select-IR-Scan, Capture-IR, Shift-IR, Exit1-IR, Pause-IR, Exit2-IR, Update-IR. |
example:
00 00 00 00
JTAG TAP (placeholder)
agent: curl -H 'accept: application/json' wire.phall.io/wire-format/jtag-tap
or /wire-format/jtag-tap.json