Professional Documents
Culture Documents
o ) ( ) (
o
f S f S =
n
2 / 1
Gat e
S
n
AND
) 2 / 1 ( 1
n
n
OR
2 / 1
n
XOR
2 / 1
NOT
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 33
Consider a circuit having 2 blocks, f and g,
wit h unshared input s
Example
Calculat e t he syndrome of t he following circuit
Sy ndr ome Comput at i on
g f g f
S S S S +
O/ P Gat e
S
OR
g f
S S
AND
g f g f
S S S S 2 +
XOR
g f
S S 1
NAND
g f g f
S S S S + 1
NOR
S
S
1
S
4
S
2
S
3
S
1
= 1-1/4 = 3/4
S
2
= 1-1/4 = 3/4
S
3
= 1/8
S
4
= 1- S
2
- S
3
+ S
2
S
3
= 7/32
S = S
1
S
4
= 21/128
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 34
Consider t he funct ion . The circuit is
syndrome unt est able
S S
'
= =
'
2 / 1
o
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 37
Built - in self- t est ( BI ST) :
The capabilit y of a circuit ( chip/ board/ syst em) t o
t est it self
Advant ages of BI ST
Test pat t erns generat ed on- chip cont rollabilit y
increased
( Compressed) response evaluat ed on- chip
observabilit y increased
Test can be on- line ( concurrent ) or off- line
Test can run at circuit speed more realist ic;
short er t est t ime; easier delay t est ing
Ext ernal t est equipment great ly simplified, or even
t ot ally eliminat ed
Easily adopt ing t o engineering changes
I nt r oduct i on t o Bui l t - I n Sel f - Test
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 38
On- line BI ST
Concurrent ( EDAC, NMR, t ot ally self- checking
checkers, et c. ) :
Coding or modular redundancy t echniques ( fault
t olerance)
I nst ant aneous correct ion of errors caused by
t emporary or permanent fault s
Nonconcurrent ( diagnost ic rout ines) :
Carried out while a syst em is in an idle st at e
I nt r oduct i on t o Bui l t - I n Sel f - Test
Module 2
Module 1
Module N
Vot er
Out put
N- Modular Redundancy ( NMR)
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 39
Off- line BI ST
A t ypical BI ST archit ect ure
Test generat ion
Prest ored TPG, e. g. , ROM or shift regist er
Exhaust ive TPG, e. g. , binary count er
Pseudo- exhaust ive TPG, e. g. , const ant - weight
count er, combined LFSR and SR
Pseudo- random pat t ern generat or, e. g. , LFSR
I nt r oduct i on t o Bui l t - I n Sel f - Test
Funct i onal Ci r cui t
( Ci r cui t Under Test )
PG
BI ST
RA
Cont r ol l er
Go/ No- Go
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 40
Response analysis
Check- sum
Ones count ing
Transit ion count ing
Parit y checking
Syndrome analysis
Et c.
Linear feedback shift regist er ( LFSR) can be
bot h t he t est generat or and response analyzer
We need a gold unit t o generat e t he good
signat ure or a simulat or
I nt r oduct i on t o Bui l t - I n Sel f - Test
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 41
A compression t echnique based on t he concept
of cyclic redundancy checking ( CRC) and
realized in hardware using linear feedback
shift regist ers
Definit ion
A funct ion f( x
1
, x
2
, , x
n
) is said t o be linear if it can
be expressed in t he form
where
There are 2
n+ 1
linear funct ions of n variables
Linear operat ions: modulo addit ion, module scalar
mult iplicat ion, & delay
Nonlinear operat ions: AND, OR, NAND, NOR, et c.
Si gnat ur e Anal y si s
n n
x a x a x a a f =
2 2 1 1 0
n i a
i
, , 1 , 0 } 1 , 0 { = e
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 42
Li near Feedback Shi f t Regi st er
Definit ion
A linear feedback shift regist er is a shift
regist er wit h feedback pat hs which consist
only of unit delays and XOR operat ors
Let M= fault - free circuit response, B= fault y
circuit response, and E= error syndrome
( Hamming) , where E= M Bt hus M= B E
and B= M E
We need a circuit t o t ake B as input and
compact it but st ill be able t o t ell if M! = B
LFSR is considered as a popular approach for
t est response compact ion
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 43
Two t ypes of generic st andard LFSRs
St r uct ur es of LFSR
D FF
C
1
D FF D FF
C
N
C
2
C
N-1
Y
1
Y
2
Y
N-1
Y
N
D FF
C
1
D FF D FF
C
N
C
2
C
N-1
Y
1
Y
2
Y
N-1
Y
N
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 44
As a funct ion of t ime, Y
j
can be expressed as
for
Hence
I f we denot e t he t ranslat ion operat or as X
k
,
where k is t he t ime t ranslat ion unit
On t he ot her hand, Y
0
( t ) can be expressed as
Then
for
Mat hemat i cal Foundat i on of LFSR
) 1 ( ) (
1
=
t Y t Y
j j
0 = j
) ( ) (
0
j t Y t Y
j
=
j
j
X t Y t Y ) ( ) (
0
=
=
=
N
j
j j
t Y C t Y
1
0
) ( ) (
=
=
N
j
j
j
X t Y C t Y
1
0 0
) ( ) ( N j s s 1
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 45
We can rewrit e t he Y
0
( t ) as
Also,
We can rewrit e t his expression as
For nont rivial solut ion, , we must have
where
is called t he charact erist ic polynomial of
t he LFSR
Mat hemat i cal Foundat i on of LFSR
=
=
N
j
j
j
X C t Y t Y
1
0 0
) ( ) (
0 ) 1 )( (
1
0
= +
=
N
j
j
j
X C t Y
0 ) ( ) (
0
= X P t Y
N
0 ) (
0
= t Y
0 ) ( = X P
N
=
+ =
N
j
j
j N
X C X P
1
1 ) (
) (X P
N
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 46
A serial input st ream m
n
, m
n- 1
, , m
1
, m
0
ent ering t he LFSR can be considered as t he
coefficient s of a polynomial
0 1
1
1
) ( c X c X c X c X c
r
r
r
r
+ + + + =
D FF
C
1
D FF D FF
C
r
C
2
C
r-1
s
1
s
2
s
r-1
s
r
C
0
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 47
Assume t hat t he init ial st at e of t he LFSR is
D
i
= 0, i= 0,,r- 1, t hen t he LFSR effect ively
divides any m( X) by c( X) , i. e. ,
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 48
The following LFSR divides any m( X) by
c( X) = X
5
+ X
4
+ X
2
+ 1
Suppose m( x) = X
7
+ X
6
+ X
5
+ X
4
+ X
2
+ 1, t hen
q( X) = X
2
+ 1, and s( X) = X
4
+ X
2
An Ex ampl e
D
1
D
0
D
3
D
2
D
3
m(X) q(X)
I/P D
0
D
1
D
2
D
3
D
4
O/P
10101111
101
10
1
-
0
0
0
0
0
0
1
0
0
0
0
1
0
0
1
0
1
1
0
0
0
1
0
1
1
-
-
1
01
101
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 49
Let m( X) be t he input polynomial of degree k- 1, q( X)
t he quot ient , and s( X) t he signat ure ( remainder) .
Then
m( X) = q( X) c( X) + s( X)
The error syndrome can be represent ed as a
polynomial e( X)
E. g. , le m( X) = X
4
+ X
3
+ 1( 11001) , and an erroneous
input b( X) = X
3
+ X+ 1( 01011) , t hen t he error
syndrome is 11001 01011= 10010, and is
represent ed by e( X) = X
4
+ X
I n general, an erroneous input polynomial can be
represent ed by
B( X) = m( X) + e( X)
Si gnat ur e Anal y si s
=
k
r k
al
P
1 2
1 2
=
k
r k
al
P
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 52
The st ruct ure of mult iple- input signat ure regist er
( MI SR)
The mat hemat ical t heory is a direct ext ension of t he
result s shown above
For equally likely error pat t erns and long dat a
st reams, t he aliasing probabilit y for an MI SR of r
st ages also is .
Mul t i pl e- I nput Si gnat ur e Regi st er
D FF
C
1
D FF D FF
C
r
C
2
C
r-1
D
1
D
r-2
D
r-1
D
0
r
al
P 2 / 1 ~
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 53
Usually, we t hink of dat a compression as a process
t hat preserves dat a int egrit y. This is why we given
more at t ent ion here t o dat a compact ion, which may
result in some losses
There are several compact ion t est ing t echniques
Parit y t est ing
One count ing
Transit ion count ing
Syndrome calculat ion
Signat ure analysis
Response Compact i on
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 54
This is t he simplest of all t echniques but also t he
most lossy
The parit y of responses t o t he t est pat t erns is
calculat ed as
, where L is t he lengt h of t he t est and r
i
is
t he response for t he it h t est pat t ern
The response of t he circuit under t est ( CUT) t o
pat t ern i and t he part ial product P
i- 1
is illust rat ed as
below
Par i t y Test i ng
=
=
=
L i
i
i
r P
1
1 i
P
D FF CUT
i
r
Test
Patterns
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 55
The number of 1s in t he response st ream is
calculat ed and compared t o t he number of 1s in t he
fault - free responses
Consider t he circuit shown below
I f we have a t est of lengt h L and t he fault - free count
is m, t he possibilit y of aliasing is [ C( L, m) - 1] pat t erns
out of a t ot al number of possible st rings of lengt h L,
( 2
L
- 1)
One Count i ng
a
b
c
11110000
11001100
10101010
11000000
11101010
f
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 56
I n t ransit ion count ing compact ion, it is only t he
number of t ransit ion 01 and 10 t hat are count ed.
Thus t he signat ure is given by
, where t he summat ion is ordinary
addit ion and is XOR operat ion
The compact ion scheme is shown below
Tr ansi t i on Count i ng
1
1
1
+
=
=
i
L i
i
i
r r
1 i
r
D FF CUT
i
r
Test
Patterns
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 57
Logic BI ST uses most ly pseudorandom ( PR) t est s.
They are usually much longer t han det erminist ic
t est s, but are definit ely less cost ly t o generat e
PR t est s are generat ed using a LFSR or cellular
aut omat a
By means of a simple circuit called an aut onomous
linear feedback shift regist er ( ALFSR)
Definit ion: an ALFSR is a LFSR wit h no ext ernal
input s
Fault s t hat are hard t o det ect wit h PR t est s are
called random pat t ern resist ant fault s
Pseudor andom Pat t er n Gener at or
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 58
Example: t he following ALFSR generat es t he
pseudorandom sequence shown in t he t able below
The out put sequence is 000111101011001, which repeat s aft er
15( 2
n
- 1) clocks
Max period for an n- st age ALFSR= 2
n
- 1
All- 0 st at e of t he regist er cannot occur in t he max- lengt h cycle
Pseudor andom Pat t er n Gener at or ( PRPG)
Q
1
Q
2
Q
3
Q
4
output
Q
1
Q
2
Q
3
Q
4
State 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15=0
1
0
0
0
1
1
0
0
1
1
1
0
1
1
1
1
0
1
1
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
0
1
0
1
1
0
0
0
1
1
1
0
0
1
0
1
0
0
0
0
1
0
0
0
0
1
1
0
0
0
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 59
A generic st ruct ure of ALFSR
A sequence of bit s { a
m
} = a
0
, a
1
, , a
m
, can be associat ed
wit h a polynomialit s gener at i on f unct i on:
I n t he above figure, assume t hat t he current st at e of Q
i
is
a
m- i
, i= 1, 2, , n, and t he init ial st at e of Q
i
is a
- i
= 0,
i= 1, 2, , n, but a
- n
= 1, t hen
Mat hemat i cal Foundat i on of PRPG
=
=
n
i
i m i m
a c a
1
=
= + + + +
0
1 0
) (
m
m
m
m
m
X a X a X a a X G
Q
1
Q
2
Q
n-1
Q
n
C
1
C
n
C
2
C
n-1
C
n-2
1 m
a
m
a
n m
a
1 + n m
a
2 m
a
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 60
Mat hemat i cal Foundat i on of PRPG
= =
=
0 1
) (
m
n
i
m
i m i
X a c
=
=
0
) (
m
m
m
X a X G
=
=
n
i m
i m
i m
i
i
X a X c
1 0
] [
1
1
1
=
+ + + =
n
i i m
i m
i m
i
i
i
i
X a X a X a X c
] [
1 0
1
1
=
+ + + =
n
i m
m
m
i
i
i
i
X a X a X a X c
] ) ( [
1
1
1
=
+ + + =
n
i
i
i
i
i
X G X a X a X c
= =
+ + + =
n
i
n
i
i
i
i
i
i
i
X a X a X c X G X c
1 1
1
1
) ( ) (
= =
+ + = +
n
i
n
i
i
i
i
i
i
i
X a X a X c X G X c
1 1
1
1
) ( ) ( 1
=
=
+
+ +
=
n
i
i
i
n
i
i
i
i
i
X c
X a X a X c
X G
1
1
1
1
1
) (
) (
Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 61
Now is t he charact erist ic polynomial of
t he LFSR as defined above. Since a
- 1
= 0, i= 1, 2, , n- 1,
and a
- n
= 1, we have
The sequence { a
m
} is cyclic, wit h t he period assumed
t o be p
Mat hemat i cal Foundat i on of PRPG
=
+ =
n
i
i
i
X c X c
1
1 ) (
=
= =
0
) (
1
) (
m
m
m
X a
X c
X G
) (
) (
1
) (
1
1 1 0
+ + + = =
p
p
X a X a a
X c
X G
) (
1
1 1 0
+ + + +
p
p
p
X a X a a X
+
) (
1
1 1 0
2
+ + + +
p
p
p
X a X a a X
) 1 )( (
2 1
1 1 0
+ + + + + + =
p p p
p
X X X a X a a
p
p
p
X
X a X a a
+ + +
=
1
) (
1
1 1 0
1
1 1 0
) (
1
+ + + =
p
p
p
X a X a a
X c
X