LBIST
LBIST
Test (BIST)
1
Introducti
on
• What are the problems in today’s
semiconductor testing?
▪Traditional test techniques
become quite expensive
▪No longer provide sufficiently
high fault coverage
4
BIST Vs
● ATE ATE
○ Highly sophisticated high end equipment
○ May not be needed all the time
● Alternative can be software tests for the field
test/diagnosis
○ Low hardware fault coverage
○ Time consuming
● Advantages to go in hardware
○ Lower system test efforts
○ Improved system maintenance and repair
5
Logic Built-In Self-
Test
• TPG
– Constructed from linear feedback shift
register (LFSR) or cellular automata
– Exhaustive testing– all possible 2n test
patterns
– Pseudo-random testing– a subset of 2n
test patterns
– Pseudo-exhaustive testing
• ORA
– Constructed from multiple-input
signature register (MISR)
6
BIST
Architecture
7
Types of
• BIST
There are broadly two methods of carrying BIST:
– Online BIST
• Concurrent BIST
• Non-concurrent BIST
– Offline BIST
• Functional BIST
• Structural BIST
8
Online
BIST
• In online BIST, the circuit may be made to
test itself without being disconnected from
the system.
11
A Typical Logic BIST
System
Test Pattern Generator
(TPG)
Logic
Circuit Under Test
BIST
(CUT)
Controlle
r
12
Test Pattern
Generation
• Random Test pattern generation
○ Use pseudo random as input vectors
○ Typically use linear feedback shift registers
(LFSRs)
•TPG
○ Exhaustive testing
○ Pseudo-random testing
○ Pseudo-exhaustive testing
13
Pseudo Random Test Generation
14
BIST Design
Rules
• Logic BIST requires much more stringent
design restrictions when compared to
conventional scan.
• when designing a logic BIST system, it is
essential that the circuit under test meet all
scan design rules and BIST specific design
rules, called BIST design rules
15
Typical X-bounding
Methods
16
X-bounding
Methods
Depending on the nature of each unknown (X) source,
several X-bounding methods can be appropriate for
use.
Common problems:
(1) Increase the area of the design.
(2) Impact timing.
17
Typical Unknown
Sources
•Analog Blocks
▪ Adding bypass logic.
▪ Adding control-only scan point
•Memories and Non-Scan Storage
Elements
▪ Bypass logic
▪ Initialization
•Combinational Feedback Loops
▪ Scan points
18
Typical Unknown Sources
(cont’d)
▪ Asynchronous Set/Reset Signals
▪ using the existing scan enable (SE) signal to
protect each shift operation and adding a
set/reset clock point (SRCK) on each set/reset
signal to test the set/reset circuitry.
SRCK
Set/Reset Circuitry
SE
Functional R
0 Q
Logic
1 D
Scan-In CK
19
Typical Unknown Sources
(cont’d)
SE
20
Typical Unknown Sources
(cont’d)
Tri-State Buses
▪ Re-synthesize each bus with
multiplexers.
▪ One-hot decoder
22
Typical Unknown Sources
(cont’d)
▪ Multiple-Cycle Paths
▪ 0-control point
▪ 1-control point
▪ Holding certain scan cell output states
▪ Floating Ports
▪ PI or PO must have a proper connection to
Power (Vcc) or Ground (Vss).
▪ Floating inputs to any internal modules
must be avoided.
23
Typical Unknown Sources
(cont’d)
▪ Bi-directional I/O Ports
▪Fix the direction of each bi-
directional I/O port to either input
or output mode.EN
SE D IO
Z
BIST_mode
24
LFSR
● Hardware circuit based on shift
register
○ With feedback
○ Good source of pseudo-random
pattern
● Used in many applications
○ For random number generation
○ Error checking (CRC)
○ Response compression
25
26
27
28
29
30
Standard
LFSR
• Consists of n D flip-flops and a selected
number of exclusive-OR (XOR) gates
h h h2 h1
n-1 n-2
S S S S
i0 i1 in-2 in-1
31
32
33
34
Modular
LFSR
• Each XOR gate placed between two
adjacent D flip-flops
h1 h2 hn-2 hn-1
35
LFSR
Properties
• The internal structure of the n-stage LFSR
can be described by a
characteristic polynomial of degree n: f(x)
36
LFSR
•
Properties
Let Si represent the contents of the n-stage
LFSR after ith shifts of the initial contents,S ,of 0
4-stage
standar
• 4-stage Modular
d and LFSR
modula f (x ) = 1 + x + x 4
r
LFSRs s
= x3 0
38
Hybrid
LFSR
a(x) = 1+ b(x)+ c(x)
Fully decomposable iff both b(x) and c(x) have no common terms
and there exists an integer j such that c(x ) =x j b (x ), j ≥1
Assume: f(x) is fully decomposable
40
Exhaustive
Testing
• Exhaustive
Testing
▪ Applying n exhaustive patterns to an
2
n-input
combinational circuit under test
(CUT)
• Exhaustive pattern
generator
▪ Binary counter
▪ Complete LFSR
41
Binary
counter
X4
X1 X2 X3
42
Complete
LFSR
0 0 0 1 0 0 1
0
0 0 0 1 1 0 0 0
43
Output Response
Analysis
•Ones count testing
•Transition count
testing
•Signature analysis
44
Ones Count
Assume theTesting
CUT has one output and the output
contains a stream of L bits. Let the fault-free output
response be
{r0 , r1 , r2 LrL−1}
Ones count testing will need a counter to count the number
of 1s in the bit
stream. POC (m) = (C(L, m) −1) /(2
L
−1) Signature
CUT
T Counter
CLK
45
Transition Count
•
Testing
Transition count testing is similar to that for ones
count testing, except the signature is defined as the
number of 1-to-0 and 0-to-1 transitions.
−1)
ri
r
i-1
T CUT D Counter Signature
CLK
46
Signature
Analysis
• Signature analysis is the most popular
compaction technique used today, based on
cyclic redundancy checking.
47
Serial Signature
Analysis
• An n-stage single-input signature
register
h1 h2 h h
n-2 n-1
M r0 r1 r
rn-2 n-1
48
Exampl
e
M
A 4-stage
SISR 49
Parallel Signature
Analysis
(MIS
R)
h1 h2 h h
n-2 n-1
r0 r1 r r
n-2 n-1
M M M
0
M1 2 Mn-2 n-1
51
Logic BIST
Architectures
•Four Types of BIST Architectures:
•No special structure to the CUT
•Make use of scan chains in the CUT
•Configure the scan chains for test pattern
generation and output response analysis
•Use concurrent checking circuitry of the design
52
Self-Testing Using MISR and
Parallel SRSG
(STUMPS)
Contains a PRPG - pseudorandom pattern generator (SRSG -
Shift Register Sequence Generator) and a MISR - Multiple-input
signature register.
The scan chains are loaded in parallel from the PRPG.
The system clocks are then pulsed and the test
responses are scanned out to the MISR for compaction.
New test patterns are scanned in at the same time
when the test responses are being scanned out.
STUMPS - Self-Test Using MISR and Parallel Shift register sequence
generator
[Bardell
1982]
53
STUMPS
PRPG
PRPG
Linear Phase Shifter
CUT
CUT
(C or S)
(C or S)
MISR
MISR
STUMPS A STUMPS-based
Architecture
54
Built-In Logic Block Observer
(BILBO)
The architecture applies to circuits that can be
partitioned into independent modules (logic blocks).
Each module is assumed to have its own input and
output registers (storage elements), or such registers
are added to the circuit where necessary. The
registers are redesigned so that for test purposes
they act as PRPGs or MISRs.
55
Built-In Logic Block
Observer
Y0 Y1 Y2
B2
B1
0
D D D
1
Q Q Q
A 3-stage
BILBO
56
Logic BIST
Architectures
B: board-level testing
C: combinational circuit
S: sequential circuit
TPG: Test Pattern Generator
ORA: Output Response Analyser
57