Beruflich Dokumente
Kultur Dokumente
4/27/12
Why Testing..?
To determine the presence of faults, not the absence of faults, 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.
Testing basics
Verification: Predictive analysis to ensure that the synthesized design, when manufactured, will perform the given I/O function. Test: A manufacturing step that ensures that the physical device, manufactured from the synthesized design, has no manufacturing defect.
4/27/12
Test application performed on every manufactured device. Responsible for quality of devices.
4/27/12
Levels of Testing
Chip Board System It costs 10 times more to test a device as we move to the next higher level in the product manufacturing process.
Cost :: Rule of 10
4/27/12
Levels of Testing
4/27/12
Costs of Testing
Chip area overhead and yield reduction Performance overhead Test generation and fault simulation Test programming and debugging
Manufacturing test
Automatic test equipment (ATE) capital 4/27/12 cost
4/27/12
4/27/12
Example
Consider a digital system consisting of two inputs a and b, one output c, and one two-input AND gate. The system is assembled by connecting a wire between the terminal a and the first input of the AND gate. The output of the gate is connected to c. But the connection between b and the gate is incorrectly made b is left unconnected and the second input of the gate is grounded. The functional output of this system, as implemented, is c=0, instead of the correct output c=ab. For this system, we have:
Defect: a short to ground. Fault: signal b stuck at logic 0. Error: a=1,b=1 output c=0; correct output c=1.
4/27/12
Missing contact windows Parasitic transistors Oxide breakdown ... Bulk defects (cracks, crystal imperfections) Surface impurities (ion migration) ... Dielectric breakdown Electromigration
Material defects
Time-dependent failures
4/27/12 . . .
Yield
A manufacturing defect is a finite chip area with electrically malfunctioning circuitry caused by errors in the fabrication process. A chip with no manufacturing defect is called a good chip. Fraction (or percentage) of good chips produced in a manufacturing 4/27/12
Yield
Good chips Faulty chips
Defec ts Waf er
Fault Modeling
I/O function tests inadequate for manufacturing (functionality versus component and interconnect testing) Real defects (often mechanical) too numerous and often not analyzable A fault model identifies targets for testing
4/27/12
Stuck-at faults
Single, multiple open and short faults Coupling, pattern sensitive stuck-at, cross-point, bridging
Transistor faults
Memory faults
PLA faults
4/27/12
Stuck-at Faults
Some lines in the circuit are permanently stuck at logic 0 or logic 1. Two types
4/27/12
A test set for detecting single stuck-at faults detects a large percentage of multiple stuck-at faults as well
For a circuit with k lines, the total number of single stuck-at faults possible is 2k. Most widely used fault model in the industry.
4/27/12
True Response
0 (1)
X Stuckat-1
4/27/12
Example 2 (Fanout)
1 0
a b
c d e
s-a-0
Good j 0(1)value g
1
h i k
z
1
Fault sites
Number of fault sites in a Boolean gate circuit = #PI + #gates + # (fanout branches).
4/27/12
Fault Equivalence
Fault equivalence: Two faults f1 and f2 are equivalent if all tests that detect f1 also detect f2. If faults f1 and f2 are equivalent then the corresponding faulty functions are identical. Two faults of a Boolean circuit are called equivalent iff they transform 4/27/12
Fault collapsing
All single faults of a logic circuit can be divided into disjoint equivalence subsets, where all faults in a subset are mutually equivalent. A collapsed fault set contains one fault from each equivalence subset.
Set of collapsed faults Collapse Ratio = Set of all faults
4/27/12
Equivalence Rules
sa0 sa1 sa0 sa1 AND sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 NAND sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 NOR sa0 sa1 sa0 sa1 FANOUT sa0 sa1 sa0 sa1 NOT sa1 sa0 sa0 sa1 OR sa0 sa1 WIRE sa0 sa1
4/27/12
Equivalence Example
4/27/12
Equivalence Example
sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 sa0 sa1 Faults in blue removed by equivalen ce collapsin g sa0 sa1
4/27/12
Fault Dominance
If all tests of some fault F1 detect another fault F2, then F2 is said to dominate F1. Dominance fault collapsing:
When dominance fault collapsing is used, it is sufficient to consider only the input faults of Boolean gates.
4/27/12
Fault Dominance
In a tree circuit (without fanouts) PI faults form a dominance collapsed fault set. If two faults dominate each other then they are equivalent.
4/27/12
Dominance Example
F1 s-a-1 All tests of F2
F2 s-a-1
110 101
010 011
Only test of F1
Dominance Collapsing
An n-input Boolean gate requires n + 1 single stuck-at faults to be modeled. To collapse faults of a gate, all faults from the output can be eliminated retaining one type (s-a-1 for AND and NAND; s-a-0 for OR and NOR) of fault on each input and the other type (s4/27/12 for AND and NAND; s-a-1 for OR a-0
Checkpoints
Primary inputs and fanout branches of a combinational circuit are called checkpoints. Checkpoint theorem: A test set that detects all single (multiple) stuck-at faults on all checkpoints of a combinational circuit, also detects all single (multiple) stuck-at faults in 4/27/12 that circuit.
Checkpoints
MOS transistor is considered an ideal switch and two types of faults are modeled:
Stuck-open -- a single transistor is permanently stuck in the open state. Stuck-short -- a single transistor is permanently shorted irrespective of its gate voltage.
Stuck-Open Example
Vector 1: test for A s-a-0 (Initialization vector) pMOS FETs 1 0 0 0 Vector 2 (test for A s-a-1) Two-vector s-op test can be constructed by ordering two s-at tests Stuckopen
VD
A B
C
nMOS FETs 4/27/12
Stuck-Short Example
Test vector for A s-a-0 pMOS FETs 1 0
VD
A B
D
Stuckshort
C
nMOS FETs 4/27/12
0 (X)
ATPG algorithms inject a fault into a circuit, and then use a variety of mechanisms to activate the fault and cause its effect to propagate through the hardware and manifest itself at a circuit output.
4/27/12
Inadequate
4/27/12
Use to get tests for 60-80% of faults, then switch to ATPG(Automatic Test Pattern Generation) for rest.
Fault Coverage 100 %
4/27/12
30 0
No. of patterns
Functional ATPG programs generate a complete set of test-patterns to completely exercise the circuit function. Structural test only exercises the minimal set of stuck-at faults on each line of the circuit, after discarding equivalent faults.
4/27/12
4/27/12
Functional ATPG
Fastest automatic test equipment (ATE), operating at 1GHZ would take 2.1580566142x1022 years to apply all these patterns.
4/27/12
Structural ATPG
Sum Circuit
4/27/12
Structural ATPG
Carry Circuit
4/27/12
Structural ATPG
In the adder
No redundant adder hardware, 64 bit slices. Each with 27 faults At most 64x27 = 1728 faults (tests) Takes 0.000001728 s on 1GHZ ATE.
In practice
Designer gives small set of functional tests. 4/27/12
4/27/12
Definition
Design for testability (DFT) refers to those design techniques that make test generation and test application cost-effective. DFT methods for digital circuits:
4/27/12 DFT
Ad-hoc methods
Click to edit Master subtitle style
4/27/12
Avoid asynchronous (unclocked) feedback. Avoid delay dependant logic. Avoid self resetting logic. Avoid gated clocks. Avoid redundant gates. Avoid large fanin gates. Make flip-flops initializable. Separate digital and analog circuits.
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/27/12
Structured methods
Click to edit Master subtitle style
4/27/12
1.Scan Design
Objectives
Simple read/write access to all subset of storage elements in a design. Direct control of storage elements to an arbitrary value (0 or 1) Direct observation of the state of storage elements and hence the internal state of the circuit.
Scan Design
Circuit designed using pre-specified design rules. Test structure added to the verified design
Add one(or more) test control(TC) primary input. Replace flip-flops by scan flip-flops and connect to form one or more shift registers in the test mode. input/output of each scan shift
Make 4/27/12
Scan Design
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.
4/27/12
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.
4/27/12
C K
F F Com b. logic D D 1 C 2 K
F F
4/27/12
Q Com b. logic
Slave latch
Q Q
TC or TCK SCANIN
4/27/12
I2
Combination al logic
O 1
O 2
S 2
N 1
N 2
4/27/12
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.
4/27/12
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. PI/SCAN Combination IN al SF logic F SF SF F F T C C 4/27/12 K
M U X
Scan Overheads
where ng = comb. gates; nff = flip-flops; Example ng = 100k gates, nff = 2k flipflops, overhead = 6.7%.
4/27/12
More accurate estimate must consider scan wiring and layout area.
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
Scanou ScaniDisadvantage: Non-optimum chip layout. SFF SFF t n SFF 4 1 Scani 1 n SFF SFF SFF 3 2 4 Hierarchical Flat 4/27/12 netlist layout
SFF 3 SFF 2
Scanou t
Rule-based design Automated DFT hardware insertion Combinational ATPG Design automation High fault coverage; helpful in diagnosis Hierarchical scan-testable modules are easily combined into large scan-testable systems
Advantages:
4/27/12
Disadvantages:
Additional pin requirement. Test hardware slows down the clock Large test data volume and long test time Basically a slow speed (DC) test
4/27/12
2.Partial-Scan Definition
Minimize area overhead and scan sequence length, yet achieve required fault coverage Exclude selected flip-flops from scan:
4/27/12
Allow automation:
Partial-Scan Architecture
P I Combination al circuit F F F F SF F SF F P O
CK 1 CK 2 T C
4/27/12
SCANO UT
Partial-Scan -Summary
Partial-scan is a generalized scan method; scan can vary from 0 to 100%. Partial-scan has lower overheads (area and delay) and reduced test length. Partial-scan allows limited violations
4/27/12
Useful for field test and diagnosis (less expensive than a local automatic test equipment) Software tests for field test and diagnosis:
Low hardware fault coverage Low diagnostic resolution Slow to operate Lower system test effort
BIST Costs
Test controller Hardware pattern generator Hardware response compacter Testing of BIST hardware
Pin overhead -- At least 1 pin needed to activate BIST operation Performance overhead extra path delays due to BIST
4/27/12
BIST Architecture
4/27/12
4/27/12
LFSR
4/27/12
4.Boundary Scan
4/27/12
4/27/12
4/27/12
4/27/12
4/27/12
4/27/12
TESTING -PORTIONS
ROTH-339 to 354 ,361 to 365 P 457 to461 p477 ,481 to 483, P 1-8 ,p93 to 106 P 343 to 369
4/27/12
Thank You
Click to edit Master subtitle style
4/27/12