A JTAG compliant IC has a Test Access Port (TAP) controller that comprises of the four signals and the logic that connects and controls them.
The JTAG chip has four mandatory wires or pins and an optional fifth one for a reset signal. The required pins and roles are:
- TDI: serial input pin for the instructions, test, and programming data
- TDO: serial out pin for the instructions, test, and programming data
- TMS: input for the signal that manages the TAP controller state machine.
- TCK: clock signal input pin for the boundary scan circuitry
- TRST: reset signal (optional)
The TAP controller comprises of a 16-state finite state machine. These states are controlled by the test clock (TCK) and test modes select (TMS) signals. The JTAG interface provides a means to connect the external tools to the inbuilt TAP controller.