Professional Documents
Culture Documents
T
+
T
Q
Q
D Q
CK
D Q
CK
Scan Register
Dr. Mohammad M. Tabar - EE 658 25
Q D
SI
Q D
SI
Q D
SI
Q D
SI
SO
SE
CLK
Combinational
Circuits
Boundary Scan
Dr. Mohammad M. Tabar - EE 658 26
Instruction register
Bypass register
X
TRST*:Test rest (Optional)
TDI: Test data input
TD0: Test data output
TCK: Test clock
TMS: Test mode select
T
A
P
Misc. registers
TRST*
TMS
TCK
TDO
I/O Pad
Boundary scan cell Boundary scan path
APPLICATION LOGIC
BIST register
Scan register
TDI
Sout
Sin
M
U
Boundary Scan (cont.)
Dr. Mohammad M. Tabar - EE 658 27
Instruction register
Bypass register
M
U
X
T
A
P
Misc. registers
TRST*
TMS
TCK
TDO
APPLICATION LOGIC TDI Sout
Sin
Instruction register
Bypass register
M
U
X
T
A
P
Misc. registers
TRST*
TMS
TCK
TDO
APPLICATION LOGIC
Scan register
TDI Sout
Sin
Instruction register
Bypass register
M
U
X
T
A
P
Misc. registers
TRST*
TMS
TCK
TDO
APPLICATION LOGIC
BIST register
Scan register
TDI Sout
Sin
Instruction register
Bypass register
BIST register
Scan register
M
U
X
T
A
P
Misc. registers
TRST*
TMS
TCK
TDO
APPLICATION LOGIC TDI Sout
Sin
BIST register
Scan register
BIST register
Built-In-Self Test (BIST)
Dr. Mohammad M. Tabar - EE 658 28
Places the job of device testing inside the device
itself
Generates its own stimulus and analyzes its own
response
p
a
t
t
e
r
n
g
e
n
e
r
a
t
o
r
biston
mux
from system
BIST
Controller
R
e
s
p
o
n
s
e
A
n
a
l
y
z
e
r
to system
good/fail
bistdone
circuit
under test
Built-In-Self Test (BIST) (Cont.)
Dr. Mohammad M. Tabar - EE 658 29
F/F
Two major tasks
- Test pattern generation
- Test result compaction
Usually implemented by linear feedback
shift register
F/F F/F
Pseudo Random Number
Generator (PRNG)
Dr. Mohammad M. Tabar - EE 658 30
1. Generate pseudo random patterns
2. Period is 2
n
- 1
F/F F/F F/F F/F
0001 0110 1111
1000 1011 0111
0100 0101 0011
0010 1010 0001
1001 1101 (repeat)
1100 1110
Signature Analyzer (SA)
Dr. Mohammad M. Tabar - EE 658 31
Input sequence 10101111 (8 bits)
G (x)=1+x
2
+x
4
+x
5
+x
6
+x
7
1 2 3 4 5
+ Z
P ( x ) = 1 + x
2
+ x
4
+ x
5
Remainder
R(x) =x
2
+x
4
Quotient
1+x
2
Time
0
1
.
. 5
6
7
8
Input stream
1 0 1 0 1 1 1 1
1 0 1 0 1 1 1
.
.
1 0 1
1 0
1
Register contents Output stream
0 0 0 0 0
1 0 0 0 0
.
.
0 1 1 1 1
0 0 0 1 0
0 0 0 0 1
0 0 1 0 1
Initial state
1
0 1
1 0 1
+ +
Signature Analyzer (SA) (Cont.)
Dr. Mohammad M. Tabar - EE 658 32
+
1
=
G (x ) P (x )Q (x )
+
R (x )
=
x
5 4 2 7 6
+
x
+
x
+
x
+
x
P ( x ) : x
5
x
4
x
2
1
1 Q ( x ) : x
2
x
7
x
6
x
4
x
2
x
5
x
4
x
2
1
x
7
x
6
x
5
1
Prob. of aliasing error = 1/2
n
where n is # of FFs
Memory BIST Architecture with a
Compressor
Dr. Mohammad M. Tabar - EE 658 33
Memory
Module
di
addr
wen
data
sys_di
sys_addr
sys_wen
Memory
Module
hold_l
rst_l
clk
test_h
si
se
data
q
so
Before After
Memory BIST Architecture
with a Compressor (Cont.)
Dr. Mohammad M. Tabar - EE 658 34
BIST Circuitry
A
l
g
o
r
i
t
h
m
-
B
a
s
e
d
P
a
t
t
e
r
n
G
e
n
e
r
a
t
o
r
C
o
m
p
r
e
s
s
o
r
addr Memory
wen
Module
di
data
compress_h
sys_addr
sys_d
i
sys_wen
rst_l
clk
hold_l
test_h
q
so
clk
rst
si
se
Three Memories and One
Compressor
Dr. Mohammad M. Tabar - EE 658 35
ROM4KX4
Module
addr1
data
compress_h
sys_addr1
sys_di2
sys_wen2
rst_
l
clk
hold_l
test_h
Compressor
q
so
si
RAM8KX8
Module
di2
addr2
wen2
data
RAM8KX8
Module
di3
addr3
wen3
data
BIST
Circuitry
A
l
g
o
r
i
t
h
m
-
B
a
s
e
d
P
a
t
t
e
r
n
G
e
n
e
r
a
t
o
r
sys_addr3
sys_addr2
sys_wen3
sys_di3
4
8
8
Synthesis for Testability
Dr. Mohammad M. Tabar - EE 658 36
Automatic v.s. Semi-
automatic
Commercial products
Testability analysis tools
Full / partial scan insertion
BIST insertion
Boundary scan insertion
Research
RTL synthesis
FSM synthesis
Gate level synthesis
Boolean equation synthesis
CPU Test Control Architecture
Dr. Mohammad M. Tabar - EE 658 37
TDI
TCK
compressor
Scan_i
Scan_en
Bist
control
Memory
logic
Scan_o
Scan path
clk
rst_l
TAP Controller
IR
scan
decoder
decoder
bist
decoder
mbist int_scan
bist_se
test_h
hold_l
bist_so
TMS
TDO
b
i
s
t
_
s
i
Review the questions
Dr. Mohammad M. Tabar - EE 658 38
A 32-bit adder ---
A 32-bit counter ---
A 1MB Cache memory ---
A 10
7
-transistor CPU ---
ATPG
Design for testability + ATPG
BIST
All test techniques
Conclusions
Dr. Mohammad M. Tabar - EE 658 39
Two major fields in testing
ATPG
--- Fault simulation
--- Test generation
Testable design
--- Design for testability
--- Built-in self-test
--- Synthesis for testability
Testable Design Flow
Dr. Mohammad M. Tabar - EE 658 40
Prepare Initial Design
RTL Code
Verify Functionality
Identify Blocks for
BIST/Scan
Insert/Verify
BIST Circuitry by
MBISTArchitect
Modify/Verify
Original Design
Reserve
Dummy Ports for
Internal Scan
Insert/Verify
Boundary Scan
Circuitry by
BSDArchitect
Synthesis to Gate
Level
Insert/Verify
Internal Scan
Circuitry by
DFTADvisor
Generate/Verify
Test Patterns by
FastScan
Integrate all
DFT Methodologies
P/F