LOGBOOK

HELP

← again tap: answer good → ↑ swipe up at the end: next

1 / 9 Part 1 of 2
Other keys: show • Space: good • 1-4: rate • 0: skip • 5: flag

Question

How does a "bed of needles" (bed-of-nails) tester check a freshly manufactured circuit board, and why is it expensive?

Answer

PCB chip A chip B broken trace? missing solder or a broken trace? needle fixture each needle lands on one test pad PASS the signal arrived: the copper is intact fixture= layout loadedby hand new board model: new fixture false FAIL BGA pins: out of reach JTAG boundary scan removes these costs

Explanation in 5 steps

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:

Spring loaded pins are a component of the bed of nails tester
Spring loaded pins are a component of the bed of nails tester
C.C.P. Contact Probes Co. Ltd. · CC BY-SA 4.0 · Wikimedia Commons
or press any other key

Question

What is the idea behind JTAG boundary scan, and why is it cheaper than a bed-of-needles tester?

Answer

chip Alogic chip Blogic chip Clogic a cell between the logic and every pin test cellcapture or drive transparent until test mode JTAG in out all cells: one long shift register 1 A drives 1 · B captures it wrong bit back = broken or shorted trace no pads · no fixture · no contact the needles are now cells in the silicon

Explanation in 5 steps

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.

Three chips on a PC board; boundary-scan cells sit at every pin and form one chain from the JTAG connector's bit stream in, through all three chips, back to bit stream out

* 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:

  1. 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.
  2. 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.
  3. 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:

Diagram of a JTAG Test Access Port
Diagram of a JTAG Test Access Port
Rudolph H 17:34, 25. Jul. 2009 (CEST) · Copyrighted free use · Wikimedia Commons
or press any other key