ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

24
ELEN 468 Lecture 24 1 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability
  • date post

    20-Dec-2015
  • Category

    Documents

  • view

    226
  • download

    4

Transcript of ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

Page 1: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 1

ELEN 468Advanced Logic Design

Lecture 24Design for Testability

Page 2: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 2

Test Cost

Test pattern generationFault simulationGeneration of fault sites informationTest equipmentTest processTest cost may overweight design cost

Page 3: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 3

Why Design for Testability?

Testability is a design characteristic that influences various costs associated with testingIt allows for Device status to be determined Isolation of faults Reduce test time and cost

Page 4: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 4

Controllability

Ability to establish a specific signal value at each node by setting circuit’s inputsCircuits typically difficult to control: decoders, circuits with feedback, oscillators, clock generators …

Page 5: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 5

Observability

Ability to determine the signal value at any node in a circuit by controlling the circuit’s inputs and observing its output

Page 6: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 6

Predictability

Ability to obtain known output values in response to given input stimuliFactors affecting predictability Initial state of circuit Races Hazards … …

Page 7: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 7

Difficult Test Cases

Sequential logic is more difficult to test than combinational logicControl logic is more difficult to test than data-path logicRandom logic is more difficult to test than structured bus-oriented designsAsynchronous design is more difficult to test than synchronous design

Page 8: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 8

Quantify TestabilityNeed approximate measure of: Difficulty of setting internal circuit lines to 0

or 1 by setting primary circuit inputs Difficulty of observing internal circuit lines by

observing primary outputs

Uses: Analysis of difficulty of testing internal circuit

parts – redesign or add special test hardware Guidance for algorithms computing test

patterns – avoid using hard-to-control lines Estimation of fault coverage Estimation of test vector length

Page 9: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 9

Types of Measures SCOAP – Sandia Controllability and Observability

Analysis Program Combinational measures:

CC0 – Difficulty of setting circuit line to logic 0 CC1 – Difficulty of setting circuit line to logic 1 CO – Difficulty of observing a circuit line

Sequential measures – analogous: SC0 SC1 SO

Page 10: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 10

Range of SCOAP Measures Controllabilities – 1 (easiest) to infinity

(hardest) Observabilities – 0 (easiest) to infinity

(hardest) Combinational measures:

Roughly proportional to # circuit lines that must be set to control or observe given line

Sequential measures: Roughly proportional to # times a flip-flop must be

clocked to control or observe given line

Page 11: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 11

Controllability Examples

Page 12: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 12

Observability Examples

Page 13: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 13

Goal of Design for Testability (DFT)

Improve Controllability Observability Predictability

Page 14: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 14

Design and Test Trade-off

Most DFT ( Design for Testability ) techniques need extra hardware, or modification to circuits that may affect performancesDFT need to consider the cost trade-off between design and test

Page 15: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 15

DFT MethodsDFT methods for digital circuits: Ad-hoc methods Structured methods:

Scan Partial Scan Built-in self-test (BIST) Boundary scan

Page 16: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 16

Ad-Hoc DFT MethodsGood 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

Design reviews conducted by experts or design auditing toolsDisadvantages 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

Page 17: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 17

Scan DesignCircuit is designed using pre-specified design rulesTest 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

Page 18: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 18

Scan Design Rules

Use only clocked D-type of flip-flops for all state variablesAt least one PI pin must be available for test; more pins, if available, can be usedAll clocks must be controlled from PIs

Page 19: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 19

Correcting a Rule ViolationAll clocks must be controlled from PIs

Comb.logic

Comb.logic

D1

D2

CK

Q

FF

Comb.logic

D1

D2CK

Q

FF

Comb.logic

Page 20: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 20

Scan Storage Cell

DSiN/

T’Clk

Q, So

SSC

D Q

SSC

Page 21: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 21

Scan Flip-Flop (SFF)

DN/T’

Si

Clk

Q

QMUX

D flip-flop

Master latch Slave latch

Logicoverhead

Page 22: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 22

Scan Methods

C1

C2

C2

C1

MUX

Si

Page 23: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 23

Boundary Scan

MUX

Page 24: ELEN 468 Lecture 241 ELEN 468 Advanced Logic Design Lecture 24 Design for Testability.

ELEN 468 Lecture 24 24

Integrated Serial Scan

SFF

SFF

SFF

Combinational

logic

PI PO

SCANOUT

SCANINControl