Professional Documents
Culture Documents
Chapter 4: Memory Built in Chapter 4: Memory Built-In Self-Test Self Test
Chapter 4: Memory Built in Chapter 4: Memory Built-In Self-Test Self Test
Built In
Self Test
Self-Test
Jin Fu Li
Jin-Fu
Dept. of Electrical Engineering
National Central University
Jhongli, Taiwan
Outline
ROM BIST
RAM BIST
Serial BIST for RAMs
Processor
Processor-Based
Based RAM BIST
RAM BISTs in SOCs
References
Jin-Fu Li
Introduction
Characteristics of todays SOC designs
Typically more than 30 embedded memories on a
chip
hi
Memories scattered around the device rather than
concentrated in one location
Different types and sizes of memories
Memories doubly embedded inside embedded cores
Test access to these memories from only a few chip
I/O pins
p
Jin-Fu Li
Test
Response
Generator
(CUT)
Verification
Test Controller
Jin-Fu Li
NOR/NAND
Decoder
(ROM Array)
Buffer
Outputs
O t t
EE, National Central University
Jin-Fu Li
Counter
ROM
MISR
Controller
Go/No-Go
Status
Jin-Fu Li
Test Collar
C
T t Controller
Test
C t ll
Test Pattern
Generator
RAM
Go/No-Go
Comparator
Jin-Fu Li
RAM BIST
Controller
signals
g
Comparator
Jin-Fu Li
patterns
Self-test is executed by using BIST circuits controlled
by the microprogram ROM
A wide range of test capabilities due to ROM
programming
p
g
g flexibility
y
ROM
TPG
Comparator
EE, National Central University
Jin-Fu Li
E d
End
Mi
Microprogram
Test Collar
ROM
TPG
RAM
Go/No-Go
Comparator
Jin-Fu Li
10
OPERATION
CLEAR
WRITE(D), INC AC, IF AC=MAX THEN INC PC
READ(D)
WRITE(D), INC AC, IF AC=MAX THEN INC PC ELSE DEC PC
READ(D))
READ(D
WRITE(D), INC AC, IF AC=MAX THEN INC PC ELSE DEC PC
DEC AC
READ(D)
WRITE(D) DEC AC
WRITE(D),
AC, IF AC=0 THEN INC PC ELSE DEC PC
READ(D)
WRITE(D), DEC AC, IF AC=0 THEN INC PC ELSE DEC PC
STOP
IF AC=MAX/0
ELSE DEC PC
INCREMENT AC
DECREMENT AC
EXCLUSIVE OR
INVERT/NORMAL
COMPARE/MASK
WRITE/READ
CLEAR
TEST END
Jin-Fu Li
MICROCODE
0000000010
1010000100
0000000100
1110010100
0000011000
1110000100
0001000000
0000001000
1101010100
0000011000
1101000100
0000000001
11
E d
End
Test Collar
FSM
TPG
RAM
Go/No-Go
Comparator
Jin-Fu Li
12
W0
S0
R0
S1
W1
S2
R1
S3
W0
S4
R0
S5
W1
S4
End
S4
Jin-Fu Li
13
BRS
BGO
Con
ntroller
BSC
TGO
ENA
DONE
Test Collar
C
BSI
T
TPG
& Compar
C
rator
CMD
RAM
CLK
BNS
Jin-Fu Li
14
BRS=1
BSC=1
DONE=1
Shift
Shift_cmd
d
BSC=0
Get_cmd
Apply
ENA=1
DONE=0
Jin-Fu Li
15
Programmability
The programmability
Th
bili can b
be achieved
hi
db
by using
i
test command
The test command format
U/D
OP
Data background
sequence
OP: test operations
For
o example,
e a p e, wa,
a, rawa,
a a , rawara,
a a a, warawara,
a a a a , etc.
Data backgrounds
The width
Th
idth off each
h field
fi ld affects
ff t the
th
programmability of the BIST design
For
F example,
l if 4 bit
bits are used
d ffor OP
OP, th
then only
l 16
16
Idle
ENA=1
Init
DONE/GO
Null=1
Null=0
Ifetch
Exec
Dfetch
No-Go
Error=1
Compare
Error=0
Jin-Fu Li
17
Serial BIST
port configurations
unacceptably high
Jin-Fu Li
18
The serial
serial-access
access mode does not compromise
the RAM cycle time
Existing
E i ti memory d
designs
i
d
do nott need
d any
modification to use the serial interface
Jin-Fu Li
19
Serial-Data-Path Connection
Row de
ecoder
Ci
Ci+1
Column decoder
Latch
Latch
Write
Read
BIST on
Ii
EE, National Central University
Oi
Jin-Fu Li
Ii+1
Oi+1
20
0
11
010
00
00
000
1
X
1
00
000
000
0
X
Word
content
Serial
out
R0
W1
R0
W1
R0
W1
R0
W1
Jin-Fu Li
21
( R1, W 0 ) C ( R 0 , W 0 ) C ; ( R 0 , W 1) C ( R1, W 1) C
( R1, W 0 ) C ( R 0 , W 0 ) C ; ( R 0 , W 0 ) C ( R 0 , W 0 ) C
EE, National Central University
Jin-Fu Li
22
Counters
SO
Control
Data out
Data in
Address
Timing
Controller
generator
SI
lsb
msb
C-1
Multiplexer
Multiplexer
C
Address
Data in
Multiplexer
C
Data out
Control
Jin-Fu Li
23
Counters
Timing
Controller
SO
generator
g
SI
Add
Address
R d/W it
Read/Write
Test Collar
Test Collar
Test Collar
RAM1
RAM2
RAM3
Serial Interface
Serial Interface
Serial Interface
SI
SI
SI
SO
SO
Jin-Fu Li
SO
24
GO
Done
DeMux
C
Counters
t
SO
SI
Controller
Address
Timing
g
generator
Read/Write
Test Collar
Test Collar
Test Collar
RAM1
RAM2
RAM3
Serial Interface
Serial Interface
Serial Interface
SI
SI
SI
SO
SO
Jin-Fu Li
SO
25
n
m wire
n
e
m wire
Jin-Fu Li
26
Test Collar
Processor
TPG
RAM
Go/No-Go
Comparator
Jin-Fu Li
27
ADDR
ADDR_bist
DATAO
DATAO_sys
DATAO
DATAO_bist
Embedded
CPU
Clock_cpu
BIST core
Ctrl_bist
Ctrl_cpu
DATAI_cpu
DATAI_bist
On-chip
bus
Mux_sel
DATAI_sys
Embedded
Memory
control
DATAI
Jin-Fu Li
28
BIST core
DATAO_cpu
DATAO_bist
RBG
ADDR_cpu Address
decorder
RAL
L
Lowest/highest
t/hi h t addr
dd
RAH
REA
RME
RFLAG
RIR
RED
Address
counter
ADDR_bist
Up/down
Controller
Read/Write
Control
Match/unmatch
DATAI_bist
Comparator
DATAI sys
DATAI_sys
Data background
Jin-Fu Li
29
Data registers
Register
RBG
Function
Store background data
RAL
RAH
RME
RIR
RFLAG
RED
REA
Jin-Fu Li
30
BIST procedure
Performed by
test program
(Wa)
(Ra,Wa)
(Ra,Wa)
(Ra,Wa)
Compare
Data error
Performed by
BIST circuit
(Ra,Wa)
yes
No
No
(Ra)
March element
complete
yes
Write FINISH to RFLAG
EE, National Central University
Jin-Fu Li
Test program
take over
31
SOC Testing
FPGA
Wrapper
CPU
UDL
Flash Memoryy
DSP
Sink
Source
TAM
MPEG
SRAM
SRAM
DRAM
Jin-Fu Li
32
FPGA
Wrapper
CPU
UDL
Off-chip Source/Sink
Flash
Memory
DSP
Sink
TAM
TAM
Source
MPEG
SRAM
SRAM
DRAM
ADC
Flash
Wrapper
On chip Source/Sink
On-chip
1. Close to Core-under-test
2 Less TAM area
2.
3. BIST IP area
4. Requires lightweight ATE
FPGA
UDL
CPU
Memory
DSP
Sink
Source
Sink
Source
MPEG
SRAM
SRAM
DRAM
Jin-Fu Li
33
TAM-out
TAM-in
1500 Wrapper
W
Fin
WSI
Core1
WIR
Sink
TAM-out
1500 Wrapper
W
Fout
Fin
WSO
WSI
CoreN
WIR
Fout
WSO
WIP
User-Defined
Test Controller
Jin-Fu Li
34
Test stimuli
WPI
W
WBR
W
WBR
Functional
Core
data
data
WBY
WSI
WIR
WSO
WSC
Jin-Fu Li
35
Memories in SOCs
FPGA
ADC
Flash Memory
CPU
UDL
DSP
DRAM
SRAM
SRAM
SRAM
BIST
BIST
MPEG
SRAM
BIST
SRAM
DRAM
BIST
BIST
BIST-ready
d memory cores
Jin-Fu Li
36
controlling pins
The total BIST controlling pins is huge if each BISTready memory cores has its own BIST controlling pins
Jin-Fu Li
37
FPGA
Flash Memory
CPU
UDL
DSP
DRAM
SRAM
SRAM
BIST
SRAM
MBI
MBI
MPEG
BIST
MBI
MBI
BIST
BIST
SRAM
DRAM
SRAM
Jin-Fu Li
38
Jin-Fu Li
39
Instruction Register
Bypass
yp
Register
g
tested
Monitor Register
Monitor
o to the
t e error
e o flag
ag ((indicating
d cat g whether
et e a memory
e oy
Status Register
the BIST
Jin-Fu Li
40
Jin-Fu Li
41
Comparator
ll
BIST C
Collar
BIST C
Collar
ll
ll
BIST C
Collar
RAM 1
RAM 2
RAM N
Jin-Fu Li
42
S
Source:
P
Prof.
f C.
C W
W. Wu,
W NTHU
EE, National Central University
Jin-Fu Li
43
1500-Compilant BIST
Wrapper
T
TAP
Con
ntroller
TAP
P
BIST
Jin-Fu Li
RAM
44
TAP controller
TAM
Wrapper
Processor + Test Program Memory
S
Source:
A
Appello
ll D
D., et. al.l ITC03
EE, National Central University
Jin-Fu Li
45
Test Processor
Processor
Wrapper
P1500
Instructions
Control
Unit
P1500
Output Data
Memory
Adapter
Test Program
Address Bus
Data Bus
g
Control Signals
S
Source:
A
Appello
ll D
D., et. al.l ITC03
EE, National Central University
Jin-Fu Li
46
Control Unit
Jin-Fu Li
47
Memory Adapter
Control Address registers
g
(Current
(
_address))
Control Memory registers
Current_data
Received_data
R
i d d t
Dbg
g_index,, Step,
p, Direction flag,
g, and Timer registers
g
Result registers
Jin-Fu Li
48
I t ti
Instruction
SET_ADD
RST_ADD
STORE_DBG
INV_DBG
Current_address Add_Max
Direction flag BACKWARD
Current_address Add_Min
g FORWARD
Direction flag
Current_data DataBackGround[Dbg_index]
Dbg_index Dbg_index+1
Current_data NOT (Current_data)
READ
WRITE
Memory[Current_address] Current_data
Source: Appello D., et. al. ITC03
Jin-Fu Li
49
Wrapper
WSI
WRCK
ShiftWR
UpdateWR
CaptureWR
SelectWIR
W
D
R
W
I
R
W
B
Y
Processor
Test
Program
W
B
R
Me
emory
TAP controller
c
WRSTN
W
C
D
R
CORE
WSO
Wrapper
Source: Appello D., et. al. ITC03
EE, National Central University
Jin-Fu Li
50
Summary
BIST approaches
pp
for testing
g multiple
p RAMs in an
SOC have also been addressed
Jin-Fu Li
51
References
Jin-Fu Li
52