ch03 PDF
ch03 PDF
ch03 PDF
Testability Measures
Jin-Fu Li
Advanced Reliable Systems (ARES) Lab.
Lab
Department of Electrical Engineering
N ti
Nationall Central
C t lU University
i it
Jhongli, Taiwan
Outline
Purpose
Controllability and Observability
SCOAP Measures
S
Summary
A A
B Y B Y
C C
a z CC0(z)=CC0(a)+CC0(b)+1
b CC1(z)=min (CC1(a), CC1(b))+1
a z CC0(z)=CC1(a)+CC1(b)+1
CC0(z) CC1(a)+CC1(b)+1
b CC1(z)=min (CC0(a), CC0(b))+1
z CC0(z)=CC1(a)+1
a
CC1( ) CC0( ) 1
CC1(z)=CC0(a)+1
zn
CO(stem)=min(CO(branches))
( ) ( ( ))
(1,1) (1,1)
PI1
(1,1)
(1,1)
PI2 (1,1)
PO0
level2
(2,2) (3,5)
PO1
(3,5)
((1,1)
, ) ((2,2)
, ) PO2
PI3
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 14
Controllability Calculation
(1 1)
(1,1) (1,1)
(1 1)
PI1 (CC0, CC1)
(1,1)
(2,6)
(1,1)
PI2 ((1,1)
, )
(2,7)
PO0
(2,2) (3,5)
(2 7)
(2,7) PO1
level3 (3,5)
(1,1) (2,2) PO2
PI3
(1,1) (1,1)
PI1
(1,1)
(2 6)
(2,6)
(1,1)
PI2 (1,1)
(2,7)
PO0
level4
(2,2) (3,5) (5,7)
(2,7) PO1
(3,5)
((1,1)
, ) ((2,2)
, ) PO2
PI3
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 15
Observability Calculation
(1,1) (1,1)
PI1
(1,1) (2,6)
(1,1) 3
PI2 (1,1)
(2,7) 0
PO0
(2,2) (3,5)
((5,7)
, )
(2 7)
(2,7) PO1
level1 0
(3,5) 3
(1,1) (2,2) PO2
PI3 0
(1,1) (1,1) 8
PI1
(1,1) 8 (2,6)
(1,1)
6 3
PI2 (1,1)
6 (2,7) 0
2 PO0
level2
(2,2) (3,5)
(5,7)
(2,7) PO1
0
(3,5) 3
(1,1) (2 2)
(2,2) PO2
PI3 0
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 16
Observability Calculation
(1,1) (1,1) 8
PI1
(1,1) 8 (2,6)
(1,1)
6 3
PI2 (1,1)
6 (2,7) 0
2 PO0
(2,2) (3,5)
((5,7)
, )
3 (
(2,7)
) PO1
level3 3 0
(3,5)
(1,1) (2,2) PO2
PI3 0
3
(1,1) (1,1) 8
PI1
4 (1,1) 8 (2,6)
(1,1)
6 3
PI2 (1,1)
6 (2,7) 0
2 PO0
level4
4 (2,2) (3,5)
(5,7)
3 (2,7) PO1
3 0
(3,5)
(1,1) 4 (2 2)
(2,2) O
PO2
PI3 0
3
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 17
Sequential Measure Difference
Combinational
Increment CC0,, CC1,, CO whenever y you pass
p
through a gate, either forwards or backwards
Sequential
q
Increment SC0, SC1, SO only when you pass
through
g a flip-flop, either forwards or
backwards, to Q, Q’, D, C, SET, or RESET
Both
Must iterate on feedback loops until
controllabilities stabilize
C
RESET
Th
The combinational
bi ti l andd sequential
ti l
difficulties of controlling Q to a 1 are
CC1(Q)
CC1(Q)=CC1(D)+CC1(C)+CC0(C)+CC0(RESET)
CC1(D) CC1(C) CC0(C) CC0(RESET)
SC1(Q)=SC1(D)+SC1(C)+SC0(C)+SC0(RESET)
+1
CC1 measures how many lines in the circuit
must be set to make Q as 1
SC1 measures how many flip-flops in the circuit
must be clocked to set Q to 1
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 19
D Flip-Flop Examples
Set Q to a 0
CC0(Q)=min
(Q) ((CC1(RESET)+CC0(C),
( ) ( ), CC0(D)+
( )
CC1(C)+CC0(C)+CC0(RESET))
SC0(Q)=min (SC1(RESET)+SC0(C), SC0(D)+
SC1(C)+SC0(C)+SC0(RESET)+1
Observability of D
CO(D)=CO(Q)+CC1(C)+CC0(C)+CC0(RESET)
SO(D)=SO(Q)+SC1(C)+SC0(C)+SC0(RESET)+
( ) (Q) ( ) ( ) ( )
1
Observability
y of RESET
CO(RESET)=CO(Q)+CC1(Q)+CC0(C)+CC1(RES
ET)
SO(RESET)= CO(Q)+CC1(Q)+CC0(C) +
CC1(RESET)+1
Observability of C
CO(C)
CO(C)=min
min [CO(Q)+CC0(RESET)+CC1(C)+
CC0(C)+CC0(D)+CC1(Q), CO(Q)+CC1(RESET)
+CC1(C)+CC0(C)+CC1(D)]
SO(C)=min [SO(Q)+SC0(RESET)+SC1(C)+
( ) ( ) (Q),
SC0(C)+SC0(D)+SC1(Q),
SO(Q)+SC1(RESET)+SC1(C)+SC0(C)+SC1(D)]
+1
(1,1)
Z
[0 0]
[0,0]
DQ (inf,inf)
[inf,inf]
(inf,inf) (inf,inf)
DQ
[inf,inf] [inf,inf]
CL
(1,1)
[0,0]
(1,1)
Z
[0 0]
[0,0] (2,2) (inf,inf)
[0,0]
DQ
[inf,inf]
(1,1)
(inf,inf) [
[0,0]
]
(3,inf) DQ (inf,inf)
[inf,inf] (inf,inf) [inf,inf]
[0,inf]
[inf,inf]
CL (1,1)
[0,0] (1,1)
(7,inf)
[0,0]
[0,inf]
(4,inf)
(4 inf)
[0,inf]
(1,1)
Z
[0 0]
[0,0] (2,2) (9,inf)
[0,0]
DQ
[1,inf]
(1,1)
(5,inf) [
[0,0]
]
(3,9) DQ (5,inf)
[1,inf] (inf,6) [1,inf]
[0,1]
[inf,1]
CL (1,1)
[0,0] (1,1)
(7,10)
[0,0]
[0,1]
(4,27)
(4 27)
[0,3]
(1,1)
Z
[0 0]
[0,0] (2,2) (9,17)
[0,0]
DQ
[1,2]
(1,1)
(5,11) [
[0,0]
]
(3,9) DQ (5,11)
[1,2] (12,6) [1,2]
[0,1]
[2,1]
CL (1,1)
[0,0] (1,1)
(7,15)
[0,0]
[0,1]
(4,27)
(4 27)
[0,3]
(1,1)
Z
[0 0]
[0,0] (2,2) (9,17)
[0,0]
DQ
[1,2]
(1,1)
(5,11) [
[0,0]
]
(3,9) DQ (5,11)
[1,2] (12,6) [1,2]
[0,1]
[2,1]
CL (1,1)
[0,0] (7,15) (1,1)
[0,1] [0,0]
(4,27)
(4 27) 0
[0,3] 0
(1,1) 26
Z
18
[0 0] 3
[0,0] (2,2) 25
2 (9,17)10
[0,0] 3
DQ
[1,2] 1
(1,1) 36
[0 0] 4
[0,0]
(5,11)22
(3,9) 24 DQ (5,11)22
[1,2] 2 [1,2] 2
(12,6)21 [0,1] 3
[2,1] 2
CL (1,1) 36
[0,0] 4 (1,1) 38
18 (7,15)12
[0,0] 5
2 [0,1] 2