SlideShare a Scribd company logo
1 of 24
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 1
VLSI Testing
Lecture 10: DFT and Scan
 Definitions
 Ad-hoc methods
 Scan design
 Design rules
 Scan register
 Scan flip-flops
 Scan test sequences
 Overheads
 Boundary scan
 Summary
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 2
Definitions
 Design for testability (DFT) refers to those design
techniques that make test generation and test
application cost-effective.
 DFT methods for digital circuits:
 Ad-hoc methods
 Structured methods:
 Scan
 Partial Scan
 Built-in self-test (BIST)
 Boundary scan
 DFT method for mixed-signal circuits:
 Analog test bus
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 3
Ad-Hoc DFT Methods
 Good design practices learnt through experience are used as
guidelines:
 Avoid asynchronous (unclocked) feedback.
 Make flip-flops initializable.
 Avoid redundant gates. Avoid large fanin gates.
 Provide test control for difficult-to-control signals.
 Avoid gated clocks.
 Consider ATE requirements (tristates, etc.)
 Design reviews conducted by experts or design auditing tools.
 Disadvantages of ad-hoc DFT methods:
 Experts and tools not always available.
 Test generation is often manual with no guarantee of high fault
coverage.
 Design iterations may be necessary.
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 4
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.
 Replace flip-flops by scan flip-flops (SFF) and connect to form
one or more shift registers in the test mode.
 Make input/output of each scan shift register
controllable/observable from PI/PO.
 Use combinational ATPG to obtain tests for all testable
faults in the combinational logic.
 Add shift register tests and convert ATPG tests into
scan sequences for use in manufacturing test.
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 5
Scan Design Rules
 Use only clocked D-type of flip-flops for all state
variables.
 At least one PI pin must be available for test; more
pins, if available, can be used.
 All clocks must be controlled from PIs.
 Clocks must not feed data inputs of flip-flops.
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 6
Correcting a Rule Violation
 All clocks must be controlled from PIs.
Comb.
logic
Comb.
logic
D1
D2
CK
Q
FF
Comb.
logic
D1
D2
CK
Q
FF
Comb.
logic
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 7
Scan Flip-Flop (SFF)
D
TC
SD
CK
Q
Q
MUX
D flip-flop
Master latch Slave latch
CK
TC Normal mode, D selected Scan mode, SD selected
Master open Slave open
t
t
Logic
overhead
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 8
Level-Sensitive Scan-Design
Flip-Flop (LSSD-SFF)
D
SD
MCK
Q
Q
D flip-flop
Master latch Slave latch
t
SCK
TCK
SCK
MCK
TCK
Normal
mode
MCK
TCK
Scan
mode
Logic
overhead
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 9
Adding Scan Structure
SFF
SFF
SFF
Combinational
logic
PI PO
SCANOUT
SCANIN
TC or TCK Not shown: CK or
MCK/SCK feed all
SFFs.
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 10
Comb. Test Vectors
I2
I1 O1 O2
S2
S1 N2
N1
Combinational
logic
PI
Presen
t
state
PO
Next
state
SCANIN
TC
SCANOUT
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 11
Comb. Test Vectors
I2
I1
O1 O2
PI
PO
SCANIN
SCANOUT
S1 S2
N1 N2
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
TC
Don’t care
or random
bits
Sequence length = (ncomb + 1) nsff + ncomb clock periods
ncomb = number of combinational vectors
nsff = number of scan flip-flops
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 12
Testing Scan Register
 Scan register must be tested prior to application
of scan test sequences.
 A shift sequence 00110011 . . . of length nsff + 4 in
scan mode (TC = 0) produces 00, 01, 11 and 10
transitions in all flip-flops and observes the result
at SCANOUT output.
 Total scan test length:
(ncomb + 2) nsff + ncomb + 4 clock periods.
 Example: 2,000 scan flip-flops, 500 comb. vectors,
total scan test length ~ 106 clocks.
 Multiple scan registers reduce test length.
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 13
Multiple Scan Registers
 Scan flip-flops can be distributed among
any number of shift registers, each having
a separate scanin and scanout pin.
 Test sequence length is determined by the
longest scan shift register.
 Just one test control (TC) pin is essential.
SFF
SFF
SFF
Combinational
logic
PI/SCANIN PO/
SCANOUT
M
U
X
CK
TC
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 14
Scan Overheads
 IO pins: One pin necessary.
 Area overhead:
 Gate overhead = [4 nsff/(ng+10nff)] x 100%
where ng = comb. gates; nff = flip-flops
Example – ng = 100k gates, nff = 2k flip-flops
overhead = 6.7%.
 More accurate estimate must consider scan wiring
