Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Electronic Testing
Vishwani D. Agrawal
Agere Systems, Murray Hill, NJ 47974
va@agere.com
Michael L. Bushnell
ECE Dept., Rutgers University
Piscataway, NJ 08854
bushnell@caip.rutgers.edu
Part I
INTRODUCTION TO
TESTING
VLSI Realization
Process
Customers need
Determine requirements
Write specifications
Design synthesis and Verification
Test development
Fabricatio
n
Manufacturing test
Chips to customer
October 28, 2001
Definitions
Real Tests
Costs of Testing
Cost of Manufacturing
Testing in 2000AD
Course Outline
Part I:
Basic concepts and definitions
Test process and ATE
Test economics and product quality
Fault modeling
Part II:
Logic and fault simulation
Combinational circuit ATPG
Sequential circuit ATPG
Memory test
Analog test
Delay test and IDDQ test
Part III:
Scan design
BIST
Boundary scan and analog test bus
System test and core-based design
10
Testing Principle
11
Automatic Test
Equipment
Components
Consists of:
Powerful
Powerful
computer
32-bit Digital Signal
Processor (DSP) for analog testing
Test Program (written in high-level
language) running on the computer
Probe Head (actually touches the
bare or packaged chip to perform
fault detection experiments)
Probe Card or Membrane Probe
(contains electronics to measure
signals on chip pin or pad)
12
Characterization Test
Worst-case test
Choose test that passes/fails chips
Select statistically significant sample
of chips
Repeat test for every combination of 2+
environmental variables
Plot results in Schmoo plot
Diagnose and correct design errors
Continue throughout production life of
chips to improve design and process to
increase yield
13
Schmoo Plot
14
Manufacturing Test
15
Process:
Subject chips to high temperature &
over-voltage supply, while running
production tests
Catches:
Infant mortality cases these are
damaged chips that will fail in the first
2 days of operation causes bad
devices to actually fail before chips are
shipped to customers
Freak failures devices having same
failure mechanisms as reliable devices
16
Types of
Manufacturing Tests
17
Sub-types of Tests
18
Two Different
Meanings of
Functional Test
19
Test Specifications:
Functional Characteristics
Type of Device Under Test (DUT)
Physical Constraints Package, pin
numbers, etc.
Environmental Characteristics
supply, temperature, humidity, etc.
Reliability acceptance quality level
(defects/million), failure rate, etc.
Test plan generated from specifications
Type of test equipment to use
Types of tests
Fault coverage requirement
20
ADVANTEST Model
T6682 ATE
21
22
Summary
23
24
Economics of Design
for Testability (DFT)
25
Design
and test
Chips
+ / -
Boards
+ / -
System
+ / -
+
+/-
Cost increase
Cost saving
Cost increase may balance cost reduction
26
27
28
Modified Yield
Equation
Three parameters:
Y ( T ) = (1 + TAf / ) -
Assuming that tests with 100% fault coverage
( T =1.0) remove all faulty chips,
Y = Y (1) = (1 + Af / )
October 28, 2001
-
29
Defect Level
Y ( T ) - Y (1)
DL ( T ) = -------------------Y (T )
( + TAf )
30
Example: SEMATECH
Chip
31
Vector number
October 28, 2001
32
Vector
number
33
Model Fitting
34
Computed DL
Defect level in ppm
237,700 ppm ( Y =
76.23%)
35
Summary
36
Fault Modeling
37
38
Ref.: M. J. Howes and D. V. Morgan, Reliability and Degradation Semiconductor Devices and Circuits, Wiley, 1981.
October 28, 2001
39
Defect classes
Shorts
Opens
Missing components
Wrong components
Reversed components
Bent leads
Analog specifications
Digital logic
Performance (timing)
51
1
6
13
6
8
5
5
5
40
41
s-a-0
g
1
h
i
k
f
Test vector for h s-a-0 fault
October 28, 2001
1(0)
42
Fault Equivalence
43
Equivalence Rules
sa0 sa1
sa0
sa0
sa1
sa1
sa0 sa1
AND
sa0 sa1
sa0 sa1
OR
WIRE
sa0 sa1
sa0 sa1
sa0
sa1
sa0 sa1
NOT
sa1
sa0
sa0 sa1
NAND
sa0 sa1
sa0 sa1
NOR
sa0 sa1
sa0 sa1
sa0
sa1
FANOUT
October 28, 2001
sa0
sa1
sa0
sa1
44
Equivalence Example
sa0 sa1
sa0 sa1
sa0 sa1
sa0 sa1
sa0 sa1
sa0 sa1
sa0 sa1
sa0 sa1
sa0 sa1
sa0 sa1
sa0 sa1
sa0 sa1
sa0 sa1
Faults in red
removed by
equivalence
collapsing
sa0 sa1
sa0 sa1
sa0 sa1
20
Collapse ratio = ----- = 0.625
32
October 28, 2001
45
Fault Dominance
46
Dominance Example
F1
s-a-1
All tests of F2
F2
s-a-1
110
101
s-a-1
001
000
100
010
011
Only test of F1
s-a-1
s-a-1
s-a-0
A dominance collapsed fault set
October 28, 2001
47
Checkpoints
48
Classes of Stuck-at
Faults
49
Summary
50
Part II
TEST METHODS
Logic Simulation
51
Simulation Defined
Validate assumptions
Verify logic
Verify performance (timing)
Types of simulation:
52
Simulation for
Verification
Specification
Synthesis
Response Design Design
analysis changes (netlist)
Computed
responses
True-value
simulation
Input stimuli
53
Modeling for
Simulation
Interconnects represent
54
Example: A Full-Adder
c
e
d
A
B
C
HA1
D
E
HA
HA2
Carry
Sum
HA;
inputs: a, b;
outputs: c, f;
AND: A1, (a, b), (c);
AND: A2, (d, e), (f);
OR: O1, (a, b), (d);
NOT: N1, (c), (e);
FA;
inputs: A, B, C;
outputs: Carry, Sum;
HA: HA1, (A, B), (D, E);
HA: HA2, (E, C), (F, Sum);
OR: O2, (D, F), (Carry);
55
pMOS FETs V DD
a
b
Ca
Cb
Cc
Da
Db
nMOS FETs
C a , C b and C c are
parasitic
capacitances
Dc
D a and D b are
interconnect or
propagation
delays
D c is inertial delay
of gate
56
Transient
region
b
c (CMOS)
Logic
simulation
c (zero delay)
c (unit delay)
X
c (multiple delay)
Unknown (X)
c (minmax delay)
0
October 28, 2001
rise=5, fall=5
min =2, max =5
Time units
57
Signal States
0
October 28, 2001
58
Modeling Levels
Modeling
level
Circuit
description
Programming
Function,
behavior, RTL language-like HDL
Signal
values
0, 1
Timing
Application
Clock
boundary
Architectural
and functional
verification
Logic
Connectivity of
Boolean gates,
flip-flops and
transistors
0, 1, X
and Z
Zero-delay
unit-delay,
multipledelay
Logic
verification
and test
Switch
Transistor size
and connectivity,
node capacitances
0, 1
and X
Zero-delay
Logic
verification
Timing
Fine-grain
timing
Timing
verification
Circuit
Continuous
time
Digital timing
and analog
circuit
verification
Analog
voltage,
current
59
True-Value Simulation
Algorithms
Compiled-code simulation
Event-driven simulation
60
Compiled-Code
Algorithm
61
Event-Driven Algorithm
(Example)
e
=1
d = 0
4
b =1
t = 0
f =0
g
0
d, e
d = 1, e = 0
f, g
3
4
Time, t
g =0
f = 1
7
8
c =0
g =1
Time stack
a =1
c =1
0
Scheduled Activity
events
list
g =1
62
Large logic
Steady 0
block without
(no event)
activity
63
Summary
64
Fault Simulation
65
Problem and
Motivation
Determine
A circuit
A sequence of test vectors
A fault model
Fault coverage - fraction (or percentage) of
modeled faults detected by test vectors
Set of undetected faults
Motivation
66
Fault simulator in a
VLSI Design Process
Verified design
netlist
Verification
input stimuli
Fault simulator
Test vectors
Modeled
Remove
fault list tested faults
Low
Fault
coverage
?
Adequate
Stop
October 28, 2001
Test
Delete
compactor vectors
Test
generator
Add vectors
67
Fault Simulation
Scenario
Mostly logic with some switch-level for highimpedance (Z) and bidirectional signals
High-level models (memory, etc.) with pin faults
Two (0, 1) or three (0, 1, X) states for purely
Boolean logic circuits
Four states (0, 1, X, Z) for sequential MOS circuits
Timing:
68
Fault Simulation
Scenario (continued)
Faults:
69
Fault Simulation
Algorithms
Serial
Parallel
Deductive
Concurrent
Differential
70
Serial Algorithm
Advantages:
71
Serial Algorithm
(Cont.)
Test vectors
Fault-free circuit
Comparator
f1 detected?
Comparator
f2 detected?
Comparator
fn detected?
72
Parallel Fault
Simulation
73
a
b
1
1
s-a-0
0
c s-a-0 detected
0
s-a-1
74
Deductive Fault
Simulation
One-pass simulation
Each line k contains a list Lk of faults
detectable on k
Following true-value simulation of each
vector, fault lists of all gate output lines
are updated using set-theoretic rules,
signal values, and gate input fault lists
PO fault lists provide detection data
Limitations:
75
Concurrent Fault
Simulation
76
a
b
1
1
c
d
1
1 0
b
1 0
0
c
1 0
e
1 0
1
0
0
0
a0
0
0 1
October 28, 2001
d0
0 1
f1
1 1
g0
0 e0
0
0
0 c0
0
0
0 b0
1
1
1
b0
1
1
f1
1
1
d0
77
Fault Sampling
78
Random Sampling
Model
Detected
fault
Random
picking
Undetected
fault
Ns = sample size
Ns << Np
c = sample coverage
(a random variable)
79
Probability Density of
Sample Coverage, c
(x--C )2
-- -----------2 2
1
p (x ) = Prob(x < c < x +dx ) = -------------- e
2 1/2
p (x )
C (1 -
C)
Variance 2 =
-----------Mean = C Ns
C -3
C x
Sample coverage
Sampling
error
C +3 1.0
80
4.5
C 3 = x ------- [1 + 0.44 Ns x (1 - x )]1/2
Ns
81
Summary
82
Combinational
Automatic Testpattern Generation
83
Functional vs.
Structural ATPG
84
Carry Circuit
85
Structural
(Continued)
86
Definition of
Automatic TestPattern Generator
87
88
Algorithm
Completeness
89
90
Random-Pattern
Generation
Flow chart
for method
Use to get
tests for 6080% of
faults, then
switch to Dalgorithm or
other ATPG
for rest
91
Path Sensitization
Method Circuit Example
1 Fault Sensitization
2 Fault Propagation
3 Line Justification
92
Path Sensitization
Method Circuit Example
Try path f h k L blocked at j , since
there is no way to justify the 1 on i
1
1
D
D
D
D
1
October 28, 2001
93
Path Sensitization
Method Circuit Example
Try simultaneous paths f h k L and
g i j k L blocked at k because
D-frontier (chain of D or D ) disappears
1
1
1
D
94
Path Sensitization
Method Circuit Example
Final try: path g i j k L test found!
0
1
0
D
1
1
October 28, 2001
95
History of Algorithm
Speedups
Algorithm
96
97
D-frontier
Fault Cone
98
Forward Implication
99
Backward Implication
100
Unexplored
Present Assignment
Searched and Infeasible
0
0
October 28, 2001
1
0
1
0
1
101
Branch-and-Bound Search
102
Sequential Automatic
Test-pattern
Generation
103
Sequential Circuits
104
Concept of TimeFrames
Fault
Unknown
or given
Init. state
Comb.
block
October 28, 2001
Timeframe
-n+1
PO -n+1
State
variables
Vector -1
Vector 0
Timeframe
-1
Timeframe
0
PO -1
PO 0
Next
state
105
s-a-1
FF2
106
Nine-Valued Logic
(Muth)
s-a-1
0/1
FF1
FF2
X/1
0/X
0/X
0/1
X/1
Time-frame -1
October 28, 2001
B X
Time-frame 0
FF1
FF2
0/1
107
Implementation of
ATPG
108
Complexity of ATPG
Smax
TimeFrame
max-2
S3
S0
109
Cycle-Free Circuits
110
Cycle-Free Example
Circuit
F2
2
F3
F1
Level = 1
s - graph
F2
2
F1
F3
Level = 1
dseq = 3
111
F2
F1
s - graph
F1
F2
112
Adding Initializing
Hardware
F2
F1
s-a-0
s-a-1
CLR
s-a-1
s-a-1
Untestable fault
Potentially detectable fault
s - graph
F1
October 28, 2001
F2
113
Benchmark Circuits
Circuit
PI
PO
FF
Gates
Structure
Seq. depth
Total faults
Detected faults
Potentially detected faults
Untestable faults
Abandoned faults
Fault coverage (%)
Fault efficiency (%)
Max. sequence length
Total test vectors
Gentest CPU s (Sparc 2)
October 28, 2001
s1196
14
14
18
529
Cycle-free
4
1242
1239
0
3
0
99.8
100.0
3
313
10
s1238
14
14
18
508
Cycle-free
4
1355
1283
0
72
0
94.7
100.0
3
308
15
s1488
8
19
6
653
Cyclic
-1486
1384
2
26
76
93.1
94.8
24
525
19941
s1494
8
19
6
647
Cyclic
-1506
1379
2
30
97
91.6
93.4
28
559
19183
114
Simulation-based
ATPG
115
Yes
Vector source:
Functional (test-bench),
Heuristic (walking 1, etc.),
Weighted random,
random
Trial vectors
Stopping
criteria (fault
Fault
simulator
coverage, CPU
time limit, etc.)
Restore
circuit
state
satisfied?
Stop
Fault
list
No
New faults
detected?
Yes
Update
fault
list
Append
vectors
Test
vectors
116
Background
117
Genetic Algorithms
(GAs)
Population
Fitness criteria
Regeneration rules
118
Strategate Results
s1423
s5378
s35932
Total faults
1,515
4,603
39,094
Detected faults
1,414
3,639
35,100
Fault coverage
93.3%
79.1%
Test vectors
3,943
11,571
1.3 hrs.
37.8 hrs.
CPU time
HP J200 256MB
89.8%
257
10.2 hrs.
119
Summary
Cycle-free circuits:
Cyclic circuits:
Asynchronous circuits:
High complexity
Low coverage and unreliable tests
Simulation-based methods are more useful (Section 8.3)
120
Memory Test
121
122
1 Mb
4 Mb
16 Mb
64 Mb
256 Mb
1 Gb
2 Gb
0.06
0.25
1.01
4.03
16.11
64.43
128.9
n X log2n
1.26
5.54
24.16
104.7
451.0
1932.8
3994.4
n3/2
n2
64.5
18.3 hr
515.4
293.2 hr
1.2 hr
4691.3 hr
9.2 hr
75060.0 hr
73.3 hr
1200959.9 hr
586.4 hr 19215358.4 hr
1658.6 hr 76861433.7 hr
123
124
125
126
Reduced Functional
Faults
Fault
SAF Stuck-at fault
TF
Transition fault
CF
Coupling fault
NPSF Neighborhood Pattern Sensitive fault
127
Transition Faults
1 or 1
0 transition
<
/0>,
<
/1>
<
October 28, 2001
128
Coupling Faults
129
Idempotent Coupling
Faults (CFid)
or transition in j sets cell i to 0 or 1
<
or
130
131
SA1+SCF
ABF
ABF
SA0
gg
ABF
SCF
132
Fault Hierarchy
133
Fault Frequency
Cluster
0
1
2
3
4
5
7
-14
October 28, 2001
# Devices
714
169
18
9
8
5
26
-2
Fault class
Stuck-at and Total failure
Stuck-open
Idempotent coupling
State coupling
?
?
Data retention
?
?
134
Need
Need
( r x, w x)
( r x, w x)
135
Irredundant March
Test Summary
Algorithm SAF
AF
TF CF CF CF SCF Linked
in id dyn
Faults
MATS
All Some
MATS+
All All
MATS++
All
All All
MARCH X All All
All All
MARCH C All All
All All All All
MARCH A All All
All All
MARCH Y All All
All All
MARCH B All All
All All
October 28, 2001
All
Some
Some
Some
136
MATS+ Example
Cell (2, 1) SA1 Fault
MATS+:
{ M0:
(w0); M1:
October 28, 2001
(r1, w0) }
137
Memory Testing
Summary
138
Analog Test
139
Mixed-Signal Testing
Problem
140
Differences from
Digital Testing
141
Present-Day Analog
Testing Methods
142
Definitions
143
More Definitions
144
145
Waveform Synthesis
1987 IEEE
146
Waveform Sampling
1987 IEEE
147
WS = waveform source
WM = waveform measurement
148
149
Ideal Transfer
Functions
A/D Converter
October 28, 2001
D/A Converter
150
Offset Error
151
Gain Error
152
153
154
Differential Linearity
Error
Differential
155
156
1987 IEEE
Measure Vy Vx difference, not absolute Vx or Vy
157
Summary
158
DSP-Based Testing
159
Coherent
Measurement Method
Ft tone frequency
Fs sampling rate
160
CODEC Testing
Example
Ft = 1000 Hz
F s = 8000 s/s
P = 50 msec
M = 50 cycles
N = 400 samples
Problem: M and N not relatively prime
All samples fall on waveform at certain
phases sample only 8/255 CODEC steps
161
CODEC Testing
Solution
Fs
162
Fs = 8000 s/s
P = UTP = 50 msec
= 20 Hz
M = 51 cycles
N = 400 samples
M and N now relatively prime
All samples fall on waveform at different
phases samples all CODEC steps
163
164
165
166
167
Spectral DSP-Based
Testing Components
1987 IEEE
168
Correlation Model
1987 IEEE
169
Fourier Voltmeter
1 st Principle
1987 IEEE
For signals A and B , if P is infinite, R = 0 . If
P is finite and contains integer # cycles
of both A and B , then cross-correlation R
= 0 , regardless of phase or amplitude
170
Fourier Voltmeter
2 nd Principle
1987 IEEE
If signals A and B of same f are 90 o out of
phase, and P contains an integer J # of
signal cycles, then cross-correlation R = 0 ,
regardless of amplitude or starting point
171
Conceptual Discrete
Fourier Voltmeter
1987 IEEE
172
A/D Converter
Spectrum
1987
IEEE
Audio source at 1076
Hz sampled
at 44.1 kHz
173
Coherent Multi-Tone
Testing
1987 IEEE
174
Single-Tone Test
Example
1987 IEEE
175
176
Total Harmonic
Distortion (THD)
177
178
Delay Test
179
180
Synchronized
With clock
Outputs
Comb.
logic
Transient
region
Inputs
Output
Observation
instant
time
Clock period
181
Circuit Delays
182
Event Propagation
Delays
13
P2
0
0
3
2
246
P3
5
183
Robust Test
184
A Five-Valued Algebra
S0
U0
S1
U1
XX
S0 U0 S1 U1 XX
S0
S0
S0
S0
S0
S0
U0
U0
U0
U0
S0
U0
S1
U1
XX
NOT
S0
U0
U1
U1
XX
S0
U0
XX
XX
XX
S0 U0 S1 U1 XX
OR
Input 2
Input 2
AND
Input 1
S0
U0
S1
U1
XX
S0
U0
S1
U1
XX
Input
S0 U0 S1 U1 XX
S1 U1 S0 U0 XX
U0
U0
S1
U1
XX
S1 U1 XX
S1 U1 XX
S1 S1 S1
S1 U1 U1
S1 U1 XX
Ref.:
Lin-Reddy
IEEETCAD-87
185
Fault
Non-Robust Test
Generation
R1
D. R1 propagates through
OR gate since off-path
input is U0
R1
Path P2
A. Place R1 at
path origin
R1
R1
R1
U1
U0
XX
U0
Non-robust test:
U1, R1, U0
186
Path-Delay Faults
(PDF)
187
Slow-Clock Test
Combinational
circuit
Input
latches
Input
test clock
Test
clock
period
Input
test clock
Rated
clock
period
Output
latches
Output
test clock
Output
test clock
V1
applied
October 28, 2001
V2
applied Output
latched
188
Normal-Scan Test
V2 states generated, (A) by one-bit scan shift of V1, or
(B) by V1 applied in functional mode.
Combinational
V1 PIs
applied
PO
Scanin
Gen. V2
V1 states states
circuit
CK TC
SCANOUT
Slow clock
SFF
SFF
SCANIN
TC
(A)
Path
tested
Result
scanout
Rated
CK period
Scan mode
Scan mode
Slow CK
period
CK TC
V2 PIs
applied
Normal
mode
PI
Result
latched
TC
(B) Scan mode
Normal mode
Scan mode
189
Variable-Clock Sequential
Test
Off-path
flip-flop
PI
PI
PI
0
n-2
PO
PI
PI
n-1
PO
PI
PO
Initialization sequence
(slow clock)
D
PO
Path
activation
(rated
Clock)
n+1
PO
n+m
PO
Fault effect
propagation
sequence
(slow clock)
190
At-Speed Test
191
Timing simulation:
192
Summary
193
I DDQ Test
194
195
Capacitive Coupling
of Floating Gates
196
Bridging Faults S 1 S 5
197
Delay Faults
198
Leakage Faults
199
Weak Faults
200
201
Quietest Results
Ckt.
# of
# of
%
Leakage
Tran- Leakage Selected
Fault
Sistors Faults
Vectors Coverage
7584
39295
0.5 %
94.84 %
42373 220571
0.99 %
90.50 %
1
2
Ckt.
1
2
October 28, 2001
# of
Weak
Faults
1923
1497
%
Weak
Selected
Fault
Vectors Coverage
0.35 %
85.3 %
0.21 %
87.64 %
202
Sematech Results
IDDQ (5
pass pass
6
pass
14
0
fail
6
1
pass
52
36
fail
pass fail
A limit)
fail
fail
1463
7 pass
34
1 pass
13
8
fail
1251
fail
pass fail
Functional
Essentials of Test: Agrawal & Bushnell
Scan-based delay
203
Summary
204
Part III
DESIGN FOR
TESTABILITY
Scan Design
October 28, 2001
205
Definition
Scan
Partial Scan
Built-in self-test (BIST)
Boundary scan
206
207
Scan Design
Circuit is designed using pre-specified design
rules.
Test structure (hardware) is added to the
verified design:
208
209
Slave latch
TC
Q
Logic
overhead
MUX
SD
CK
D flip-flop
CK
TC
t
Scan mode, SD selected
t
210
Slave latch
D
Q
MCK
Q
D flip-flop
SD
MCK
Logic
overhead
MCK
TCK
Scan
mode
TCK
TCK
Normal
mode
SCK
SCK
211
PO
Combinational
SFF
logic
SFF
SCANOUT
SFF
TC or TCK
SCANIN
October 28, 2001
Not shown: CK or
MCK/SCK feed all
SFFs.
Essentials of Test: Agrawal & Bushnell
212
PI
I1
I2
O2
Combinational
SCANIN
TC
Present
state
O1
SCANOUT
logic
S1
S2
PO
N1
N2
Next
state
213
SCANIN
I2
I1
PI
S1
Dont care
or random
bits
S2
TC 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
PO
SCANOUT
O2
O1
N1
N2
214
215
Scan Overheads
216
2,781
179
0
0.0%
4,603
35/49
70.0%
70.9%
5,533 s
414
414
Full-scan
2,781
0
179
15.66%
4,603
214/228
99.1%
100.0%
5s
585
105,662
217
Summary
Advantages:
Rule-based design
Automated DFT hardware insertion
Combinational ATPG
Design automation
High fault coverage; helpful in diagnosis
Hierarchical scan-testable modules are easily
combined into large scan-testable systems
Moderate area (~10%) and speed (~5%) overheads
Disadvantages:
218
Built-In Self-Testing
(BIST)
219
controller
Hardware pattern generator
Hardware response compacter
Testing of BIST hardware
Pin overhead -- At least 1 pin needed to
activate BIST operation
Performance overhead extra path delays due
to BIST
Yield loss due to increased chip area or
more chips In system because of BIST
Reliability reduction due to increased area
Increased BIST hardware complexity
happens when BIST hardware is made
testable
220
BIST Benefits
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
October 28, 2001
221
BIST Process
222
BIST Architecture
223
Characteristic polynomial f ( x ) = 1 + x + x 3
(read taps from right to left)
224
Pattern sequence
1 0
X0
0 0
X1
0 1
for
0
1
0
0 1 1 1 0 0
1 1 1 0 0 1
X2
Always have 1 and x n terms in polynomial
Never repeat an LFSR pattern more than 1
time Repeats same error vector, cancels
fault effect
X 0 ( t + 1)
0 1 0
X0 (t)
X 1 ( t + 1) = 0 0 1
X1 (t)
X 2 ( t + 1)
1 1 0
X2 (t)
October 28, 2001
225
Response Compaction
226
Definitions
227
228
229
Polynomial Division
Inputs
X0 X1 X2 X3 X4
Initial State 0 0 0 0 0
1
1 0 0 0 0
0
0 1 0 0 0
0
Logic
0 0 1 0 0
0
Simulation:
0 0 0 1 0
1
1 0 0 0 1
0
1 0 0 1 0
1
1 1 0 0 1
0
1 0 1 1 0
Logic simulation: Remainder = 1 + x 2 + x 3
0
1
0
1
0
0
0
1
.
.
.
.
.
.
.
0 x 0. + 1 x 1 + 0 x 2 + 1 x 3 + 0 x 4 + 0 x 5 + 0
x6 + 1 x7
October 28, 2001
230
Symbolic Polynomial
Division
x2 + 1
x5 + x3 + x + 1
remainder
+ x
+ x3
5
+ x3
+ x
+ x2
+ x
x5
3
x5 + x
3
+ x2
+ x
+ x+ 1
+ 1
x
Remainder matches that from logic simulation
of the response compacter!
October 28, 2001
231
Multiple-Input
Signature Register
(MISR)
232
X 0 ( t + 1)
X 1 ( t + 1)
X 2 ( t + 1)
0 0 1
1 0 1
0 1 0
X0 (t)
X1 (t)
X2 (t)
d0 (t)
d1 (t)
d2 (t)
233
Aliasing Theorems
234
Reset
235
SI Scan In
SO Scan Out
Characteristic polynomial : 1 + x + + x n
CUT B:
236
Circuit Initialization
237
Circuit Initialization
(continued)
238
Test
239
March test:
{
( w Address );
( r Address );
( w Address );
( r Address );
( r Address );
( w Address );
( r Address );
( r Address ) }
240
241
Summary
242
IEEE 1149.1
243
Purpose of Standard
Lets test instructions and test data be
serially fed into a component-under-test
(CUT)
Allows reading out of test results
Allows RUNBIST command as an instruction
Too many shifts to shift in external tests
JTAG can operate at chip, PCB, & system
levels
Allows control of tri-state signals during
testing
Lets other chips collect responses from CUT
Lets system interconnect be tested
separately from
components
October 28, 2001
Essentials of Test: Agrawal & Bushnell
245
246
Instruction Register
Loading with JTAG
247
System View of
Interconnect
248
249
Elementary Boundary
Scan Cell
250
251
252
SAMPLE / PRELOAD
Instruction -- SAMPLE
Purpose:
1. Get snapshot of normal chip output signals
2. Put data on bound. scan chain before next
instr.
254
SAMPLE / PRELOAD
Instruction -- PRELOAD
255
EXTEST Instruction
256
INTEST Instruction
Purpose:
1. Shifts external test patterns onto
component
2. External tester shifts component responses
out
257
RUNBIST Instruction
CLAMP Instruction
259
IDCODE Instruction
260
Device ID Register
--JEDEC Code
MSB
31
28
Version
(4 bits)
27
12 11
1
Part
Manufacturer
Number
Identity
(16 bits)
(11 bits)
LSB
0
1
(1 bit)
261
USERCODE Instruction
262
HIGHZ Instruction
263
BYPASS Instruction
264
Summary
265
266
PROs:
Usable with digital JTAG boundary scan
Adds analog testability both
controllability and observability
Eliminates large area needed for analog
test points
CONs:
May have a 5 % measurement error
C-switch sampling devices couple all probe
points capacitively, even with test bus off
requires more elaborate (larger) switches
Stringent limit on how far data can move
through the bus before it must be digitized
to retain accuracy
267
268
269
270
System Test
271
272
Functional Test
273
Gate-Level Diagnosis
Karnaugh map
Logic circuit
b
a
b
c
d
e
T2
a
T4
T3
T1
274
Gate Replacement
Fault
Karnaugh map
Faulty circuit
a
b
c
d
e
T2
a
T4
T3
T1
275
Fault Dictionary
Fault
Test syndrome
t1
t2
t3
t4
0
c0
c1, d1, e1
No fault
a0, b0, d0
a1
b1
a0 : Line a stuckat-0
ti = 0, if Ti passes
= 1, if Ti fails
276
Diagnosis with
Dictionary
OR
AND
OR-bridge (a,c)
OR
October 28, 2001
NOR
Test syndrome
t1
t2
t3
t4
Diagnosis
e0
b1
c 1 , d1 , e1 , e0
277
System Test:
Partitioning for Test
278
Test-Wrapper for a
Core
279
A Test-Wrapper
from/to
External
Test pins
Scan chain
to/from TAP
Functional
core outputs
Core
Scan chain
Scan chain
Functional
core inputs
Wrapper
elements
Wrapper
test
controller
280
Overhead Estimate
Rents rule: For a logic block the number of gates G
and the number of terminals t are related by
t = K G
where 1 < K < 5, and ~ 0.5.
Assume that block area A is proportional to G, i.e.,
t is proportional to A 0.5. Since test logic is added
to each terminal t,
0.5
281
wrapper
Func.
outputs
Func.
inputs
Test
Module
wrapper
Functional
inputs
Test
Test
source
Test
sink
Functional
outputs
TDO
TRST
TMS
TCK
SOC inputs
TDI
SOC outputs
282
Summary
283
References
284