Testing of Digital Circuits: M. Balakrishnan Dept. of Comp. Sci. & Engg. I.I.T. Delhi
Testing of Digital Circuits: M. Balakrishnan Dept. of Comp. Sci. & Engg. I.I.T. Delhi
M. Balakrishnan
Dept. of Comp. Sci. & Engg.
I.I.T. Delhi
Test
vectors (T) Faults (F)
Test
vectors (T) Faults (F)
M. Balakrishnan
Dept. of Comp. Sci. & Engg.
I.I.T. Delhi
a i
b f
c h
d g
e
d g
e i = a + ((b.c). (d +e)’)’
di/da = ia=0 + ia=1
= ((b.c).(d+e)’)’ + 1 = (b.c)(d+e)’
Chapter 7: Testing Of Digital Circuits 19
Example (contd.)
di/da = (b.c)(d+e)’
s-a-0 fault at a can be tested by
a.di/da = 1 or a.b.c(d+e)’ = 1
test vectors (1,1,1,0,0)
s-a-1 fault at a can be tested by
a’.di/da = 1 or a’.b.c(d+e)’ = 1
test vectors (0,1,1,0,0)
Chapter 7: Testing Of Digital Circuits 20
Boolean Difference (contd.)
a
b f
c h
d g
e i = a + (f. (d +e)’)’
di/df = if=0 + if=1 = 1 + (a +d+e)
= (a+d+e)’ = a’d’e’
Chapter 7: Testing Of Digital Circuits 21
Boolean Difference (contd.)
di/df = a’.d’.e’
s-a-0 fault at f can be tested by
f.di/df = 1 or fa’d’e’ = b.c.a’d’e’ =1
test vectors (0,1,1,0,0)
s-a-01fault at f can be tested by
f’.di/df = 1 or f’.a’d’e’ = (b.c)’.a’d’e’ = 1
test vectors (0,0,X,0,0) and (0, X,0,0,0)
Chapter 7: Testing Of Digital Circuits 22
D-Algorithm
There are three main steps in the D-Algorithm
• Generate the fault
• Propagate the fault to one of the outputs
(Forward or D-Drive)
• Back propagate to get consistent assignment
for inputs (Backward drive or back-
propagation)
Chapter 7: Testing Of Digital Circuits 23
D-Algorithm (Step 1)
a i
4
b f
c 1
h
3
d g Let us say we choose
e 2
the fault g node s-a-0
Assign inputs to gate 2 to generate the fault
i.e. d = 0 and e = 0
Chapter 7: Testing Of Digital Circuits 24
D-Algorithm (Step 2)
a i
4
b f
c 1
h
3
d 0 D g
0 2
Choose a path to the o/p
e
and propagate the fault
f is to be assigned 1 and a is to be assigned 0
to propagate D to the output i
Chapter 7: Testing Of Digital Circuits 25
D-Algorithm (Step 3)
a 0
D’ i
4
b f
c 1
1 h D’
3
d 0 D g
0 2
Consistency Check
e
M. Balakrishnan
Dept. of Comp. Sci. & Engg.
I.I.T. Delhi
• Singular Cover
• D-intersection
• Primitive D-cube of a fault (pdcf)
• Propagation D-cubes (pdf)
0 1 X D D'
0 0 D' 0
1 D 1 1
X 0 1 X D D'
D D D *
D' D' * D'
a c
b
a c
b
a b c
1 D D
D 1 D
a b c
0 D D’
D 0 D’
M. Balakrishnan
Dept. of Comp. Sci. & Engg.
I.I.T. Delhi
(AB)(D) (ABCD)
0 1
(AB)(D) (BD)(C)
0 1
(A)(D)(D) (BC)(A)
Circuit
Random under test
pattern Compare
generator
Known
good ckt
R R R
e e logic e
logic
g g g
R R R
1 2 logic 3
logic
L2
L1