S3 · Lesson 38 · Testability and fault tolerance
Fault models, scan chains, coverage and defect level, BIST, ECC and redundancy
Every chip that comes off a wafer has to be tested before it ships, in seconds, on a tester that can only reach its pins. Testing millions of internal gates through a few hundred pins is only possible because the design was built for it: every flip-flop can be strung into scan chains that shift test patterns in and results out. Whatever the tests miss ships to customers as a defect, at a rate that depends steeply on how much of the design the tests cover. And once the chip is in the field, radiation flips bits in memories and registers, so designs add codes and redundancy that catch and correct errors as they happen.
- The defect level, the fraction of chips that pass the test but are actually faulty, in parts per million, against the test's fault coverage, by the Williams–Brown model .
- At 90% yield, 99% coverage still ships about a thousand bad parts per million. Each extra nine of coverage cuts the defect level about tenfold.
- Lower the yield (a new process): the same coverage lets more bad parts through, so automotive and medical parts, which need defect levels near 1 ppm, demand coverage near 100%.
Predict
A test finds 99% of a chip's possible faults, and 90% of chips are good. Out of a million chips that pass the test, about how many are actually faulty?
About 1,050 ppm: = 0.00105. One percent of the faults go untested, and a faulty chip escapes if all its faults are in that untested part. That's far too many for most customers; raising coverage to 99.9% brings it down to about 105 ppm. Test engineers fight for every tenth of a percent of coverage.
Name it
Fault models and coverage
The stuck-at model treats each net as possibly stuck at 0 or at 1: two faults per net. Automatic test pattern generation (ATPG) finds input patterns that make each fault visible at an output. Fault coverage T is the fraction of modeled faults the patterns detect. Transition faults (too slow) and bridging faults extend the model. With process yield Y, the Williams–Brown defect level is
Scan design
Every flip-flop gets a multiplexer that, in test mode, connects it into a shift register. A test shifts a pattern in, applies one functional clock, and shifts the response out while the next pattern shifts in. With F flip-flops in C chains of length , P patterns at shift clock f take about
Test compression shrinks the data and time further, by expanding a few tester channels into many short internal chains.
BIST and boundary scan
- Built-in self-test: an LFSR generates pseudo-random patterns and a multiple-input signature register (MISR) compacts the responses into one n-bit signature. A faulty response maps to the good signature with probability about (aliasing). Memories use march tests in BIST.
- JTAG (IEEE 1149.1): a boundary-scan chain around the pins tests board connections and gives debug access.
Fault tolerance
- Parity detects any odd number of bit errors. A Hamming code with r check bits corrects one error among m data bits when ; one more bit makes it SECDED (single-error correct, double-error detect), as in the (72, 64) code on server memory.
- Triple modular redundancy: three copies and a majority voter. With each copy working with probability R, , better than R only when R > 0.5.
- Soft errors are measured in FIT, failures per device-hours; MTTF = /FIT hours.
Worked example
A design has 200,000 flip-flops in 32 scan chains and needs 5,000 patterns, shifted at 50 MHz. How long does the scan test take, and what defect level do 99% and 99.9% coverage give at 90% yield?
Show the solution
- Chain length.
- Test time. Each pattern shifts through the chain plus one capture cycle:
- Defect level at 99% coverage.
- Defect level at 99.9% coverage.
- More chains. Twice as many chains would halve the test time, at the cost of twice the tester channels (or a compressor).
Answer the scan test takes 0.625 s; 99% coverage leaves 1,053 ppm defective and 99.9% leaves 105 ppm.
Worked example
A chip has 16 Mbit of SRAM with a soft-error rate of 1,000 FIT per Mbit. What's the mean time between upsets for one chip, and for a fleet of 10,000? How many check bits does SECDED need for 64-bit words?
Show the solution
- Failure rate.
- One chip. about 7 years.
- A fleet of 10,000. It sees an upset every 6.25 hours, so the memory needs ECC.
- Check bits. For 64 data bits, , so Hamming needs 7 check bits and SECDED 8: the (72, 64) code.
Answer about 62,500 hours (7 years) for one chip and 6.25 hours for the fleet; SECDED needs 8 check bits.
Worked example
Each of three redundant copies survives a mission with probability 0.99. What does triple modular redundancy give, and what if each copy only had 0.4?
Show the solution
- TMR reliability. At least two of the three copies must survive: The chance of failure falls from 1% to 0.03%.
- At R = 0.4. worse than one copy: with unreliable parts, the voter mostly outvotes the one that still works.
Answer 0.999702 with good copies; with copies of 0.4 it gives 0.352, worse than one copy.
Check
A design has 50000 flip-flops in 16 scan chains. How long do 20000 patterns take at a 100 MHz shift clock?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A process yields 0.8 good chips, and the test's fault coverage is 0.95. What's the defect level, by Williams–Brown?
Check
How many check bits does a SECDED code need for 16 data bits?
Check
Each of three redundant copies works with probability 0.9. What's the reliability of the TMR system with a perfect voter?
Check
A BIST signature register is 16 bits wide. About what's the probability that a faulty circuit's responses alias to the good signature?
Check
50000 chips each hold 32 Mbit of SRAM with 200 FIT per Mbit. What's the mean time between soft errors across them?
Check
A chip has 50000 flip-flops in 16 scan chains and needs 10000 patterns shifted at 100 MHz. Its yield is 0.8, and the patterns cover a fraction 0.95 of the faults.
(a)
How long is each chain?
(b)
How long does the test take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(c)
What fraction of shipped parts are bad?
Check
Each copy in a triple-modular-redundant system works with probability R.
Step 1
What is the system's reliability?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is its probability of failure?
Step 3
What is that as a fraction of one copy's probability of failure?
Explain why
Why does a design need scan chains to be testable, when its outputs can already be observed at the pins?
A chip's internal state is buried behind many levels of logic and registers. To test whether one gate deep inside is stuck, a tester has to put the right values on that gate's inputs and then make the result show up at a pin, and through the normal pins that can take long sequences of carefully chosen inputs, if it's possible at all. Scan turns every flip-flop into a stage of a shift register in test mode, so the tester can load any state directly and read every flip-flop's response directly. The sequential test problem becomes a combinational one between scan registers, which ATPG tools can solve automatically, and the patterns shift in and out in a fraction of a second.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.