Motivation and Economics Definitions (BIST) Process Bist (PG) Bist (RC) Example
Motivation and Economics Definitions (BIST) Process Bist (PG) Bist (RC) Example
Motivation and Economics Definitions (BIST) Process Bist (PG) Bist (RC) Example
Definitions Built-in self-testing (BIST) process BIST pattern generation (PG) BIST response compaction (RC) Aliasing probability Example VLSI Test: Bushnell-Agrawal/Lecture 25 Summary
Costly Test Problems Costly Test Problems Alleviated by BIST Alleviated by BIST
s s s s s s
Increasing chip logic-to-pin ratio harder observability Increasingly dense devices and faster clocks Increasing test generation and application times Increasing size of test vectors stored in ATE Expensive ATE needed for 1 GHz clocking chips Hard testability insertion designers unfamiliar with gate-level logic, since they design at behavioral level April 6, 2001 VLSI Test: Bushnell-Agrawal/Lecture 25 3 In-circuit testing no longer technically
98% single stuck-at fault coverage 100% interconnect fault coverage Reject ratio 1 in 100,000
April 6, 2001
Design Fabri- Manuf.Maintenance Diagnosis Service and test cation Test and repair interruption test
+ +/April 6, 2001
Cost increase Cost saving Cost increase may balance cost reduction
VLSI Test: Bushnell-Agrawal/Lecture 25 5
Chip
Faults tested: Single combinational / sequential stuck-at faults Delay faults Single stuck-at faults in BIST hardware BIST benefits Reduced testing and maintenance cost Lower test generation cost Reduced storage / maintenance of test patterns Simpler and less expensive ATE Can test many units in parallel Shorter test application times Can test at functional system speed April 6, 2001 VLSI Test: Bushnell-Agrawal/Lecture 25 7
Definitions Definitions
s
s s
BILBO Built-in logic block observer , extra hardware added to flip-flops so they can be reconfigured as an LFSR pattern generator or response compacter, a scan chain, or as flip-flops Concurrent testing Testing process that detects faults during normal system operation CUT Circuit-under-test
Exhaustive testing Apply all possible 2 n patterns to a circuit with n inputs s Irreducible polynomial Boolean polynomial that cannot be factored s LFSR Linear feedback shift register, April 6, 2001 VLSI Test: Bushnell-Agrawal/Lecture 25 hardware that generates pseudo-random
April 6, 2001
Test controller Hardware that activates self-test simultaneously on all PCBs Each board controller activates parallel chip BIST Diagnosis effective only if very high fault coverage
VLSI Test: Bushnell-Agrawal/Lecture 25
10
Note: BIST cannot test wires and transistors: From PI pins to Input MUX From POs to output pins
VLSI Test: Bushnell-Agrawal/Lecture 25 11
April 6, 2001
Built-in Logic Block Observer (BILBO) -- 4 modes: 1. Flip-flop 2. LFSR pattern generator 3. LFSR response compacter 4. Scan chain VLSI Test: Bushnell-Agrawal/Lecture 25 for flip-flops April 6, 2001
12
Testing epoch I: LFSR1 generates tests for CUT1 and CUT2 BILBO2 (LFSR3) compacts CUT1 (CUT2) s Testing epoch II: BILBO2 generates test patterns for April 6, 2001 VLSI Test: Bushnell-Agrawal/Lecture 25
s
13
Self-test control broadcasts patterns to each CUT over bus parallel pattern generation s Awaits bus transactions showing CUTs responses to the patterns: serialized April 6, 2001 VLSI Test: Bushnell-Agrawal/Lecture 25
s
14
For n -input circuits, requires all 2 n April 6, 2001 VLSI Test: Bushnell-Agrawal/Lecture 25 vectors
s
Partition large circuit into fanin cones Backtrace from each PO to PIs influencing it Test fanin cones in parallel Reduced # of tests from 2 8 = 256 to 2 5 x 2 = 64 Incomplete fault coverage
VLSI Test: Bushnell-Agrawal/Lecture 25 17
April 6, 2001
April 6, 2001
18
April 6, 2001
19
Standard Linear Feedback Shift Register (LFSR) Produces patterns algorithmically repeatable Has most of desirable random # properties VLSI Test: Bushnell-Agrawal/Lecture 25 April 6, 2001
20
Matrix Equation for Matrix Equation for Standard LFSR Standard LFSR
X 0 ( t + 1) X 1 ( t + 1) . = . . X n -3 ( t + 1) X n -2 ( t + 1)
0 0 . . . 0 0 1 1 0 . . . 0 0 0 1 . . . 0 0 0 0 . . . 1 0 0 0 . . . 0 1
X0 (t) X1 (t) . . . X n -3 ( t ) X n -2 ( t )
h1 h2
h n -2 h n -1
X n -1 ( t + 1) X ( t + 1) = T s X ( t )
April 6, 2001
X n -1 ( t ) ( T s is companion matrix )
21
Galois field (mathematical system): Multiplication by x same as right shift of LFSR Addition operator is XOR ( ) T s companion matrix: 1 st column 0, except n th element which is always 1 ( X 0 always feeds X n -1 )
Rest of row n feedback coefficients h i Rest is identity matrix I means a right shift Near-exhaustive (maximal length) LFSR
VLSI Test: Bushnell-Agrawal/Lecture 25
April 6, 2001
22
April 6, 2001
Matrix period :
Smallest k such that T s k = I k LFSR cycle length
April 6, 2001
f (x) = |Ts I X |
24
Fault detection probability by a random number p ( x ) dx = fraction of detectable faults with detection probability between x and 1 x + dx p ( x ) dx 0 when 0 x 1 0
p ( x ) dx = 1
s s
Exist p ( x ) dx faults with detection probability1 x Mean coverage of those faults n x p ( x ) dx is 0 Mean fault coverage y n oftotal faults 1 st n vectors:
VLSI Test: Bushnell-Agrawal/Lecture 25
April 6, 2001
25
LFSR Fault Coverage & LFSR Fault Coverage & Vector Length Vector Length Estimation s Random-fault-detection (RFD) variable: Estimation
s
Vector # at which fault first detected w i # faults with RFD variable i N 1 So p ( x ) = wi pi (x) i = 1 ns
# test
s s
Method: Estimate random first detect variables w i from fault simulator using fault sampling April 6, 2001 VLSI Test: Bushnell-Agrawal/Lecture 25
wi
26
Characteristic polynomial f ( x ) = 1 + x + x3 (read taps VLSI Test: Bushnell-Agrawal/Lecture 25 from right to left) April 6, 2001
s
27
X2
s s
Always have 1 and x n terms in polynomial Never repeat an LFSR pattern more than 1 time Repeats 1) 0 1 0 X 0 ( t + same error vector, ) cancels X0 (t fault effect = 0 0 1 X 1 ( t + 1) X1 (t) 1 1 0
April 6, 2001
28
April 6, 2001
29
Described by companion matrix T m = T s Internal XOR LFSR XOR gates in between D flip-flops Equivalent to standard External XOR LFSR With a different state assignment Faster usually does not matter Same amount of hardware
s s
s s
X ( t + 1) = T m x X (t) f (x) = | Tm I X |
n
April 6, 2001
30
0 1 0 . . . 0 0 0
0 0 1 . . . 0 0 0
0 0 0 . . . 0 0 0
0 0 0 . . . 0 1 0
1 0 0 h1 0 h2 . . . . . . 0 h n -3 0 h n -2 1 h n -1
s s
April 6, 2001
Want LFSR to generate all possible 2 n 1 patterns (except the all-0 pattern) Conditions for this must have a primitive polynomial :
2 n 1, but not for any smaller k value See Appendix B of book for tables of primitive polynomials s If p ( error ) = 0.5, no difference between behavior of primitive & nonprimitive polynomial s But p ( error ) is rarely = 0.5 In that case, non-primitive polynomial LFSR takes muchVLSI Test: Bushnell-Agrawal/Lecture 25 longer to stabilize with April 6, 2001
34
1 8
LFSR p (1) = 0.5 Solution: Add programmable weight selection and complement LFSR bits to get p (1)s other than 0.5 Need 2-3 weight sets for a typical circuit Weighted pattern generator drastically shortens pattern length for pseudorandom patterns
VLSI Test: Bushnell-Agrawal/Lecture 25 36
April 6, 2001
w 1 w 2 Inv . p ( output ) w 1 w 2 Inv p ( output ) . 0 1/8 0 0 1 0 0 1 7/8 0 0 1 0 0 1 1/16 0 1 1 1 0 1 3/4 15/16 0 1 1 April 6, 2001 1 VLSI Test: Bushnell-Agrawal/Lecture 25 37 1
Cellular Automata Cellular Automata (CA) (CA) Superior to LFSR even more random
No shift-induced bit value correlation Can make LFSR more random with linear phase shifter Regular connections each cell only connects to local neighbors Gives CA cell connections 110 101 100 011 010 1 0 1 1 0
x c -1 ( t ) x c ( t ) x c +1 ( t )
001 000
s
111
x c ( t + 1) 0 1 0
April 6, 2001
38
s s
xc (t)
April 6, 2001
SAF coverage Add a small ROM with missing test patterns Add extra circuit mode to Input MUX shift to ROM patterns after LFSR done Important to compact extra test patterns s Use diffracter : Generates cluster of patterns in neighborhood of stored ROM pattern s Transform LFSR patterns into new vector set s Put LFSR and transformation hardware April 6, 2001 VLSI Test: Bushnell-Agrawal/Lecture 25 40 in full-scan chain
Test Pattern Test Pattern Augmentation Augmentation 100% Secondary ROM to get LFSR to
Severe amounts of data in CUT response to LFSR patterns example: Generate 5 million random patterns CUT has 200 outputs Leads to: 5 million x 200 = 1 billion bits response Uneconomical to store and check all of these responses on chip Responses must be compacted
April 6, 2001
41
Definitions Definitions
Aliasing Due to information loss, signatures of good and some bad machines match s Compaction Drastically reduce # bits in original circuit response lose information s Compression Reduce # bits in original circuit response no information loss fully invertible (can get back original response) s Signature analysis Compact good machine response into good machine signature . Actual signature generated during testing, and compared with good machine signature April 6, 2001 VLSI Test: Bushnell-Agrawal/Lecture 25
s
42
April 6, 2001
43
Transition count:
m
C (R) = i
outputs
s
= 1
(r
i
To maximize fault coverage: Make C ( R 0) good machine transition count as large or as small as possible
VLSI Test: Bushnell-Agrawal/Lecture 25 44
April 6, 2001
Use cyclic redundancy check code (CRCC) generator (LFSR) for response compacter s Treat data bits from circuit POs to be compacted as a decreasing order coefficient polynomial s CRCC divides the PO polynomial by its characteristic polynomial Leaves remainder of division in LFSR Must initialize LFSR to seed value (usually 0) before testing s After testing compare signature in LFSR to known good machine signature VLSI Test: Bushnell-Agrawal/Lecture 45 s April 6, 2001 Critical: Must compute good25 machine
s
Example Modular Example Modular LFSR Response LFSR Response Compacter Compacter
s
April 6, 2001
X1 0 0 1 0 0 0 0 1 0
X2 0 0 0 1 0 0 0 0 1
X3 0 0 0 0 1 0 1 0 1
X4 0 0 0 0 0 1 0 1 0
0 x
+ 1 x7
47
x7 remainder
+ x5 + x3 + x2
+ x3
+ x + x + x+ 1 + 1
x5 x5 + x3
3
+ x2
compacter: Too much hardware if one of these is put on each primary output (PO) s Solution: MISR compacts all outputs into one LFSR Works because LFSR is linear obeys superposition principle Superimpose all responses in one LFSR final remainder is XOR sum of remainders of polynomial divisions of each PO by the characteristic April 6, 2001 49 polynomial VLSI Test: Bushnell-Agrawal/Lecture 25
Multiple-Input Multiple-Input Signature Register Signature Register (MISR) (MISR) response Problem with ordinary LFSR
X 0 ( t + 1) X 1 ( t + 1) . . = . X n -3 ( t + 1) X n -2 ( t + 1) X n -1 ( t + 1)
April 6, 2001
X0 (t)
d0 (t)
n -2
h n -1
X1 (t) d1 (t) . . . . . . + X n -3 ( t ) d n -3 ( t ) X n -2 ( t ) X n -1 ( t ) d n -2 ( t ) d n -1 ( t )
50
X 0 ( t + 1) X 1 ( t + 1)
April 6, 2001
0 0 1 1 0 1 0 1 0
X 2 ( t + 1)
Use 2 different testing epochs: 1 st with MISR with 1 polynomial 2 nd with MISR with different polynomial Reduces probability of aliasing Very unlikely that both polynomials will alias for the same fault Low hardware cost: A few XOR gates for the 2 nd MISR polynomial A 2-1 MUX to select between two feedback polynomials
VLSI Test: Bushnell-Agrawal/Lecture 25 52
April 6, 2001
Aliasing when bad machine signature equals good machine signature Consider error vector e ( n ) at POs Set to a 1 when good and faulty machines differ at the PO at time t
s s s
P al
aliasing probability
, 1,
P al
(1 p ) k
April 6, 2001
(1 p ) k
P al
pk
53
April 6, 2001
54
MISR has more aliasing than LFSR on single PO Error in CUT output d j at t i , followed by error in output d j+h at t i+h , eliminates any signature error if no feedback tap in MISR between bits Q j and Q j+h .
April 6, 2001
55
P al = 1/(2 k ), regardless of
Not exactly true
56
3 bit exhaustive binary counter for pattern generator VLSI Test: Bushnell-Agrawal/Lecture 25 April 6, 2001
s
57
Transition Counting vs. Transition Counting vs. LFSR LFSR s LFSR aliases for f sa1, transition
counter for a sa1
Responses Good a sa1 f sa1 b sa1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 Signatures 0 1 3 Transition Count 3 001 001 010 101 LFSR Pattern abc 000 001 010 011 100 101 110 111
April 6, 2001 VLSI Test: Bushnell-Agrawal/Lecture 25 58
Summary Summary
LFSR pattern generator and MISR response compacter preferred BIST methods s BIST has overheads: test controller, extra circuit delay, Input MUX, pattern generator, response compacter, DFT to initialize circuit & test the test hardware s BIST benefits: At-speed testing for delay & stuck-at faults Drastic ATE cost reduction Field test capability Faster diagnosis during system test Less effort to design testing process Shorter test application times April 6, 2001 VLSI Test: Bushnell-Agrawal/Lecture 25 59
s