12 Design For Testability
12 Design For Testability
Lecture 12:
Design for Testability
Instructor: M. Tahoori
History
During early years, design and test were separate
The final quality of the test was determined by keeping track of the
number of defective parts shipped to the customer
Defective parts per million (PPM) shipped was a final test score.
This approach worked well for small-scale integrated circuit
During 1980s, fault simulation was used
Failed to improve the circuit’s fault coverage beyond 80%
Increased test cost and decreased test quality lead to DFT
engineering
EE141TDS I: Lecture 12 2
Lecture 12 1
Testing Digital Systems I
History
Various testability measures & ad hoc testability
enhancement methods
To improve the testability of a design
To ease sequential ATPG (automatic test pattern
generation)
Still quite difficult to reach more than 90% fault coverage
Structured DFT
To conquer the difficulties in controlling and observing
the internal states of sequential circuits
Scan design is the most popular structured DFT approach
Design for testability (DFT) has migration recently
From gate level to register-transfer level (RTL)
Copyright 2010, M. Tahoori TDS I: Lecture 12
Lecture 12 2
Testing Digital Systems I
Challenge
“Right” DFT technique to choose
Observability and controllability play a major role in
influencing the testability of a given IC
Observability refers to the ease with which the state of internal
signals can be determined at the circuit output leads.
Controllability refers to the ease of producing a specific internal
signal value by applying signals to the circuit input leads
Improve testability
Introduce test points, that is, additional circuit inputs and outputs to
be used during testing
Lecture 12 3
Testing Digital Systems I
Scan Architecture
Structured DFT
Lecture 12 4
Testing Digital Systems I
Scan Features
Very few (from 1 to 4) additional external connections are
used to access many internal nodes
Typically all of the system bistable elements
Serialization of the test data
Otherwise, a large number of I/O pins will be required to control and
observe logic values stored in each system bistable
Test data must be transferred serially or scanned in and out
of the circuit being tested.
The change from normal system operation to test mode can
be controlled by a level test-mode signal or by a separate
test clock signal
Scan Features
Lecture 12 5
Testing Digital Systems I
Scan Design
Circuit is designed using pre-specified design rules.
Test structure (hardware) is added to the verified design:
Add a test control (TC) primary input.
Lecture 12 6
Testing Digital Systems I
Lecture 12 7
Testing Digital Systems I
MD Flip-flop Architectures
Lecture 12 8
Testing Digital Systems I
MD Flip-flop Architectures
(a) General structure of a flip-flop finite state machine
(b) MD-flip-flop scan path architecture
X1 X1 Z1
Combinational Combinational Circuit
Xn Circuit Z1 Xn Zm
CK Zm
Y1 y1 Y1 y2 Y2 ys Ys
1D y1
C1 0, 2D 0, 2D 0, 2D
SDI SDO
1, 2D 1, 2D 1, 2D
ys Q Q Q
Ys G1 G1 G1
1D
C1 C2 C2 C2
CK
T
(a) (b)
MD Full-Scan Design
Lecture 12 9
Testing Digital Systems I
MD Flip-flop Architectures
general structure of a flip-flop finite state machine
CK is the clock input,
X1, …, Xn are the primary inputs
Z1, …, Zm are the primary outputs.
There are s D-flip-flops corresponding to internal variables y1, …, ys.
scan path architecture using MD flip-flops
One additional input, the T input, has been added
T = 0: The upper data inputs (y1, …, ys) act as the flip-flop D inputs
T = 1: The lower data inputs become the flip-flop D inputs.
D = Q
i i-1 for i from 2 to s, and a shift register is formed
The primary input Xn is connected to D1 becoming the shift register
input
Qs, the shift register output, appears at the primary output Zm.
Lecture 12 10
Testing Digital Systems I
SCANIN S1 S2
TC 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0000000
PO O1 O2
SCANOUT N1 N2
Lecture 12 11
Testing Digital Systems I
Issues
The MD-flip-flop based scan path architecture does not need
to route any extra clock
However, the test signal T has to be routed to all flip-flop
Depending on the layout, the routing of the test signal T with proper
skew control limits the speed at which scan shift can be done
Scan speeds between 10 MHz to 200 MHz aren’t uncommon
Another factor that limits the speed at which the scan chains
can be operated is the amount of power dissipation during
scan
Lecture 12 12
Testing Digital Systems I
Lecture 12 13
Testing Digital Systems I
X1 Z1
Xn Combinational Circuit
Zm
y1 Y1 y2 Y2 ys Ys
1D 1D 1D
SDI SDO
2D 2D 2D
Q Q Q
C1 C1 C1
C2 C2 C2
CK
TCK
1. Scan in the test vector yj values via Xn using test clock TCK
2. Set the corresponding test values on the Xi inputs.
3. After sufficient time for the signals to propagate through
the combinational network, check the output Zk values.
4. Apply one clock pulse to the system clock CK to enter the
new values of Yj into the corresponding flip-flops.
5. Scan out and check the Yj values by pulsing test clock TCK
Lecture 12 14
Testing Digital Systems I
Ys
1D 1D ys
C1 C1
C0 C1
Lecture 12 15
Testing Digital Systems I
IBM's LSSD
Level Sensitive Scan Design
Standard design technique in current use at IBM
L1 latch is replaced by a two-port (dual-port) latch
X1 Z1
Xn Combinational Circuit
Zm
y1 Y1 y2 Y2 ys Ys
L1-1 L1-2 L1-s
1D 1D 1D
SDI Q Q Q SDO
2D 2D 2D
C1 C1 C1
C2 C2 C2
CK1
TCK
Lecture 12 16
Testing Digital Systems I
y1 Y1 y2 Y2 ys Ys
L1 L2 Ls
1D 1D 1D
Q Q Q
C1 C1 C1
CK
MUX
s-1 SDO
1
0
SADR G
Lecture 12 17
Testing Digital Systems I
PI Combinational logic PO
All scan cells are
organized into a
SC SC … SC two-dimensional
array. A ┌ log2n ┐ -
Row (X) decoder
CK
SC SC … SC SI bit address shift
SCK register, where n is
…
…
Lecture 12 18
Testing Digital Systems I
Scan Economics
Additional circuitry is added to each flip-flop or latch
One or more additional circuit pins are required
The number of additional pins required for scan test has a direct
relationship with the test time
Testing time is increased by the need to shift the test
patterns into the flip-flops serially
The modified circuit requires shorter test sets than the original circuit
Because only combinational logic test patterns are used
Lecture 12 19
Testing Digital Systems I
Summary
Scan is the most popular DFT technique:
Rule-based design
Automated DFT hardware insertion
Combinational ATPG
Advantages:
Design automation
High fault coverage; helpful in diagnosis
Hierarchical – scan-testable modules are easily combined into
large scan-testable systems
Moderate area (~10%) and speed (~5%) overheads
Disadvantages:
Large test data volume and long test time
Basically a slow speed (DC) test
Copyright 2010, M. Tahoori TDS I: Lecture 12 39
Lecture 12 20