Lecture Set 10 s03 P2
Lecture Set 10 s03 P2
Overview
Introduction
Fault Models
Test Pattern Generation
Design for Testability (DFT) – Serial Scan
Built-In Self-Test (BIST)
Boundary Scan (JTAG/IEEE 1149.1)
Quiescent Drain Current (IDDQ) Testing
04/23/2003 2
Introduction
The manufacturing process for ICs is so complex
that only a portion of all chips produced are
good – the percentage of such good chips is
referred to as the yield
In order to avoid shipping defective products,
manufacturing test at the die and packaged chip
level is required.
Complex chips => complex tests
Introduction
Fault Models
Test Pattern Generation
Design for Testability (DFT) – Serial Scan
Built-In Self-Test (BIST)
Boundary Scan (JTAG/IEEE 1149.1)
Quiescent Drain Current (IDDQ) Testing
04/23/2003 4
Common Fault Models
Single stuck-at faults
Transistor open and short faults
Memory faults
PLA faults (stuck-at, cross-point,
bridging)
Functional faults (processors)
Delay faults (transition, path)
Analog faults
04/23/2003 5
Stuck-at Faults
04/23/2003 6
Single Stuck-at Fault
Three properties define a single stuck-at fault
• Only one line is faulty
• The faulty line is permanently set to 0 or 1
• The fault can be at an input or output of a gate
Example: XOR circuit has 12 fault sites ( ) and 24
single stuck-at faults Faulty circuit value
Good circuit value
c j
s-a-0 0(1)
a d 1(0)
1 g h
z
0 1 i
b e 1
f k
Test vector for h s-a-0 fault
04/23/2003 7
Single Stuck-at Faults
(contd.)
Checkpoints ( ) = 10
04/23/2003 11
Summary
Gate level models are most prevalent in logic testing
Fault models are analyzable approximations of defects
and are essential for a test methodology.
For digital logic single stuck-at fault model offers
advantage of effective tools and much experience.
Many other faults (bridging, stuck-open and multiple
stuck-at) are largely covered by stuck-at fault tests.
Stuck-short and delay faults and technology-dependent
faults require special tests.
Memory and analog circuits need other specialized fault
models and tests.
04/23/2003 12
Overview
Introduction
Fault Models
Test Pattern Generation
Design for Testability (DFT) – Serial Scan
Built-In Self-Test (BIST)
Boundary Scan (JTAG/IEEE 1149.1)
Quiescent Drain Current (IDDQ) Testing
04/23/2003 13
Definition of Automatic
Test-Pattern Generator
Operations on digital hardware:
Inject fault into sequential circuit modeled in computer
Use various ways to activate and propagate fault effect
through hardware to circuit output
Output flips from expected to faulty signal
Scan design – add test hardware to all flip-
flops to make them a giant shift register in
test mode
Can shift state in, scan state out
Widely used – makes sequential circuit into combinational
circuit for testing!
Costs: 5 to 20% chip area, circuit delay, extra pin, longer
test sequence
04/23/2003 14
Notation
Good Failing
Meaning
Symbol Machine Machine
D 1 0
1/0
D 0 1 Roth’s D
0/1 Algebra
0 0 0
0/0
1 1 1
1/1
X X X
X/X
04/23/2003 15
Conditions for Finding a
Test
Fault excitation – the signal value at the
fault site must be different from the
value of the stuck-at fault (thus fault site
must contain a D or a D)
The fault effect must be propagated to a
primary output (A D or a D must appear
at the output)
Some simple observations
There must be at least a D or a D on some
circuit nets)
D’s must form a chain to some output
04/23/2003 16
Exhaustive Algorithm
04/23/2003 17
Random-Pattern Generation
Flow chart
for method
Use to get
tests for 60-
80% of
faults, then
switch to D-
algorithm or
other ATPG
for rest
04/23/2003 18
Path Sensitization Method -
Example 1 Fault
Sensitization
2 Fault
Propagation
3 Line Justification
04/23/2003 19
Path Sensitization Method -
Example
Try path f – h – k – L. This path is
blocked at j, since there is no way to
justify the 1 on i
1 D
D D
1 D
D 0
1
04/23/2003 20
Path Sensitization Method
Try simultaneous paths f – h – k – L and
g – i – j – k – L. These paths blocked at k
because D-frontier (chain of D or D) disappears
1 D
D 1
1
D D
D
1
04/23/2003 21
Path Sensitization Method
Circuit Example
Final try: path g – i – j – k – L – test
found!
0
0 D
1 D
D D D
1
1
04/23/2003 22
Overview
Major ATPG algorithms
• Definitions
• D-Algorithm (Roth) – 1964-66
– D-cubes
– Bridging faults
– Logic gate function change faults
• PODEM (Goel) -- 1981
– X-Path-Check
– Backtracing
• Summary
04/23/2003 23
Overview
Introduction
Fault Models
Test Pattern Generation
Design for Testability (DFT) – Serial Scan
Built-In Self-Test (BIST)
Boundary Scan (JTAG/IEEE 1149.1)
Quiescent Drain Current (IDDQ) Testing
04/23/2003 24
Definition
Design for testability (DFT) refers to those
design techniques that make test generation
and test application cost-effective.
DFT methods for digital circuits:
Ad-hoc methods
Structured methods:
• Scan
• Partial Scan
• Built-in self-test (BIST)
• Boundary scan
04/23/2003 25
Scan Design
Objectives
• Simple read/write access to all or subset of storage
elements in a design.
• Direct control of storage elements to an arbitrary
value (0 or 1).
• Direct observation of the state of storage elements
and hence the internal state of the circuit.
04/23/2003 26
Scan Design
Circuit is designed using pre-specified design rules.
Test structure (hardware) is added to the verified design:
• Add one (or more) test control (TC) primary input.
• Replace flip-flops by scan flip-flops and connect to form one or
more shift registers in the test mode.
• Make input/output of each scan shift register
controllable/observable from PI/PO.
Use combinational ATPG to obtain tests for all testable
faults in the combinational logic.
Add shift register tests and convert ATPG tests into scan
sequences for use in manufacturing test.
04/23/2003 27
Scan Flip-Flop (master-
slave)
D Master latch Slave latch
TC
Logic Q
overhead
MUX
SD Q
CK D flip-flop
04/23/2003 28
Adding Scan Structure
PI PO
logic SFF
SFF
PI I1 I2 O1 O2 PO
Combinational
SCANIN
SCANOUT
TC
logic
Next
Presen S1 S2 N1 N2 state
t
state
04/23/2003 30
Comb. Test Vectors
Don’t care
or random
PI I1 I2 bits
SCANIN S1 S2
TC 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0000000
PO O1 O2
SCANOUT N1 N2
Introduction
Fault Models
Test Pattern Generation
Design for Testability (DFT) – Serial Scan
Built-In Self-Test (BIST)
Boundary Scan (JTAG/IEEE 1149.1)
Quiescent Drain Current (IDDQ) Testing
04/23/2003 33
BIST Process
04/23/2003 37
Random Pattern Testing
Bottom:
Random-
Pattern
Resistant
circuit
04/23/2003 38
Pseudo-Random Pattern
Generation
04/23/2003 41
Definitions
Aliasing – Due to information loss, signatures of
good and some bad machines match
Compaction – Drastically reduce # bits in original
circuit response – lose information
Compression – Reduce # bits in original circuit
response – no information loss – fully invertible
(can get back original response)
Signature analysis – Compact good machine
response into good machine signature. Actual
signature generated during testing, and
compared with good machine signature
04/23/2003 42
LFSR for Response Compaction
Use cyclic redundancy check code (CRCC) generator
(LFSR) for response compacter
Treat data bits from circuit POs to be compacted as a
decreasing order coefficient polynomial
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
After testing – compare signature in LFSR to known
good machine signature
Critical: Must compute good machine signature
04/23/2003 43
Example Modular LFSR
Response Compacter
Introduction
Fault Models
Test Pattern Generation
Design for Testability (DFT) – Serial Scan
Built-In Self-Test (BIST)
Boundary Scan (JTAG/IEEE 1149.1)
Quiescent Drain Current (IDDQ) Testing
04/23/2003 46
Overview: Boundary Scan
Motivation
System view of boundary scan
hardware
Elementary scan cell
Test Access Port (TAP) controller
Boundary scan instructions
Summary
04/23/2003 47
Motivation for Standard
Bed-of-nails printed circuit board tester gone
We put components on both sides of PCB & replaced DIPs
with flat packs to reduce inductance
Nails would hit components
Reduced spacing between PCB wires
Nails would short the wires
PCB Tester must be replaced with built-in test delivery
system -- JTAG does that
Need standard System Test Port and Bus
Integrate components from different vendors
Test bus identical for various components
One chip has test hardware for other chips
04/23/2003 48
System Test Logic
04/23/2003 49
System View of Interconnect
04/23/2003 50
Boundary Scan Chain View
04/23/2003 51
Elementary Boundary Scan
Cell
04/23/2003 52
Tap Controller Signals
Test Access Port (TAP) includes these signals:
Test Clock Input (TCK) -- Clock for test logic
Can run at different rate from system clock
Test Mode Select (TMS) -- Switches system
from functional to test mode
Test Data Input (TDI) -- Accepts serial test
data and instructions -- used to shift in
vectors or one of many test instructions
Test Data Output (TDO) -- Serially shifts out
test results captured in boundary scan chain
(or device ID or other internal registers)
Test Reset (TRST) -- Optional asynchronous
TAP controller reset
04/23/2003 53
Tap Controller State Diagram
04/23/2003 54
EXTEST Instruction
Purpose: Test off-chip circuits and board-
level interconnections
04/23/2003 55
Summary
Boundary Scan Standard has become
absolutely essential --
No longer possible to test printed circuit
boards with bed-of-nails tester
Not possible to test multi-chip modules
at all without it
Supports BIST, external testing with
Automatic Test Equipment, and
boundary scan chain reconfiguration as
BIST pattern generator and response
compacter
Now getting widespread usage
04/23/2003 56
Overview
Introduction
Fault Models
Test Pattern Generation
Design for Testability (DFT) – Serial Scan
Built-In Self-Test (BIST)
Boundary Scan (JTAG/IEEE 1149.1)
Quiescent Drain Current (IDDQ) Testing
04/23/2003 57
Basic Principle of IDDQ
Testing
04/23/2003 59
NAND Open Circuit Defect
– Floating gate
The fault
manifests as
stuck-at, weak
ON for N-FET,
or delay fault
some
manifestations
can be tested
by IDDQ tests
04/23/2003 60
Floating Gate Defects
04/23/2003 61
Bridging Faults S1 – S5
04/23/2003 63
Leakage Faults
Gate oxide shorts cause leaks between gate
& source or gate & drain
Weak Faults
• nFET passes logic 1 as 5 V – Vtn
• pFET passes logic 0 as 0 V + |Vtp|
• Weak fault – one device in C-switch does not turn on
Causes logic value degradation in C-switch
04/23/2003 64
Transistor Stuck-Closed
Faults
Due to gate oxide
short (GOS)
k = distance of short
from drain
Rs = short resistance
IDDQ2 current results
show 3 or 4 orders of
magnitude elevation
04/23/2003 65
Gate Oxide Short
04/23/2003 66
IDDQ Summary
IDDQ tests improve reliability, find defects
causing:
Delay, bridging, weak faults
Chips damaged by electro-static discharge
No natural breakpoint for current threshold
Get continuous distribution – bimodal would be
better
Conclusion: now need stuck-fault, IDDQ, and
delay fault testing combined
Still uncertain whether IDDQ tests will remain
useful as chip feature sizes shrink further
04/23/2003 67