Professional Documents
Culture Documents
L08 Design For Test Ability
L08 Design For Test Ability
L08 Design For Test Ability
1
Basic Concept
2
Ad-Hoc DFT Methods
3
• Avoid high fanin fanout combinations.
• Make flip-flops initializable.
• Separate digital and analog circuits.
• Provide test control for difficult-to-control
signals.
4
Ad-hoc Methods :: Drawbacks
5
Structured Methods
6
A Sequential Circuit
Primary Primary
Input Output
Combinational
Logic
Present Next
State State
Flip
flops
7
Scan Path Design
• Basic Problem
– Test generation for sequential circuits is
difficult.
• Objective
– Make all the flip-flops directly controllable and
observable.
• What do we gain?
– Combinational circuit test generation can be
used.
– A few additional tests to test the flip-flops
(shift register).
8
Scan Design (contd.)
10
Correcting a Rule Violation
FF Comb.
D2 logic
CK
Comb.
logic
Q
D1
D2 FF Comb.
logic
CK
11
Scan Flip-Flop (master-slave)
D Master latch Slave latch
TC
Q
Logic
overhead
MUX
SD Q
CK D flip-flop
12
Adding Scan Structure
PI PO
SFF
TC or TCK
SCANIN
13
• Application of the test vectors:
14
Combinational Test Vectors
PI I1 I2 O1 O2 PO
SCANIN
Combinational
SCANOUT
TC
logic
Next
Present S1 S2 N1 N2 state
state
15
Combinational Test Vectors
Don’t care
or random
PI I1 I2 bits
SCANIN S1 S2
TC 0000000 1 0000000 1 0000000
PO O1 O2
SCANOUT N1 N2
16
• Scan sequence length:
17
An example: the I/O specifications
18
contd. : corresponding scan sequence
19
Scan Testing Time
20
A Typical Module With Scan Chains
PI
Scan Scan
Module out
in
PO
21
Multiple Scan Paths
22
Multiple Scan Path Example
PI/SCANIN M
U PO/SCANOUT
X
Combinational
Circuit
SFF
SFF
SFF
MODE
24
Scan Overheads
• IO pins:
– One pin necessary.
• Area overhead:
Gate overhead = [4 ns / (ng + 10ns)] x 100%
where ng = number of gates in combinational logic
ns = number of flip-flops
– Example:
• ng = 100k gates, ns = 2k flip-flops, overhead =
6.7%.
– More accurate estimate must consider scan wiring
and layout area.
25
• Performance overhead:
– Multiplexer delay added in combinational path;
approx. two gate-delays.
– Flip-flop output loading due to one additional
fanout; approx. 5-6%.
26
Hierarchical Scan
• Scan flip-flops are chained within subnetworks before
chaining subnetworks.
• Advantages:
• Automatic scan insertion in netlist
• Circuit hierarchy preserved – helps in debugging
and design changes
• Disadvantage: Non-optimum chip layout.
Scanin Scanout
SFF1 SFF4
SFF1 SFF3
Scanin
Scanout
SFF2 SFF3 SFF4 SFF2
Original Full-scan
28
Summary
29
• Disadvantages:
• Large test data volume and long test time
• Basically a slow speed (DC) test
30
Level Sensitive Scan Design
31
LSSD
Polarity-Hold Latch:
D
C
C D +L
D 0 0 L
+L 0 1 L
L L
1 0 0
C
1 1 1
32
LSSD
34
Double-Latch LSSD
C/L
X Z
C
A
SI L1 L1 L1 SO
L2 L2 L2
35
Single-Latch LSSD
C/L
X Z
C
A
SI L1 L1 L1 SO
L2 L2 L2
36
Single-Latch LSSD With Conventional
SRLs
Y2 SRL
Z1
e11 y11
.
L1
...
L2 Sout
Y1
...
X1 ~
~
N1
e1n y1n
.
. L1 L2
.
Scan Path
C1
Y1
.Z
y21 12
e 21 .
. L1
L2 Y2
X2 N2 .
...
...
~
~
e 1m y2m .
.
. L1 L2
.
C2 A B
Sin
37
SRL Using Two-Port L2*
L*
G1
D = DI
C = CK1 . . .
G3
G4
S = I = D2
A = CK2 .
L*
G2
G8
G7
B = CK4
. .
G5
D* = D3
C* = CK3 .
G6
38
SRL Using Two-Port L2*
L*
D1 Q . L1
CK1
L1
D2
CK2 Q L*
D1 Q L2
CK1
L2
D2
CK2
(b) Symbol
39
Single-Latch LSSD With L2* Latches
SRL
Y2
Z1 L*
e11 D1 y11
CK1
...
L1
...
D2 Y1
CK2
X1
N1 e1n L* y1n
D1
. CK1
D2 L1
. CK2
C
A
Y1 L* y21
Z2 D1
e21 CK1
D2
CK2 Y2
...
X2
...
N2 L*
D1 y2n
e2n . CK1
D2 Sout
. CK2
C*
B
Sin
40
LSSD Design Rules
41
LSSD Design Rules (contd.)
44
Advantages With LSSD
45
Problems With LSSD