Unit V: Testing of Analog and Digital Circuits
Unit V: Testing of Analog and Digital Circuits
Introduction
PCB assemblies of commercial off the self
items such as operational amplifiers etc
Uncommitted analogue arrays dedicated to the
required system specification by the final
custom metallization mask.
Full custom IC designs invariably designed by
a vendor or specialist design team.
Analog only
PCB
assembly
of std off
the self
parts
Special circuits
ADC.DAC,Filters
Moxed mode
Full
custom
Analog
array
Specialist design
house testing
Contd..
Absolute analog component tolerances can vary by 20%, but
relative component matching can be as good as 0.1%. Circuit
functionality is designed to depend on component ratios .
A multiple fault model is mandatory, but faults in multiple
components can cancel each others effect, so not every multiple
fault is a real fault.
The multiple fault set is too large to enumerate.
There is no unique direction of information flow in an analog
circuit, whereas there usually is in digital CMOS circuits, with the
exception of CMOS C-switch busses. The C-switch realizes a
simple connect/ disconnect switch between two sub-circuits.
3. Decomposability: Sub-components cannot be tested individually in an
analog IC in the way that they can be in a digital IC.
6
Contd..
4. Test busses are much harder to realize in analog than in
digital circuits:
Transporting an analog signal to an output pin may
alter the analog
signal and the circuit functionality.
Reconfiguring an analog circuit during test is often
unacceptable, unlike the case of digital circuit
testing. The reconfiguration hardware can
unacceptably change the analog circuit transfer
function, even when it is turned off.
7
Contd..
5. Testing Methods:
Both analog and digital circuits have structural ATPG methods,
but because of a lack of well-accepted analog fault models and the
lack of a mapping between structural analog faults and analog
specifications, structural analog ATPG is not widely used.
Specification-based (functional) test methods exist for both analog
and digital circuits. However, functional testing is rarely used for
digital circuits, because the number of tests is intractable.
Conversely, in analog testing, specification-based tests are most
often used, because they are tractable and need no fault model.
Digital circuits can be tested separately for logic functionality
(stuck faults) and timing performance (path-delay faults.) However,
these two types of tests cannot be separated in analog circuits, and
are combined .
8
Fault models
Deviate faults parameter value changes
Catastrophic faults- wide deviation in
parametric value form nominal value.
Dependent faults- fault occurs due to
parameter variation fault.
Environmental faults Intermittent faults- usually catastrophic when
they occur but only temporary.
9
Analog testing
Fault modeling techniques inadequate to detect
faults.
Requirement of simulation for selected fault
Higher level commercial simulators (HELIX) not
yield finer details.
Spice time consuming for large circuits.
Functional tests-to detect any un-accepted
deviation .
Stuck-at modeling+ ATPG= solution
11
All
faults
covere
d
yes
12
Amplifiers
Regulators
Oscillators(VCO)
Comparators
PLL
Analog multipliers
Analog filters
13
14
Parametric (soft):
Analog R, C, L, Kn, or Kp (a transistor K
parameter) is outside of its tolerance box)
Very hard to test for
15
Levels of Abstraction
Structural Level
Structural View Transistor schematic
Behavioral View System of non-linear partial
differential equations for net list
Functional Level
Structural View Signal Flow Graph
Behavioral View Analog network transfer
function
16
17
Accuracy:
Speed:
Ease of Operation:
Modelling Convenience:
More Measurement Information:
Size and Power:
18
20
21
24
Phase-Lock Synchronization
Requirement Vector samples must fall in exactly the right places in
the right time interval, or testing will be very
inaccurate.
The digitizing window must be coordinated precisely
with each clock, signal, and distortion component. This
is implemented with a common reference frequency,
controlled by a phase-locked loop (PLL).
Synchronization gives the DSP system a coherence
property, in which all frequency and time functions are
programmable related in exact whole-number ratios.
26
27
Waveform Synthesis
It has a programmable reconstruction filter for a 16-bit
DAC to produce continuous analog waveforms, by
eliminating stair casing in the analog output signal. We
also need sin(x)/x (sinc) correction applied to the signal
spectrum during digital pattern synthesis.
Waveform sampling and digitization- It is complex, and
contains a differential buffer, a programmable-gain
amplifier (PGA), and a programmable anti-aliasing filter.
It needs a built-in track-hold circuit in the analog-todigital converter (ADC.)
A typical instrument has three independent PLLs, which
are needed in telecommunications testing to generate and
coordinate several different clock rates at once.
28
Waveform Synthesis
The waveform from the DAC is sent through programmable
course and fine attenuators to set the proper level. These
attenuators keep the DAC working at its full-scale value to
minimize quantization noise. This also allows addition of
programmable DC offset to the synthesized signal.
Frequency synchronization requires that clocking for the
digital pins, analog waveform synthesizer, and analog
waveform sampler be derived from a single crystal reference.
This allows different modules in the ATE to use different
frequencies, which have known fixed integer ratio
relationships between them. All of the clocking for the WS
and WM comes from the Pacemaker, and is chosen for the
waveform
29
30
ADC/DAC Testing
Specialized testing methods are used for ADC and
digital/analog converter (DAC) testing.
The ideal ADC discards data, while the ideal DAC does not
lose information.
The ADC cannot be tested by a DC test and examination of
the digitized output for correct codes, because noise,
statistical converter behaviour, and converter slew rate
errors may cause such a test to pass defective ADCs, or to
fail good ADCs.
ADC testing is non-deterministic and must involve more
statistical analysis than DAC testing. Even good ADCs have
noise and occasional bursts of extraneous (sparkle) codes.
31
32
Parameters
The settling time and the glitch area are relevant only to
DACs.
Settling time indicates how long the reconstruction filter on the
DAC output takes to settle to its correct value.
Glitch area is the area in the DAC output represented by
glitching pulses.
As frequencies and conversion rates increase, transmission
parameters become more useful than intrinsic parameters for
testing.
34
35
36
37
In dB it is
39
43
45
46
47
High-Frequency Histogram
Technique with a Sine Wave
A high-frequency test for ADCs to catch the
sparkle and glitch codes. At high f, triangle
waves are hard to generate, so we use a sine
wave, and coherently test the converter with
the previously-described DSP technique.
The dynamic linearity of the ADC worsens
with increasing input slew rate, and this test
detects such problems, and also lets us
examine the spectral response of the converter.
48
49
50
Indirect Voltage MeasurementFor computing INL for a DAC, A 16-bit D/A converter with step
size of 15 parts per million (ppm), requires a measurement error
below 2 ppm.
It is necessary to use indirect measurement to achieve this.
DAC transfer function errors appear as vertical displacements
of the points.
A direct measurement of the DAC transfer map is inappropriate
for these reasons:
51
52
54
55
ADC-Test Procedures
Should largely be functional in accordance with device
specifications .
Emphasis should be given Throughput and speed of test
Purity of analog waveforms
Equal quantization of digital increments
Temperature coefficients and conversion stability
Settling time
However when ADC/DAC are used with complex systems
observability and controllability gets restricted and
alternative testing procedures are to be incorporated.
56
QS
FS
QE max
1
QS
2
57
FS
*All these errors plus noise ,settling time ,temperature coefficient, nonlinearity
(all within permissible limits) etc are responsibility of vendor.
*OEM- tests for gross errors for off shelf products.
58
Filter testing
Digital modeling
Functional K-map modeling
Logical decomposition.
No strategies for switched capacitor filter.
Transient response most valid test.
Use of pseudorandom sequences and
impulse response relationship.
61
FILTER- classification
Analog Filters
Active
passive
Discrete
Chebyshev
Continuous time
linear filters
Butterworth
Switched
capacitor
Bessel
LPF
HPF
Band pass
Band stop
62
MEMORY TESTING
The fastest memory in the hierarchy is the static RAM in
the microprocessor cache, dynamic RAM is the off-chip
main memory, and Winchester moving head disk drive
technology is at the bottom of the hierarchy.
The widespread deployment of virtual memory, and the
increase in typical computer memory sizes to several
Mega-bytes has only been possible because of increasing
memory chip density and cost-effective memory testing.
Virtual memory has freed tens of millions of
programmers from the need to code software in assembly
language, and from the need to carefully construct
software overlays
63
Bipolar unipolar
Schottky
TTL
NMOS
Static
Field
programmable
unipolar
Bipolar
Schottky
TTL
CMOS
NMOS
ECL
I2L
Dynamic
Bipolar
CMOS
NMOS
Unipolar
unipolar
CMOS Bipolar
Ferroelectric
NMOS
I2L
CMOS
64
65
PLA
PROM
PAL
68
69
Recently:
VPGA (Via-Programmable Gate Array)
Structured ASIC
71
72
Complexity
Fault modeling not possible with stuck at faults due
to cross points.
No re-convergent fan-outs topology-backtracking in
PODEM becomes complex and time consuming.
High fan-in militates use of random and
pseudorandom test patterns.
Hence it becomes more appropriate to consider self
testing architecture.
Programmed output function is dependent upon presence
or absence of connections at the cross points in AND
/OR arrays. Therefore cross point faults are to be
modeled.
73
Hardware/Software Differences
Most PL cannot be changed once burned
(programmed). FPGAs can be programmed on-the-fly.
Software execution is serial one instruction after
another.
PL execution is parallel multiple simultaneous signals
and processes.
PL designed, verified, tested by engineers.
75
Current PL Process
Design from system requirements.
Functional Simulation
Includes corner cases
ATPG program considerations Individual possible cross point faults and the
determination of appropriate input test
vectors to detect their existence if present.
The relationship between the types of cross
point fault and the effect on the total test
vector requirements.
77
78
Disadvantages of ATPG
Multiple cross point faults are not specially
considered.
Test patterns are function dependent not generalized.
If PLA is part of complex VLSI circuit ,
controllability and observability of PLA may not
yield access to complete fault testing .
PLA size grows towards 50 or more inputs and
hundreds of product terms ,so number of cross points
increases to make ATPG program consume CPU
time .( execution time )
79
Test procedure
1.
2.
3.
4.
5.
6.
7.
Set all stages in the shift register to logic 0 to disable all product lines and
check that both parity outputs are zero. This checks stuck at-1 fault in parity
check circuits.
Shift 1 to first stage .to select first product column only leading to OR array.
Set all Xi inputs to zero Y1,Y2 to 10 which will give 1 on all 2nd And input
literals. Check that odd parity check on column 1 is 1 by observing output Z 2.
If no cross point is present, there will be only parity bit in OR array to give
output Z2=1
Repeat 1..2 for Xi inputs set to 1 and Y1,Y2 set to 01 which will give 1 on all
AND array inputs.
Repeat 2 and 3 for each of the remaining product columns by shifting 1 along
shift register to check all OR matrix cross points.
Set all stages in the shift register to 1 to energize all product columns With
Y1Y2 =01 , set X1 to 0 and all remaining inputs to 1 to deactivate input X1row
in the AND array but activate all remaining 2n-1 rows. With this loss of
all p(odd programmed) cross points in the first row of AND array
including parity check. Check for Z1=1
Repeat Y1Y2=01 X1=1 and all remaining inputs at 0 to deactivate Xi row
in the And array checking Z1=1 as in step 5.
Continue till all done.
82
Other BIST methods- Parallel testable PLA architectures, divide and conquer
testable architectures, specialized layout testable PLA architectures, random
pattern testable PLA architectures.
83
PLD
The test pattern generators essentially look at Individual possible cross point faults and determination of
appropriate test vectors to detect their existence.
Relationship between the types of cross point fault and the
effect on total test vector requirement.
Disadvantages of ATPG Multiple cross point faults are not specially considered
Test pattern are dependent on dedicated functions in PLAS
If PLA is part of complex VLSI circuit controllability and
observability are restricted.
As PLA size grows number of cross point faults increases and
fault modeling is difficult. More CPU time is consumed in
fault modeling and execution.
85
Faults
A system is defined here either as a purely electronic system
or a mixed electronic, electromechanical, chemical, and
photonic device system. Such systems are coming into
common use through micro electro-mechanical system
(MEMS) technology that combines all of the above-listed
devices on a single chip.
A system failure occurs when system behavior is incorrect
or interrupted. Failures are caused by errors, which are
manifestations of faults in the system.
A fault is present in the system when there is a physical
difference between good and incorrect (failing or bad)
system behavior, but some time may elapse before a fault
causes a detectable system error.
88
Fault Manifestations
Permanent. These faults are caused by the
following mechanisms, and can be
modeled with a fault model, since they will exist
indefinitely.
Bad Electrical Connections (missing or added)
Broken Components (this could be an IC mask defect
or a silicon-to-metal or a metal-to-package connection
problem)
Burnt-Out Chip Wire
Corroded Connection Between Chip and Package,
Chip Logic Error
89
Fault Manifestations
Non-Permanent. Non-permanent faults are present
only part of the time, and occur randomly.
Transient faults- Cosmic Rays , ionized Helium atoms ,
Air Pollution (causes temporary wire short or open)
Intermittent faults-Loose Connections , Aging
Components (logic gate delays change and relative
signal arrival times therefore change) , Hazards and
Races in Critical Timing Paths (from bad design),
Resistors, Capacitors, and Inductors Vary (causing
timing faults) ,Physical Irregularities (a narrow wire,
which causes a high resistance connection), Electrical
Noise (causes memory cells to change state.
90
91
92
94
95
96
98
101
102
RAM testing
Do not contain fixed data.
No initial input output relationship to test and confirm
operation.
Two aspects are considered
1.Some initial tests which attempt to confirm that each
individual RAM cell is capable of being written to
logic 1 or 0 and read from.
2.Some online test to confirm overall RAM structure is
continuing to operate correctly.
103
Faults in RAMs
One or more bits in the memory stuck at 0 or 1.
Coupling between the cells that a transition from
0 and 1 causes a change in another call-pattern
sensitive fault.
Unwanted charges in dynamic RAMs resulting
into changes in data.
Inadequate charging leading to data changes.
Temporary faults caused by external interference.
104
RAM testing
Marching patterns
Walking patterns
Diagonal patterns
Galloping patterns
Nearest neighbor pattern
105
106
107
108
ROM Testing
ROM testing differs from RAM testing, in that the
correct data that the ROM should contain is already
known.
The SAF model used for ROMs is sometimes a
restricted SAF model in that only undirectional
SA faults can occur, meaning that any given chip will
either have only SA0 faults or only SA1 faults.
This is based on a ROM fault model where only
opens occur, which are missing connections resulting
in either all SA0 faults or all SA1 faults.
110
ROM Testing
Test mode resources Scan in of test data to shadow register and scan out
of test response data.
Replacement of normal PROM array output by
data bits loaded into shadow register.
Loading of normal PROM array outputs back into
shadow register for subsequent scan out and
verification.
111
ROM Testing
The preferred ROM testing method is to cycle
the ROM through all of its addresses bit stream
at the ROM outputs using a linear feedback shift
register (LFSR) in the automatic test equipment
(ATE).
This system is based on cyclic redundancy codes
(CRCs).
112