Lecture 6: Combinational Atpg: Design For Testability Theory and Practice
Lecture 6: Combinational Atpg: Design For Testability Theory and Practice
Lecture 6: Combinational
ATPG
ATPG problem
Example
Algorithms
Multi-valued algebra
D-algorithm
Podem
Other algorithms
ATPG system
Summary
Day-1 PM Lecture 6
ATPG Problem
Find
Day-1 PM Lecture 6
What is a Test?
Fault activation
Fault effect
Primary inputs
(PI)
X
1
0
0
1
0
1
X
X
Combinational circuit
1/0
Stuck-at-0 fault
Copyright 2001, Agrawal & Bushnell
Day-1 PM Lecture 6
1/0
Primary outputs
(PO)
Path sensitization
Multiple-Valued Algebras
Symbol
D
D
0
1
X
G0
G1
F0
F1
Fault-free Faulty
Alternative
Representation circuit
Circuit
1/0
0/1
0/0
1/1
X/X
0/X
1/X
X/0
X/1
1
0
0
1
X
0
1
X
X
Day-1 PM Lecture 6
0
1
0
1
X
X
X
0
1
Roths
Algebra
Muths
Additions
An ATPG Example
1 Fault activation
2 Path sensitization
3 Line justification
Day-1 PM Lecture 6
D
D
D
0
Day-1 PM Lecture 6
D
1
D
D
Conflict
1
1
Day-1 PM Lecture 6
1 Fault activation
2 Path sensitization
3 Line justification
0
1
D
D
Day-1 PM Lecture 6
D
D
1
Test found
Copyright 2001, Agrawal & Bushnell
Day-1 PM Lecture 6
D-Algorithm (Roth
1967)
Use D-algebra
Activate fault
Place a D or D at fault site
Justify all signals
Repeatedly propagate D-chain toward POs through a gate
Justify all signals
Backtrack if
A conflict occurs, or
All D-chains die
Stop when
D or D at a PO, i.e., test found, or
Search exhausted, no test possible
Day-1 PM Lecture 6
10
D
D
D-frontier = {e, h}
Day-1 PM Lecture 6
11
Example Continued
0
1
Day-1 PM Lecture 6
12
Example Continued
1
D
0
1
Day-1 PM Lecture 6
13
Example Continued
1
1
0
D
1
Day-1 PM Lecture 6
14
Example Continued
0
1
Day-1 PM Lecture 6
15
Example Continued
0
D
Day-1 PM Lecture 6
16
X
1
1
0
0
1
0
D
Day-1 PM Lecture 6
17
Day-1 PM Lecture 6
18
Podem Example
3. Logic simulation for A=0
2. Backtrace A=0
1. Objective 0
S-a-1
(9, 2)
Day-1 PM Lecture 6
19
Podem Example
(Cont.)
6. Logic simulation for A=0, B=0
5. Backtrace B=0
1. Objective 0
0
0
0
S-a-1
0
(9, 2)
Day-1 PM Lecture 6
20
Podem Example
(Cont.)
9. Logic simulation for E=0
8. Backtrace E=0
1. Objective 0
0
0
0
0
0
S-a-1
0
(9, 2)
Day-1 PM Lecture 6
21
Podem Example
(Cont.)
12. Logic simulation for D=0
1. Objective 0
0
0
0
0
0
S-a-1
0
0
13. Objective accomplished
Copyright 2001, Agrawal & Bushnell
Day-1 PM Lecture 6
0
(9, 2)
An ATPG System
Random pattern
generator
Fault simulator
yes
Save
patterns
yes
Fault
coverage
improved?
no
Random
patterns
effective?
no
Deterministic
ATPG (D-alg.
or Podem)
Day-1 PM Lecture 6
23
Summary
Finds a test, or
Determines the fault to be redundant
Complexity is exponential in circuit size
Works on primary inputs search space is smaller than that of
D-algorithm
Exponential complexity, but several orders faster than Dalgorithm
Day-1 PM Lecture 6
24
Exercise 2: Lectures
4-6
Day-1 PM Lecture 6
25
Exercise 2: Answers
SCOAP testability measures, (CC0, CC1) CO, are shown below:
(1,1) 4
(1,1) 4
(1,1) 3
(2,3) 2
(4,2) 0
(1,1) 3
Day-1 PM Lecture 6
26
Exercise 2: Answers
Cont.
A test for the stuck-at-1 fault shown in the diagram is 00.
0
0
s-a-1
Day-1 PM Lecture 6
27
Exercise 2: Answers
Cont.
Parallel fault simulation of four PI faults is illustrated below.
Fault PI2 s-a-1 is detected by the 00 test input.
00100
00000
00001
00001
PI2=0
No fault
PI1 s-a-0
PI1 s-a-1
PI2 s-a-0
PI2 s-a-1
00001
00001
Day-1 PM Lecture 6
PI1=0
28