and layout area.
 Performance overhead:
 Multiplexer delay added in combinational path;
approx. two gate-delays.
 Flip-flop output loading due to one additional
fanout; approx. 5 - 6%.
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 15
Hierarchical Scan
 Scan flip-flops are chained within
subnetworks before chaining subnetworks.
 Advantages:
 Automatic scan insertion in netlist
 Circuit hierarchy preserved – helps in
debugging and design changes
 Disadvantage: Non-optimum chip layout.
SFF1
SFF2 SFF3
SFF4
SFF3
SFF1
SFF2
SFF4
Scanin Scanout
Scanin
Scanout
Hierarchical netlist Flat layout
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 16
Optimum Scan Layout
IO
pad
Flip-
flop
cell
Interconnects
Routing
channels
SFF
cell
TC
SCANIN
SCAN
OUT
Y
X
X’
Y’
Active areas: XY and X’Y’
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 17
Scan Area Overhead
Linear dimensions of active area:
X = (C + S) / r
X’ = (C + S + aS) / r
Y’ = Y + ry = Y + Y(1--b) / T
Area overhead
X’Y’--XY
= -------------- x 100%
XY
1--b
= [(1+as)(1+ -------) – 1] x 100%
T
1--b
= (as + ------- ) x 100%
T
y = track dimension, wire
width+separation
C = total comb. cell width
S = total non-scan FF cell
width
s = fractional FF cell area
= S/(C+S)
a = SFF cell width fractional
increase
r = number of cell rows
or routing channels
b = routing fraction in active
area
T = cell height in track
dimension y
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 18
Example: Scan Layout
 2,000-gate CMOS chip
 Fractional area under flip-flop cells, s = 0.478
 Scan flip-flop (SFF) cell width increase, a = 0.25
 Routing area fraction, b = 0.471
 Cell height in routing tracks, T = 10
 Calculated overhead = 17.24%
 Actual measured data:
Scan implementation Area overhead Normalized clock rate
______________________________________________________________________
None 0.0 1.00
Hierarchical 16.93% 0.87
Optimum layout 11.90% 0.91
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 19
ATPG Example: S5378
Original
2,781
179
0
0.0%
4,603
35/49
70.0%
70.9%
5,533 s
414
414
Full-scan
2,781
0
179
15.66%
4,603
214/228
99.1%
100.0%
5 s
585
105,662
Number of combinational gates
Number of non-scan flip-flops (10 gates each)
Number of scan flip-flops (14 gates each)
Gate overhead
Number of faults
PI/PO for ATPG
Fault coverage
Fault efficiency
CPU time on SUN Ultra II, 200MHz processor
Number of ATPG vectors
Scan sequence length
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 20
Boundary Scan (BS)
IEEE 1149.1 Standard
 Developed for testing chips on a printed circuit
board (PCB).
 A chip with BS can be accessed for test from the
edge connector of PCB.
 BS hardware added to chip:
 Test Access port (TAP) added
 Four test pins
 A test controller FSM
 A scan flip-flop added to each I/O pin.
 Standard is also known as JTAG (Joint Test
Action Group) standard.
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 21
Boundary Scan Test Logic
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 22
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
 Variations of scan:
 Partial scan
 Random access scan (RAS)
 Boundary scan (BS)
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 23
Problems to Solve
 What is the main advantage of scan method?
 Given that the critical path delay of a circuit is 800ps and
the scan multiplexer adds a delay of 200ps, determine the
performance penalty of scan as percentage reduction in the
clock frequency. Assume 20% margin for the clock period
and no delay due to the extra fanout of flip-flop outputs.
 How will you reduce the test time of a scan circuit by a
factor of 10?
Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 24
Solutions
 What is the main advantage of scan method?
Only combinational ATPG (with lower complexity) is used.
 Given that the critical path delay of a circuit is 800ps and the scan
multiplexer adds a delay of 200ps, determine the performance penalty
of scan as percentage reduction in the clock frequency. Assume 20%
margin for the clock period and no delay due to the extra fanout of flip-
flop outputs.
Clock period of pre-scan circuit = 800+160 = 960ps
Clock period for scan circuit = 800+200+200 = 1200ps
Clock frequency reduction = 100×(1200-960)/1200 = 20%
 How will you reduce the test time of a scan circuit by a factor of 10?
Form 10 scan registers, each having 1/10th the length of a single scan
register.

More Related Content

Similar to Lecture10.ppt

Lect2 up360 (100329)
Lect2 up360 (100329)Lect2 up360 (100329)
Lect2 up360 (100329)
aicdesign
 
