← again tap: answer good → ↑ swipe up at the end: next
Question
How does a "bed of needles" (bed-of-nails) tester check a freshly manufactured circuit board, and why is it expensive?
Answer
The board is pressed onto a fixture of spring-loaded needles that touch test pads on the board, and a tester drives and measures signals through them to give a PASS or FAIL. Every board design needs its own custom fixture, and someone has to load each board by hand.
After a printed circuit board (PCB) is assembled, the factory has to find out whether every chip is soldered in and every trace connects what it should. The bed of needles does this mechanically: the board's designers place small exposed copper test pads on the nets they want to check, and a matching plate of needles is built so that each needle lands on one pad. With the board clamped on, the tester can inject a signal on one needle and measure it on another, which proves that the copper between them is intact.
The approach works, but it is costly on three counts:
- A new fixture per board model. The needle positions are the board's layout, so every new design or revision needs a new, precisely machined needle board.
- Handling time. Each board has to be placed on the fixture and clamped, which is slow.
- False failures. A needle that doesn't press cleanly onto its pad looks exactly like a broken connection, so a good board can fail because of a bad contact.
Modern boards make it worse: fine-pitch chips such as BGAs hide their pins underneath the package, where no needle can reach. That is the problem JTAG boundary scan was invented to solve.
Go deeper:
Wikipedia — Bed of nails tester — the fixture, its needles and how the board is held down.
Wikipedia — In-circuit test — what a fixture-based board test checks and why boundary scan took over part of the job.
Question
What is the idea behind JTAG boundary scan, and why is it cheaper than a bed-of-needles tester?
Answer
Every pin of every chip gets a small test cell inside the chip, and all the cells on the board are wired into one long shift register. A tester clocks bits in and out through a single connector, so it can read or set every pin without touching it.
* Each cell sits between the chip's logic and its pin. The chain links the cells of all the chips on the board to one connector. *
JTAG is named after the Joint Test Action Group, the industry group that wrote it down as IEEE 1149.1 in 1990. The trick is to move the test equipment from outside the board to inside the chips:
- Each chip that supports JTAG has a boundary-scan cell between its internal logic and each of its pins. In normal operation the cell is transparent. In test mode it can capture the value present at the pin or drive a value of its own onto it.
- The cells are connected one after another into a shift register, and the chips on the board are connected in a daisy chain: the data output of one chip feeds the data input of the next.
- A tester connected to the board's one JTAG connector shifts a pattern in. Chip A drives a 1 on an output pin, chip B captures what arrives on the pin that should be connected to it, and the result is shifted back out. If the bit came back wrong, that trace is broken or shorted.
So the "needles" are now cells inside the silicon. There are no test pads, no custom fixture and no physical contact problems, and pins hidden under a BGA package can be tested too. The board only needs the connector and four traces.
Go deeper:
EEVblog #499 — What is JTAG and Boundary Scan? — a whiteboard walk-through of boundary-scan cells and the chain.
Wikipedia — Boundary scan — cell structure, EXTEST/SAMPLE and how a board test is built from it.
IEEE 1149.1 — Test Access Port and Boundary-Scan Architecture — the standard itself (2013 edition).