Académique Documents
Professionnel Documents
Culture Documents
Module 2
Compression with EDT
October 2005
Objectives
2-2 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Embedded Deterministic Test (EDT)
Bypass (Optional)
♦ Reduces test data volume.
♦ Reduces test application time. Compressed
Compressed
ATE Compacted
Compacted
Stimuli
Stimuli Responses
Responses
2-3 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Basic Terminology
Core
DD
EE
CC
CC
OO
OO MM
MM PP
PP
AA
RR
CC
EE
TT
SS
OO
SS
RR
OO
Scan Channels RR
(External)
Scan Chains
(Internal)
2-4 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Data Volume and Test Application Time
Data Volume = L x W x H
H
No. of Scan Channels
W No. of Patterns
L
2-5 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
EDT Reduces Test Data Volume and Application Time
Standard ATPG
H
L
EDT
Decompressor Compactor
L
2-6 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
ATPG With Standard Scan
Tester Tester
2-7 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
ATPG with EDT
4. Pseudorandom fill
DD
EE
CC
CC OO
OO M
M
MM PP
PP
AA
RR CC
EE
3. Calculate SS
TT
OO
5. Calculate
SS
stimuli OO
RR response
RR
1. Target faults
2. Generate test cube
2-8 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Standard Test Application Process
2. CAPTURE
Scan flops
1. SHIFT IN capture
Stimuli responses
loaded
from ATE
to internal
scan chains
3. SHIFT OUT
Responses
shifted to
ATE
Stimuli
Stimuli ATE Response
Response
2-9 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
EDT Test Application Process
2. CAPTURE
1. SHIFT IN DD Scan flops
EE
Compressed CC
CC capture
OO
stimuli shifted OO
M
M
responses
MM
through PP
PP (20 bits)
AA
decompressor RR CC
EE
(2 bits) SS
TT
SS
OO 3. SHIFT OUT
RR
OO Responses
Random fill RR
added to stimuli compacted
inside during shift
decompressor to ATE
(20 bits) through
Compressed
Compressed Compacted
Compacted compactor
Stimuli
Stimuli
ATE Responses
Responses (2 bits)
2-11 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
EDT Logic
2-12 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Sharing EDT Pins With Functional Pins
Channel outputs Should not be shared with core level bidi or tristate
pins. Muxes will be inserted. Top-level bidi and
tristate OK
EDT_Clock Can be shared with non-clock. Must be constrained.
Reduced coverage if shared.
clock
edt_clock OFF
edt_bypass
Don’t Care
edt_reset
NOTE: During capture scan_enable and EDT_Update can have any value.
NOTE: During capture EDT_Clk must be off.
2-14 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
The Decompressor
♦ Logic blocks
Ring generator
– Generates pseudorandom patterns R
R
II PP
Phase shifter N HH
N
– Eliminates linear dependencies G AA
G
SS
♦ Data and control signals GG
EE
EE
EDT_Update NN
SS
EE HH
EDT_Clock RR
II
A FF
Scan channel and chain inputs A
TT TT
EE
Masking data (output only) OO
RR
RR
♦ Routing characteristics
Shallow combinational depth
– High operating speed
2-15 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
The Ring Generator
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
2-16 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Stimuli Compression
Scan Channel Inputs
0 x x 1 x x x 1 0 x 1 x x x 1 x x
a⊕ b⊕ d=
c⊕ d⊕ h⊕k=
a⊕ b⊕c⊕ d=
h⊕j=
b⊕ d⊕ e⊕h=
e⊕ f⊕ j=
…kigeca
shifter
shifter
generator
Ring generator
1001110011
variables ⊕
=b⊕ e⊕h⊕ i
=e⊕ f⊕i⊕ j
=a⊕ c⊕g
Phase
Phase
Ring
0011011101
=c⊕g
…ljhfdb
EDT_Update x x 1 x x 0 x x x 1 x x 0 x x x x
EDT_Clock
NOTE: Lockup cells may be required for proper scan chain shifting.
2-17 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
The Compactor
♦ Logic blocks
XOR tree
– Not MISR based
Masking Logic CC
– No fault masking or aliasing OO
M
M
♦ Data and control signals PP
AA
EDT_Update CC
TT
EDT_Clock OO
RR
Masking data (input only)
Scan chain and channel outputs
♦ Routing and performance
characteristics
Pipeline stages for increased speed
2-18 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Compactor Logic
Scan Chain Output
scan chain
scan chain
...
...
scan chain
scan chain
2-19 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Compactor Logic (Cont.)
Decoder
EDT_Update
1 1
D Q D Q
0 Hold 0 Hold
Reg_1 Reg_0
EDT_Mask DQ
D D Q
Shift Shift Useful for debugging
Reg_1 Reg_0
K19 violations
EDT_Clock
2-20 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Scan Chain Masking
Chain 1
Chain Output
1 0 X 1 X 0 0 0 1
Channel
0 1 X 1 X 1 X X 0 Output
Chain 2
1 1 0 0 X 1 X X 1 Chain Output
2-21 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Scan Chain Masking — Solution
Chain 1
Chain Output
1 0 X 1 X 0 0 0 1
0
Chain 2 Channel
Chain Output Output
1 1 0 0 X 1 X X 1
1
1 1 0 0 X 1 X X 1
2-22 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Fault Aliasing
Chain 1
Chain Output
1/0
1
Good/Faulty
0/0
Channel
Output
1
1/0
Chain 2
1/0
1 Chain Output
2-23 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Fault Aliasing — Solution
Chain 1
1/0
1
Good/Faulty
1
1/0 1 1
1/0
Channel
Output
0
Chain 2
1/0
1
♦ An aliased fault will not be classified as detected for an
unmasked pattern.
♦ All aliased faults will be masked and detected automatically by
masked patterns.
♦ The other side of the masked observed cell will get another
opportunity to be observed.
2-24 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
EDT Compactor
♦ Fault calculation taken at channel output
True fault coverage result
♦ Masking pattern generation
Only when target fault site is disturbed with “X”
Only when aliasing occurs
♦ Masking data from decompressor
Per-pattern masking data
Masking data is embedded in test pattern set
Masking data shifted into masking register during shift cycle
2-25 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Very High-Speed TestKompress Shifting — Reduced Test
Application Time
♦ Pipelines can be defined DD
TestKompress shifting. RR
EE
SS
CC
TT
OO
block 1
have different numbers of
pipeline stages.
DD
EE CC
CC
OO
OO MM
MM PP
PP
AA
RR
CC
EE
TT
SS
OO
SS RR
OO
RR
block 2
2-26 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Pipeline Stages
♦ Compactor logic:
XOR tree.
Masking logic.
– Decoding and gating logic.
– Masking register.
♦ Compression rate determines combinational depth.
Chain to channel ratio.
More scan chains compacted into fewer scan channels.
♦ Optional pipeline stages reduce effective combinational depth.
Pipelining inserted to satisfy setup and hold time.
– Based on shift frequency.
– Gate delay of 2-input XOR.
Edge triggered flops.
– Latency = No. of pipeline stages.
– May require lockup cell insertion.
scan
D Q
scan
...
...
scan
D Q
scan
EDT_Update
decoder Pipeline Stage
EDT_Mask
EDT_Clock
NOTE: Adding pipelining may require lockup cell insertion for proper shifting.
2-28 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
EDT Bypass Logic (Optional)
Chain4
DD
ee C
cc C
oo Chain3 oo
m m
m
Channel m pp Channel
pp aa
In1 rr cc Out1
ee Chain2 tt
ss oo
ss rr
oo
rr
Chain1
EDT_Bypass
Bypass Mux
NOTE: Scan chain concatenation may require lockup cells for proper shifting.
2-29 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Lockup Cells
♦ Eliminate clock skew between flops during scan shifting.
♦ Three possible locations:
Between decompressor and scan chain inputs.
Between internal scan chain during bypass mode.
Between scan chain outputs and first compactor pipeline stage.
♦ Edge triggered flip-flops.
Only inserted where needed.
Based on scan chain I/O clock analysis.
Follows rules outlined in documentation.
2-30 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation
Lockup Cell Insertion:
Between Decompressor and Scan Chain Inputs
Decompressor
Compactor
Chain4
Ring Generator
Phase Shifter
Chain3
SO
SI
Chain2
Chain1
Decompressor
TE Compactor
Chain4
Chain3
SI SO
Chain2
Chain1
2-38 • TestKompressTM Training: Compression with EDT Copyright © 2005 Mentor Graphics Corporation