MagneTag Presentation Winter Quarter V3.0
MagneTag Presentation Winter Quarter V3.0MagneTag Presentation Winter Quarter V3.0
MagneTag Presentation Winter Quarter V3.0
John-Paul Petersen
 
An_FPGA_Based_Passive_K_Delta_1_Sigma_Modulator
An_FPGA_Based_Passive_K_Delta_1_Sigma_ModulatorAn_FPGA_Based_Passive_K_Delta_1_Sigma_Modulator
An_FPGA_Based_Passive_K_Delta_1_Sigma_Modulator
Matthew Albert Meza
 
DickeyS_presentation_2015_3_26_2_1
DickeyS_presentation_2015_3_26_2_1DickeyS_presentation_2015_3_26_2_1
DickeyS_presentation_2015_3_26_2_1
Sergey Dickey
 
Lect2 up370 (100329)
Lect2 up370 (100329)Lect2 up370 (100329)
Lect2 up370 (100329)
aicdesign
 
Adam_Mcconnell_Revision3
Adam_Mcconnell_Revision3Adam_Mcconnell_Revision3
Adam_Mcconnell_Revision3
Adam McConnell
 
FIR_Filters_with_FPGA
FIR_Filters_with_FPGAFIR_Filters_with_FPGA
FIR_Filters_with_FPGA
Irvn Rynning
 

Similar to Lecture10.ppt (20)

ATE Testers Overview
ATE Testers OverviewATE Testers Overview
ATE Testers Overview
 
PLL
PLLPLL
PLL
 
Lect2 up360 (100329)
Lect2 up360 (100329)Lect2 up360 (100329)
Lect2 up360 (100329)
 
Design for testability and automatic test pattern generation
Design for testability and automatic test pattern generationDesign for testability and automatic test pattern generation
Design for testability and automatic test pattern generation
 
MagneTag Presentation Winter Quarter V3.0
MagneTag Presentation Winter Quarter V3.0MagneTag Presentation Winter Quarter V3.0
MagneTag Presentation Winter Quarter V3.0
 
Digital Implementation of Costas Loop with Carrier Recovery
Digital Implementation of Costas Loop with Carrier RecoveryDigital Implementation of Costas Loop with Carrier Recovery
Digital Implementation of Costas Loop with Carrier Recovery
 
An_FPGA_Based_Passive_K_Delta_1_Sigma_Modulator
An_FPGA_Based_Passive_K_Delta_1_Sigma_ModulatorAn_FPGA_Based_Passive_K_Delta_1_Sigma_Modulator
An_FPGA_Based_Passive_K_Delta_1_Sigma_Modulator
 
DickeyS_presentation_2015_3_26_2_1
DickeyS_presentation_2015_3_26_2_1DickeyS_presentation_2015_3_26_2_1
DickeyS_presentation_2015_3_26_2_1
 
Real 2nd order LC PLL loop analysis.pptx
Real 2nd order LC PLL loop analysis.pptxReal 2nd order LC PLL loop analysis.pptx
Real 2nd order LC PLL loop analysis.pptx
 
Mixed Scanning and DFT Techniques for Arithmetic Core
Mixed Scanning and DFT Techniques for Arithmetic CoreMixed Scanning and DFT Techniques for Arithmetic Core
Mixed Scanning and DFT Techniques for Arithmetic Core
 
Lect2 up370 (100329)
Lect2 up370 (100329)Lect2 up370 (100329)
Lect2 up370 (100329)
 
Ad7716
Ad7716Ad7716
Ad7716
 
DESIGN AND IMPLEMENTATION OF AREA AND POWER OPTIMISED NOVEL SCANFLOP
DESIGN AND IMPLEMENTATION OF AREA AND POWER OPTIMISED NOVEL SCANFLOPDESIGN AND IMPLEMENTATION OF AREA AND POWER OPTIMISED NOVEL SCANFLOP
DESIGN AND IMPLEMENTATION OF AREA AND POWER OPTIMISED NOVEL SCANFLOP
 
Adam_Mcconnell_Revision3
Adam_Mcconnell_Revision3Adam_Mcconnell_Revision3
Adam_Mcconnell_Revision3
 
Boundary scan for support engineers and technicians
Boundary scan for support engineers and techniciansBoundary scan for support engineers and technicians
Boundary scan for support engineers and technicians
 
design-compiler.pdf
design-compiler.pdfdesign-compiler.pdf
design-compiler.pdf
 
11_BANCELIN_Bernard_mapld09_pres_1.ppt
11_BANCELIN_Bernard_mapld09_pres_1.ppt11_BANCELIN_Bernard_mapld09_pres_1.ppt
11_BANCELIN_Bernard_mapld09_pres_1.ppt
 
