Вы находитесь на странице: 1из 14

7/26/2012

Testing and Verification of Circuits

Prof. Indranil Sen Gupta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Reference Books
1. 2. 3. 4. 5. M.L. Bushnell and V.D. Agrawal, Essentials of Electronic Testing, Kluwer Academic Publishers, 2000. M. Abramovici, M.A. Breuer and A.D. Friedman, Digital Systems Testing and Testable Design, Wiley-IEEE Press, 1993. N.K. Jha and S. Gupta, Testing of Digital Systems, Cambridge University Press, 2004. L-T. Wang, C-W. Wu and X. Wen, VLSI Test Principles and Architectures, Morgan Kaufman Publishers, 2006. P.H. Bardell, W.H. McAnney and J. Savir, Built-in Test for VLSI: Pseudorandom Techniques, Wiley Interscience, 1987. http://144.16.192.60/~isg/TESTING/index.html

Web site:

7/26/2012

Introduction

Why Testing?
To determine the presence of fault(s) in a given circuit.
No amount of testing can guarantee that a circuit (chip, board or system) is fault-free. We carry out testing to increase our confidence in proper working of the circuit.

Verification is an alternative to testing, used to verify the correctness of a design.


Simulation-based approach. Formal methods.
4

7/26/2012

Verification
Verifies correctness of design.

v/s

Testing

Verifies correctness of manufactured h/w.

Performed by simulation, Two-part process: 1. Test generation h/w emulation, or formal 2. Test application methods. Performed once prior to Test application manufacturing. performed on every manufactured device. Responsible for quality of Responsible for quality of design. devices.

Levels of Testing
Testing can be carried out at various levels:
Chip level Board level System level

Cost :: Rule of 10
It costs 10 times more to test a device as we move to the next higher level in the product manufacturing process.

7/26/2012

Alternate Way of Classification


Transistor level Gate lebel RTL level Functional level Behavioral level
Important to develop correct fault models and simulation models

PRIMARY FOCUS OF THIS COURSE:Chip-level testing Gate-level design

Some Real Defects in Chips


Processing Faults
missing contact windows, parasitic transistors, oxide breakdown

Material Defects
bulk defects (cracks, crystal imperfections) surface impurities (ion migration)

Time-Dependent Failures
dielectric breakdown, electron migration

Packaging Failures
contact degradation, seal leaks
8

7/26/2012

Faults, Errors and Failures


Fault: A physical defect within a circuit or a system May or may not cause a system failure Error: Manifestation of a fault that results in incorrect circuit (system) outputs or states Caused by faults Failure: Deviation of a circuit or system from its specified behavior Fails to do what it should do Caused by an error

Fault

Error

Failure
9

An example: a car with a flat tyre


Fault : pin puncture in the tyre Error : Erroneous state of air pressure in the tyre Failure : Car cannot be driven safely

10

7/26/2012

Manifestation of Faults
Two types of faults:
Permanent: Faults that change the functional behavior of a system permanently.
Incorrect connections in ICs, PCBs Incorrect IC masks Functional design errors EASIER TO DETECT

Non-permanent: They occur at random times, and affect the systems functional behavior for finite, but unknown periods of time.
DETECTION & DIAGNOSIS IS DIFFICULT
11

Two classes of non-permanent faults:


Transient Faults:
Caused by environmental conditions such as cosmic rays, particles, humidity, pressure, vibration, etc. Example: Bit changes in RAMs caused by radiation (called soft errors; no permanent damage).

12

7/26/2012

Intermittent Faults:
Caused by non-environmental conditions, such as loose connections, ageing components, critical timing, etc. Behave like permanent failure for the duration of the failure. Can be detected by continuously repeating the test.

Fault Coverage
A very commonly used metric:
Fault coverage T is the measure of the ability of a set of tests to detect a given class of faults that may occur on the device under test.

T =

No. of detected faults No. of possible faults

14

7/26/2012

Defect Level
Defect level (DL) is the fraction of shipped parts that are defective. DL = 1 Y(1-T)
where Y is the yield, and T is the fault coverage.

15

Relating Defect Level to Fault Coverage


1
Y=.01

.9 .8
Y=.10

DL = 1 - Y (1-T) Y = Yield

Defect Level

.7 .6 .5 .4 .3
Y=.75

Y=.25

Y=.50

.2
Y=.90

.1 0 0

Y=.99

10

20

30

40

50

60

70

80

90

100

Fault Coverage, T (%)(%) Fault Coverage 16

7/26/2012

Why Testing is Difficult ?


Test application time can grow exponentially for exhaustive testing of circuits.
For a combinational circuit with 50 inputs, we need 250 = 1.1 x 1015 test patterns.

Test generation of sequential circuits are even more difficult.


Lack of controllability and observability of flipflops.

Functional testing may not be adequate for the detection of physical faults.
17

How To Do Test?
Fault Modeling
Identify target faults Limit the scope of test generation

Test Generation
Automatic or Manual

Fault Simulation
Assess completeness of tests

18

7/26/2012

Testability Analysis
Analyze a circuit for potential problem on test generation

Design For Testability


Design a circuit for guaranteed test generation Introduce both area overhead and performance degradation

Overheads of Testing
Design for Testability (DFT)
Chip area overhead Yield reduction Performance overhead

Software processes of test


Test generation Fault simulation

Manufacturing test
Automatic Test Equipment (ATE) cost Test center operational cost
20

10

7/26/2012

Basic Testing Principle


Output response

Input patterns

Circuit Under Test

Golden response

Comparator
Good / Bad
21

Traditional Design Flow


Conduct testing after design
Design for Testability Yes Design Specification Design
Too large or too slow?

No

Testability Analysis

Testability Improvement?

Yes

No Done

22

11

7/26/2012

The Infamous Design/Test Wall

30 years of experience proves that test after design does not work!
Oh no! What does this chip do?!

Functionally correct! We're done!

Design Engineering

Test Engineering

23

New Design Mission


Design circuit to optimally satisfy or trade-off their design constraints in terms of area, performance and testability.

TESTABILITY

PERFORMANCE

AREA

24

12

7/26/2012

New VLSI Design Flow


No

Design Specification

Functional Behavior

Structure

Logic Synthesis

Yes Satisfied

Test Plan

Testable Design Rules Testability Analysis

Circuit Synthesis Placement/ Routing Mask

ATPG

Tests

25

Ideal Tests vrs. Real Tests


Ideal Tests:
Detect all defects produced in the manufacturing process. Pass all functionally good devices. Problems:
Very large numbers and varieties of possible defects need to be tested. Difficult to generate tests for some real defects. Defect-oriented testing is an open problem.

26

13

7/26/2012

Real Tests:
Based on analyzable fault models, which may not map on real defects. Incomplete coverage of modeled faults due to high complexity. Some good chips are rejected.
The fraction (or percentage) of such chips is called the yield loss.

Some bad chips pass tests.


The fraction (or percentage) of bad chips among all passing chips is called the defect level.
27

Testing as Filter Process


0.7 0.95 0.68

Good chips prob(good) = y Fabricated chips

prob(pass test) = high

Mostly good chips

0.05

0.05

Defective chips prob(bad) = 1- y


0.3

prob(fail test) = high


0.95

Mostly bad chips


0.32
28

14

Вам также может понравиться