Docsity

Random Test Generation, Boolean Difference, D Algorithm | THTR 3, Assignments of Theatre

Toggle sidebar
bg1
ECE255A โ€“ HW3 solutions P. 1/2
4.2 (Random Test Generation)
Recall that the detection probability is n
f
f
T
d2
=, where f
T is the set
of vectors that can detect fault f, and n is the number of inputs in the
circuit. In this circuit, we have 3 inputs, so there is a total of 8
possible vectors.
(b) For e/1, one vector, abc = 010 can detect it. Thus f
d = 0.125
4.3 (Boolean Difference)
(a) The set of vectors that can detect e/0 is
() ()()()
()()
()
()
()
bc
bcabc
bcae
bcae
bge
bggbgge
bgge
ezeze
d
d
e
e
z
=
+=
โ‹…+โ‹…=
โ‹…โ‹…=
โ‹…โ‹…=
+โ‹…+โ‹…โ‹…=
+โŠ•โ‹…=
=โŠ•=โ‹…โ‹…=โ‹…=
m
101
Thus, the set of vectors is {011, 111}.
4.8 (D Algorithm)
Initially, we place a D on b. The D-frontier at this time includes {d,
e}. Next, we pick a D-frontier to propagate the fault effect across.
Suppose we pick d. Then, the decision a=0 is made. At this time, the
D-frontier becomes {x, e}. We pick the D-frontier that is closest to a
PO. Thus, we pick x. The next decision is e1=0. This decision implies y=1
and z=D. In other words, the fault-effect has been propagated all the way
to the PO. The J-frontier consists of {e1=0, b= D}. To justify e1=0, c=0
is sufficient. Justifying b= D is likewise straightforward, simply by
setting b=0. Thus the vector abc=000 detects the target fault b/1.
A similar decision process is made for the target fault e/0. However, in
this case, one would conclude that the fault is untestable.
pf2

Partial preview of the text

Download Random Test Generation, Boolean Difference, D Algorithm | THTR 3 and more Assignments Theatre in PDF only on Docsity!

ECE255A โ€“ HW3 solutions P. 1/

4.2 (Random Test Generation)

Recall that the detection probability is d (^) f Tf n 2

= , where T (^) f is the set

of vectors that can detect fault f, and n is the number of inputs in the circuit. In this circuit, we have 3 inputs, so there is a total of 8 possible vectors.

(b) For e/1, one vector, abc = 010 can detect it. Thus d (^) f = 0.

4.3 (Boolean Difference)

(a) The set of vectors that can detect e/0 is

bc

bc abc

e a c b

e ac b

e g b

e g g b g g b

e g g b

e z e ze d

e d e

z

m

Thus, the set of vectors is {011, 111}.

4.8 (D Algorithm)

Initially, we place a D on b. The D-frontier at this time includes {d,

e}. Next, we pick a D-frontier to propagate the fault effect across. Suppose we pick d. Then, the decision a=0 is made. At this time, the D-frontier becomes {x, e}. We pick the D-frontier that is closest to a PO. Thus, we pick x. The next decision is e1=0. This decision implies y= and z=D. In other words, the fault-effect has been propagated all the way

to the PO. The J-frontier consists of {e1=0, b= D }. To justify e1=0, c=

is sufficient. Justifying b= D is likewise straightforward, simply by

setting b=0. Thus the vector abc=000 detects the target fault b/1.

A similar decision process is made for the target fault e/0. However, in this case, one would conclude that the fault is untestable.

ECE255A โ€“ HW3 solutions P. 2/

4.13 (Static Implications) (a) The implications for g=0 include {a=0, b=1, c=1, d=0, e=0, f=1, g=0, h=0} (b) The implications for $f=0$ include {a=1, b=1, c=0, d=1, e=1, f=0, g=1, h=0}

4.18 (PODEM)

(b) c/1: The first objective is c=0, which backtraces to b=0. Next, to propagate the fault, a=1. At this time the D-frontier is g. The next objective is f=0. With fault simulation we obtain that the fault is blocked. So we backtrack to f=1. This also blocks the fault. So we revert f=X and backtrack to a=0. This also blocks the fault. Finally we backtrack to b=1. This cannot excite the fault. We are now at the root of the decision tree. No more backtracks are possible. Thus the fault is untestable.

(c) d/0: The first objective is d=1, which backtraces to b=1. With simulation we obtain the D-frontier to be {z}. The next objective is g=1. Backtracing through an X-path leads us to f=0. Simulating at this time, the D-frontier is still the same. The previous objective g=1 is not yet justified. So we backtrace from g=1 again via an X-path. This time it takes us to a=1. With simulation the fault is detected. So the vector is abf=110.

4.23 (Sequential ATPG) (a) In time-frame 0, we propagate the D to output z, thus we need the flip-flop value to be 1. In time-frame -1, the flip-flop value=1 can be obtained by either the flip-flop value in time-frame -2 to be 1, or a=1. However, since a=0 (the target fault), we must backtrace to the flip-flop in time-frame -2. This will repeat indefinitely, resulting the fault to be untestable using the 5-valued logic.

(b) In time-frame 0, we propagate the D to output z, thus we need the flip-flop value to be 1/X in the 9-valued logic. In time-frame -1, the flip-flop value=1/X can be obtained via either the flip-flop in time-frame -2 or via a. In fact, a=1/0 (the target fault) suffices our need of a=1/X. Thus, the vector sequence (a=1, a=X) is the test sequence.