FIR_Filters_with_FPGA
FIR_Filters_with_FPGAFIR_Filters_with_FPGA
FIR_Filters_with_FPGA
 
Active Filter Design Using PSpice
Active Filter Design Using PSpiceActive Filter Design Using PSpice
Active Filter Design Using PSpice
 
Vibration Measurements In Wind Power Turbines
Vibration Measurements In Wind Power TurbinesVibration Measurements In Wind Power Turbines
Vibration Measurements In Wind Power Turbines
 

Recently uploaded

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Recently uploaded (20)

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

Lecture10.ppt

  • 1. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 1 VLSI Testing Lecture 10: DFT and Scan  Definitions  Ad-hoc methods  Scan design  Design rules  Scan register  Scan flip-flops  Scan test sequences  Overheads  Boundary scan  Summary
  • 2. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 2 Definitions  Design for testability (DFT) refers to those design techniques that make test generation and test application cost-effective.  DFT methods for digital circuits:  Ad-hoc methods  Structured methods:  Scan  Partial Scan  Built-in self-test (BIST)  Boundary scan  DFT method for mixed-signal circuits:  Analog test bus
  • 3. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 3 Ad-Hoc DFT Methods  Good design practices learnt through experience are used as guidelines:  Avoid asynchronous (unclocked) feedback.  Make flip-flops initializable.  Avoid redundant gates. Avoid large fanin gates.  Provide test control for difficult-to-control signals.  Avoid gated clocks.  Consider ATE requirements (tristates, etc.)  Design reviews conducted by experts or design auditing tools.  Disadvantages of ad-hoc DFT methods:  Experts and tools not always available.  Test generation is often manual with no guarantee of high fault coverage.  Design iterations may be necessary.
  • 4. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 4 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.  Replace flip-flops by scan flip-flops (SFF) and connect to form one or more shift registers in the test mode.  Make input/output of each scan shift register controllable/observable from PI/PO.  Use combinational ATPG to obtain tests for all testable faults in the combinational logic.  Add shift register tests and convert ATPG tests into scan sequences for use in manufacturing test.
  • 5. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 5 Scan Design Rules  Use only clocked D-type of flip-flops for all state variables.  At least one PI pin must be available for test; more pins, if available, can be used.  All clocks must be controlled from PIs.  Clocks must not feed data inputs of flip-flops.
  • 6. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 6 Correcting a Rule Violation  All clocks must be controlled from PIs. Comb. logic Comb. logic D1 D2 CK Q FF Comb. logic D1 D2 CK Q FF Comb. logic
  • 7. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 7 Scan Flip-Flop (SFF) D TC SD CK Q Q MUX D flip-flop Master latch Slave latch CK TC Normal mode, D selected Scan mode, SD selected Master open Slave open t t Logic overhead
  • 8. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 8 Level-Sensitive Scan-Design Flip-Flop (LSSD-SFF) D SD MCK Q Q D flip-flop Master latch Slave latch t SCK TCK SCK MCK TCK Normal mode MCK TCK Scan mode Logic overhead
  • 9. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 9 Adding Scan Structure SFF SFF SFF Combinational logic PI PO SCANOUT SCANIN TC or TCK Not shown: CK or MCK/SCK feed all SFFs.
  • 10. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 10 Comb. Test Vectors I2 I1 O1 O2 S2 S1 N2 N1 Combinational logic PI Presen t state PO Next state SCANIN TC SCANOUT
  • 11. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 11 Comb. Test Vectors I2 I1 O1 O2 PI PO SCANIN SCANOUT S1 S2 N1 N2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 TC Don’t care or random bits Sequence length = (ncomb + 1) nsff + ncomb clock periods ncomb = number of combinational vectors nsff = number of scan flip-flops
  • 12. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 12 Testing Scan Register  Scan register must be tested prior to application of scan test sequences.  A shift sequence 00110011 . . . of length nsff + 4 in scan mode (TC = 0) produces 00, 01, 11 and 10 transitions in all flip-flops and observes the result at SCANOUT output.  Total scan test length: (ncomb + 2) nsff + ncomb + 4 clock periods.  Example: 2,000 scan flip-flops, 500 comb. vectors, total scan test length ~ 106 clocks.  Multiple scan registers reduce test length.
  • 13. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 13 Multiple Scan Registers  Scan flip-flops can be distributed among any number of shift registers, each having a separate scanin and scanout pin.  Test sequence length is determined by the longest scan shift register.  Just one test control (TC) pin is essential. SFF SFF SFF Combinational logic PI/SCANIN PO/ SCANOUT M U X CK TC
  • 14. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 14 Scan Overheads  IO pins: One pin necessary.  Area overhead:  Gate overhead = [4 nsff/(ng+10nff)] x 100% where ng = comb. gates; nff = flip-flops Example – ng = 100k gates, nff = 2k flip-flops overhead = 6.7%.  More accurate estimate must consider scan wiring and layout area.  Performance overhead:  Multiplexer delay added in combinational path; approx. two gate-delays.  Flip-flop output loading due to one additional fanout; approx. 5 - 6%.
  • 15. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 15 Hierarchical Scan  Scan flip-flops are chained within subnetworks before chaining subnetworks.  Advantages:  Automatic scan insertion in netlist  Circuit hierarchy preserved – helps in debugging and design changes  Disadvantage: Non-optimum chip layout. SFF1 SFF2 SFF3 SFF4 SFF3 SFF1 SFF2 SFF4 Scanin Scanout Scanin Scanout Hierarchical netlist Flat layout
  • 16. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 16 Optimum Scan Layout IO pad Flip- flop cell Interconnects Routing channels SFF cell TC SCANIN SCAN OUT Y X X’ Y’ Active areas: XY and X’Y’
  • 17. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 17 Scan Area Overhead Linear dimensions of active area: X = (C + S) / r X’ = (C + S + aS) / r Y’ = Y + ry = Y + Y(1--b) / T Area overhead X’Y’--XY = -------------- x 100% XY 1--b = [(1+as)(1+ -------) – 1] x 100% T 1--b = (as + ------- ) x 100% T y = track dimension, wire width+separation C = total comb. cell width S = total non-scan FF cell width s = fractional FF cell area = S/(C+S) a = SFF cell width fractional increase r = number of cell rows or routing channels b = routing fraction in active area T = cell height in track dimension y
  • 18. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 18 Example: Scan Layout  2,000-gate CMOS chip  Fractional area under flip-flop cells, s = 0.478  Scan flip-flop (SFF) cell width increase, a = 0.25  Routing area fraction, b = 0.471  Cell height in routing tracks, T = 10  Calculated overhead = 17.24%  Actual measured data: Scan implementation Area overhead Normalized clock rate ______________________________________________________________________ None 0.0 1.00 Hierarchical 16.93% 0.87 Optimum layout 11.90% 0.91
  • 19. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 19 ATPG Example: S5378 Original 2,781 179 0 0.0% 4,603 35/49 70.0% 70.9% 5,533 s 414 414 Full-scan 2,781 0 179 15.66% 4,603 214/228 99.1% 100.0% 5 s 585 105,662 Number of combinational gates Number of non-scan flip-flops (10 gates each) Number of scan flip-flops (14 gates each) Gate overhead Number of faults PI/PO for ATPG Fault coverage Fault efficiency CPU time on SUN Ultra II, 200MHz processor Number of ATPG vectors Scan sequence length
  • 20. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 20 Boundary Scan (BS) IEEE 1149.1 Standard  Developed for testing chips on a printed circuit board (PCB).  A chip with BS can be accessed for test from the edge connector of PCB.  BS hardware added to chip:  Test Access port (TAP) added  Four test pins  A test controller FSM  A scan flip-flop added to each I/O pin.  Standard is also known as JTAG (Joint Test Action Group) standard.
  • 21. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 21 Boundary Scan Test Logic
  • 22. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 22 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  Variations of scan:  Partial scan  Random access scan (RAS)  Boundary scan (BS)
  • 23. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 23 Problems to Solve  What is the main advantage of scan method?  Given that the critical path delay of a circuit is 800ps and the scan multiplexer adds a delay of 200ps, determine the performance penalty of scan as percentage reduction in the clock frequency. Assume 20% margin for the clock period and no delay due to the extra fanout of flip-flop outputs.  How will you reduce the test time of a scan circuit by a factor of 10?
  • 24. Copyright 2001, Agrawal & Bushnell Lecture 10: DFT and Scan 24 Solutions  What is the main advantage of scan method? Only combinational ATPG (with lower complexity) is used.  Given that the critical path delay of a circuit is 800ps and the scan multiplexer adds a delay of 200ps, determine the performance penalty of scan as percentage reduction in the clock frequency. Assume 20% margin for the clock period and no delay due to the extra fanout of flip- flop outputs. Clock period of pre-scan circuit = 800+160 = 960ps Clock period for scan circuit = 800+200+200 = 1200ps Clock frequency reduction = 100×(1200-960)/1200 = 20%  How will you reduce the test time of a scan circuit by a factor of 10? Form 10 scan registers, each having 1/10th the length of a single scan register.