Académique Documents
Professionnel Documents
Culture Documents
Mehrdad Nourani
Dept. of EE
Univ. of Texas at Dallas
Session 04
Test Generation for
Combinational Circuits
Test
Generation
Fault Simulation
3
2. Structural
Analyzes the structure of a given circuit to generate a test
vector for a given target fault, or declare it untestable.
2. Structural
Analyzes the structure of a given circuit to generate
a test vector for a given target fault, or declare it
untestable.
Motivation
Motivation (cont.)
Structural test:
Circuit Representation
x1
c1
G1
&
1
x2
G2
c3 1
1
c8
&
c6 1
1
c5
c7 1
x1
G4
&
G3
1
z
c4
x1
0/0
c 2 0/0
x2
G1
c3 1
x2
0/0
1/1
c1
&
c3
c1
G2
&
c6 1/1
1/1
&
c5
c7 1/1
G3
1/1
1/1
&
1
c4
&
c6 1
1
c5
c7 1
1
c8
G4
&
G3
&
0
z
1
SA1 c 9
1/1
c8
G1
c4
G2
0
c2 0
0
c9
&
G4
&
1/0
z
0/1
SA1 c 9
10
Faulty
(Bad)
0/0
1/1
1/0
0/1
X/X
G0
0/X
G1
1/X
F0
X/0
F1
X/1
9-Valued
Meaning
5-Valued
Symbol
11
e.g. D+0=1/0+0/0=1/0=D
12
Path Sensitization
Examples of
Forward
Implications
Examples of Backward
Implications
13
No Way to
justify this line!
D
D
D
1
14
D
D
No Way to
propagate fault!
1
D
1
15
Test Pattern
Found
D
D
Success!
D
D
16
History of Algorithms
Algorithm
{0, 1, D}
{0, 1}
{0}
{0, D}
{0, 1, D}
{0, D, D}
{0, D}
{1, D}
{1}
{D}
{}
{1, D, D}
{1, D}
{D, D}
{D}
18
In the five-valued
system
Unique symbols 05,
15, D5, and 5 are
assigned to each set
denoting a completelyspecified value
One single symbol X5
denotes all sets with
more than one basic
value
19
In the six-valued
system
Unique symbols 06, 16, D6,
and 6 are assigned to
each set denoting a
completely-specified value
One single symbol 6
denotes the set {0, 1}, i.e.,
the only incompletelyspecified set that does not
contain D or
One single symbol X6
denotes all sets with more
than one basic value
(including {0, 1})
20
2-Input NAND
2-Input XOR
2-Input NOR
A fanout system
21
A cube represents a
combination of inputs.
singular cover: cubes with 06
or 16 at output (i.e., no fault
effect)
propagation cubes: cubes with
D6 or 6 at output
cube cover: together, all the
cubes
2-Input NAND
22
23
SA1
24
AND
OR
XOR
Fanout System
25
output SA1
output SA0
2-Input XOR
output SA1
output SA0
Fanout System
stem ci SA1
stem ci SA0
26
06
x2
06
x3
x4
x5
x6
x7
x8
x9
x10
G1
S A0
1 c D G
1
6 6
1 c
6
G2
1
c2
G8
G3
&
c3
G7
G4
&
c4
&
c7
G5
&
c5
28
06
x2
06
x3
x4
x5
x6
x7
x8
x9
x10
G1
S A0
1 c D G
1
6 6
G2
1
c2
G8
G3
&
c3
G7
G4
&
1 c
6
c4
&
c7
G5
&
c5
29
x1
06
x2
06
x3
x4
x5
x6
x7
x8
x9
x10
G1
S A0
1 c D G
1
6 6
G2
1
c2
G8
G3
&
c3
G7
G4
&
1 c
6
c4
&
c7
G5
&
c5
30
xx111
006
xx222
00 6
6
1166
xx333
xx444
xx555
xx666
xx777
x
x888
x
x999
x 10
x10
10
0
6
0
6
06
0
6
0
6
06
G 11
SA0
SA
0
1 c D
D66 GG666
11
G2
2
11
Singular cover of G2
D66
D
11 c
c666
cc2
2
00
66
GG88
8 D
D6
11 z 66
z
G3
G
33 1 6
&
&
cc3
33
G4
G
44 16
&
&
c4
c44
G
G 555 16
&
& c
c555
G
G777 0
06
&
& c6
c777
31
xx111
006
xx222
00 6
6
1166
xx333
xx444
xx555
xx666
xx777
x
x888
x
x999
x 10
x10
10
0
6
0
6
06
0
6
0
6
06
G 11
SA0
SA
0
1 c D
D66 GG666
11
G2
2
11
D
D66
11 c
c666
cc2
2
00
66
GG88
8 D
D6
11 z 66
z
G3
G
33 1 6
&
&
cc3
33
G4
G
44 16
&
&
c4
c44
G
G777 0
06
&
& c6
c777
G
G 555 16
&
& c
c555
Singular cover of G2
32
x1
6
G3
1
x2
x3
x4
G2
6
G1
&
X
1 66
D6
c1 X
6
SA0
X6
c3
DX66
c2
c5 X
6
6
X6
1
c4
c6 X6
G5
X6
c7
X6
1 c
9
G6
&
G4
X6
z
X6
c8
33
x1
6
G33
1
x2
x3
x4
G2
6
16
6
c D6
1 1
6
SA0
G11
&
DX66
c3
D
6
c2
c55 X
66
X66
1
c4
c66 X66 G
4
G5
X6
c 77
X66
1 c
9
G66
&
X66
z
X6
c 88
34
x
x11
G
G33
11
x
x22
x
x33
x
x44
66
06
6
116
6
116
6
G
G11
&
&
cc 1 D
D66
1
SA0
SA0
D
D66
cc3
3
D
D66
cc2
cc 5 X
5 X6
6
G
2
G2
X6
D
11 6
cc4
4
cc 6 X
X6
6
X
X66
cc 7
7
G
G55
X
X66
11 c
c 99
G
G66
&
&
G
G44
X
X66
zz
X
X66
cc 8
8
35
66
G
G333
1
1
x
x 22
x
x 33
x
x 44
0
066
1
166
D6
cc 1 D
1
6
1
166
SA0
SA0
SA0
G
G111
G
G 22
1
1
D
D
D6
&
6
&
c
cc 3
3
D
D66
cc2
2
cc55 D
X66
5 D
6
D
D6
6
cc 4
4
cc66 DX6
6 D6 G
6 G 44
DX66
cc 77
7
G
G 55
X
X666
1
1 cc 9
9
NOT gate G3
G
G6666
&
&
X
X
0666
cc 88
X66
1X
6
zz6
XOR gate G4
OR gate G5
NAND gate G6
36
37
G33
1
x2
x3
x4
1066
G11
16
16
&
c1 D 6
SA0
D6
c3
D6
c2
c55 D
166
X
G2
D
16
X
1 6
c4
c66 D
X
1 66 G
4
G 55
0DX
666
c7
X6 6
1 c
99
G66
&
&
1X666
z
0666
DX
c 88
38
x11
166
G3
1
x22
x33
x44
1
66
16
6
D6
cc11 D
6
16
6
SA0
G1
&
&
D6
D
6
c33
D66
c22
cc5 11
66
G22
1
6
11 6
c44
cc6 11 G
66 44
G55
006
c7
166
11 cc
99
G6
&
&
DX66
z
D66
D
c8
39
40
Importance of Implication
1
c4
c6
G8
&
c 5 G7
1
c8
c7
42
3.
In sixteen-valued system
+
+
+
43
d.
e.
If successful, continue
Else, backtrack
44
Identification of TGSTs
Backtrack
Find the most recent value assignment at which an untried alternative existed
Restore the state of the test generation algorithm to prior to that value assignment
Make an alternative TGST/value assignment and try it, starting at Step 3d or 3e
Assignment of each logic value by test generator followed by implication that
Either returns CONFLICT and initiates backtrack
Else, returns SUCCESS after updating
Values at circuit lines
D-frontier D
List of unjustified lines U
Subsequently, values at circuit lines, D, and U are analyzed to identify TGSTs with following
possible outcomes
Fault-effect excitation (FEE)
Fault-effect propagation (FEP)
Justification
Backtrack
FEE impossible
FEP impossible
Test generation complete
45
Identification of TGSTs
{0}, {1}, or {0, 1} at each output
Values at outputs
of faulty circuit element
Otherwise
Backtrack
Backtrack
Otherwise
None
46
Test generation complete