S338 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 DL=1−Y1−T.
  • 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?

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

DL=1−Y1−T

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 L=⌈F/C⌉, P patterns at shift clock f take about

t=P(L+1)f

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 2−n (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 2r≥m+r+1; 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, RTMR=3R2−2R3, better than R only when R > 0.5.
  • Soft errors are measured in FIT, failures per 109 device-hours; MTTF = 109/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
  1. Chain length. 200,00032=6250
  2. Test time. Each pattern shifts through the chain plus one capture cycle: t=5000×625150MHz=0.625s
  3. Defect level at 99% coverage. 1−0.90.01=1053ppm
  4. Defect level at 99.9% coverage. 1−0.90.001=105ppm
  5. 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
  1. Failure rate. 16×1000=16,000FIT
  2. One chip. MTTF=10916,000=62,500hours about 7 years.
  3. A fleet of 10,000. It sees an upset every 6.25 hours, so the memory needs ECC.
  4. Check bits. For 64 data bits, 27=128≥64+7+1, 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
  1. TMR reliability. At least two of the three copies must survive: RTMR=3R2−2R3=0.999702 The chance of failure falls from 1% to 0.03%.
  2. At R = 0.4. RTMR=3(0.16)−2(0.064)=0.352 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°.

Explain why

Why does a design need scan chains to be testable, when its outputs can already be observed at the pins?

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.