High Speed AD Convertors Understanding Data Converters Through SPICE
High Speed AD Convertors Understanding Data Converters Through SPICE
Alfi Moscovici
.OXZHU$FDGHPLF3XEOLVKHUV
1HZ<RUN%RVWRQ'RUGUHFKW/RQGRQ0RVFRZ
3ULQW1.OXZHU$FDGHPLF3XEOLVKHUV
$OOULJKWVUHVHUYHG
1RSDUWRIWKLVH%RRNPD\EHUHSURGXFHGRUWUDQVPLWWHGLQDQ\IRUPRUE\DQ\PHDQVHOHFWURQLF
PHFKDQLFDOUHFRUGLQJRURWKHUZLVHZLWKRXWZULWWHQFRQVHQWIURPWKH3XEOLVKHU
&UHDWHGLQWKH8QLWHG6WDWHVRI$PHULFD
9LVLW.OXZHU2QOLQHDW KWWSNOXZHURQOLQHFRP
DQG.OXZHU
VH%RRNVWRUHDW KWWSHERRNVNOXZHURQOLQHFRP
In loving memory of my mother Marieta
Contents
Acknowledgements
Preface
A/D TERMINOLOGY 1
FLASH A/D 45
SAR A/D 95
Bibliography 193
Index 227
Acknowledgements
If it seems unduly clear to you, you must have misunderstood what I said.
Alan Greenspan
I would like to thank many of the colleagues that served as catalysts for
this work. I am particularly thankful to Dr. R. Schmidt and Dr. G.S. Ostrem
for their constructive comments in reviewing the manuscript, to Mr. S.
Hisano, Mr. P. Kalthoff and Mr. B. Runco for their stimulating
conversations during my stint at S.P.T. Messrs. S. Michaels, S. Sacks, W.
Grandner, C. diFazio and Dr. A. Grebene were some of my best mentors.
Those friends and numerous others with whom I spent many hours working
on A/Ds have made the world of data converters more fascinating to me
along the years.
Above all to my wife Michal my daughters Miri and Dana and my dad
Yacov go special thanks for being a constant source of encouragement
during the many hours that went into preparing this book. The only regret I
have is that this work took valuable time away from them.
The Analog to Digital Converters represent one half of the link between
the world we live in - analog - and the digital world of computers, which can
handle the computations required in digital signal processing.
These devices are mathematically very complex due to their nonlinear
behavior and thus fairly difficult to analyze without the use of simulation
tools. Fortunately the availability of home computers, mathematical and
circuit simulation programs can make this task easier. This book attempts to
present the subject from the practicing engineer rather then the academic
point of view so a practical approach is provided to the topic.
Another reason for this book stems from the user’ need to understand the
key limitations in converter accuracy. The majority of converters used today
are integrated circuits (I.C.) where the user does not have access to internal
nodes. Some of the high accuracy converters require laser trim in order to
attain higher matching of the internal components. The trim process is a
mechanism used to alter a resistor value so it can match another resistor
performing a similar function elsewhere in the IC. The trim process damages
the resistor physical structure and in time, the matching obtained initially is
reduced. The aging process is therefore the reason that A/D performance
degrades over time.
Possibly the most important block in systems that require fast A/D
converters is the track and hold or sample and hold amplifier. This device is
the subject of Chapter 4. As in previous chapters we establish a simple
model for this component We also examine the matching effects of multiple
track and hold channels on the dynamic behavior of time-interleaved A/D
converter’s performance.
The earliest and very likely the most efficient A/D converter is based on
the binary search algorithm. This topology known as the successive
approximation A/D is reviewed in Chapter 5. Here the theory of operation of
the successive approximation A/D is reviewed followed by examples, which
explore the speed/accuracy tradeoffs.
1. INTRODUCTION
To set a baseline for comparing A/D converter performance we need to
define the major static and dynamic parameters. Along the way we will also
outline some of the methods used in characterizing these specifications.
Before defining the terms it is important to note that some converters have a
defined minimum sampling speed which means that the conversion
command is supplied at that minimal rate regardless of the analog input
signal rate of change. The main reason for the minimum sampling rate is the
droop rate of the track and hold amplifier preceding the A/D. This limitation
will be farther explained in chapter 4.
As the name implies, the static specifications are parameters that are
measured under DC input conditions (DC input voltage).
In contrast with the static characteristics, the dynamic parameters are
measured with analog input signals that vary in time. To make things
unambiguous, throughout the book we specify the sampling rate in SPS
(samples/second) while the analog input frequency is expressed in Hz.
deviation. The normalized error is called the relative error (as opposed to the
absolute error, which is the actual measured difference).
This is the difference between the theoretical and actual input voltage
required to obtain the transition from code 0000..00 to code 0000..01.
It should be noted that some manufactures define the offset at the mid-scale
of the converter’ range (when the input is symmetric around 0V). The
assumption is that the converter’ transfer curve is described by a straight:
where G is the slope of the line and is the offset.
This parameter indicates the slope difference between the lines connecting
the theoretical and actual transitions of the full scale extremes - transition
0000..00 to 0000..01 and transition 1111..10 to 1111..11. Theoretically the
line should span from 0.5 LSB above zero where the first transition occurs
and 1.5 LSB below the full scale (remember that the last code 1111..11
occurs 1 LSB below full scale and the last code transition is 0.5 LSB below
that point). The ratio of the span between the first and the last actual codes
and the ideal difference is the gain error (usually expressed as a percentage
of full scale).
This is the worst case deviation of codes from a straight line connecting the
ends of the full scale (from -FS to +FS).
Figure 1 – 1 is an example of the transfer curve for a 3-bit A/D converter.
The dotted line represents the theoretical transfer curve of the converter. The
heavier line represents the actual input voltage required to obtain the output
code transitions shown on the Y-axis. Since we are considering a 3-bit
converter, we expect eight output levels from 000 to 111. Counting
from one end of the full scale to the other we observe seven transition points
or for the general case If we assume in our example that the
full-scale range is 2V, the corresponding LSB weight is 0.25V(=2V/8)
Next, we illustrate the end-point normalization process for the ILE
calculation as it applies to our example. The data is presented in table 1 – 1.
This end-point normalization process defines the equation that connects the
full-scale extremes as follows:
A/D Terminology 3
Figure 1-1. Transfer curve for a typical A/D - Digital out vs. analog in
and
4 Chapter 1
Based on the previous definition and equation 1.2 we calculate the gain error
to be:
where and are the slope and intersection of the linear regression
such that the deviation from the line – S - is minimized. In this case the end
points of the full scale do not have zero error. Applying this definition to our
example and using the theoretical points as reference we calculate the best
square fit: and The maximum ILE for the
A/D Terminology 5
best square fit occurs at the last code (110 to 111) and is –0.135714V or -
0.543 LSBs. The last results can be calculated using any mathematical
program that has routines for linear regression.
Obviously the two normalization techniques just defined are significantly
different from each other. Using the end point linearity definition the ILE is
almost LSB while the ILE for the best-fit definition is of 0.54 LSB.
This illustrates that the lack of standards in converter specifications may
mislead the user in perceiving wide variations in performance due to
“specmanship”.
Lastly, since the ILE is an indication of the converter transfer
characteristics under dynamic conditions it is evident that the best square fit
is a better indicator of the converter’s harmonic distortion (see section - How
does the linearity affect the converter dynamic behavior? - below)
This is the actual difference between two adjacent codes minus 1 LSB. In an
ideal A/D adjacent code transitions are 1LSB apart resulting in a DLE of 0
LSBs (DLE = 1LSB – 1LSB = 0LSB). A converter is called monotonic when
it exhibits an increasing output code for an increasing input voltage. When
the DLE is non-negative the monotonicity of the converter is guaranteed.
In a typical converter, not all the codes are equal in width. This width
variation reflects the linearity errors. The linearity errors of an A/D
converter are therefore shown along the X-axis.
Figure 1 – 3 also shows that the code transitions as displayed on an
oscilloscope are not very crisp and well defined. These uncertainties (gray
areas) on the X – axis represent a dynamic error called jitter (see also
dynamic parameters below).
This is the ratio of the square root of the sum of the squares of the first most
significant harmonics (usually from second to the fifth) to the fundamental
output signal This parameter is generally expressed in dB.
This is the ratio of the remaining harmonics (not accounted for in the THD)
to the fundamental. This parameter is usually expressed in dB.
8 Chapter 1
The relation between TDE and THD and SNR is given by:
This is the difference (in dB) between the RMS input signal and the highest
frequency spur at the output of the A/D. Figure 1 - 4 shows an example of
how SFDR is measured in an FFT test. In our example the SFDR is
approximately 50 dB.
Due to noise, the A/D converter response to the conversion command does
not occur at a known time instance. Aperture uncertainty or jitter is defined
as the short-term, non-cumulative variation of the significant instants of the
sampling signal from their ideal position in time. The error manifests itself
as an edge variation of the sampling signal relative to the analog input. A
graphical illustration of this phenomenon is shown in figure 1 – 5. Since
most high-speed converters employ a track and hold amplifier in front of the
A/D, figure 1 – 5 refers to the two regions of operation as the track and hold
regions. The sampling instance in figure 1-5 occurs on the falling edge of the
track/hold command when the analog voltage is being held prior to being
processed by the A/D converter. The highest probability of the sampling
edge is shown as the darker region.
There are two reasons for this uncertainty – amplitude noise causing
threshold of the sampling device to fluctuate and phase instability of the
sampling clock.
10 Chapter 1
When dealing with high input frequencies the jitter causes noise-like
distortions to the sampled signal.
Since aperture uncertainty is a random, noise-like phenomenon, it
contributes to a reduction in SNR. References 33 and 37 analyze the
contribution of aperture uncertainty to the reduction of SNR.
The following equation predicts the relation between aperture uncertainty
and SNR:
In the equation represents the RMS aperture jitter and f is the input
frequency. A graph showing SNR degradation due to aperture uncertainty is
shown in Figure 1- 6.
A/D Terminology 11
The graph shows for example that an A/D with an aperture uncertainty of 50
psec RMS error, tested at an input frequency of 10 MHz will be limited to an
SNR of approximately 50 dB. Thus if we test a 10 bit A/D that is expected to
have SNR of 62 dB due to quantization error, it is important to limit the jitter
to less than 10 psec RMS error:
condition is not observed, the Fourier transform of the sampled signal gets
distorted. This occurs because frequency components exceeding the Nyquist
frequency are folded back into the input band. This phenomenon makes the
reconstruction of the input signal impossible. To mitigate aliasing, it is
important to choose the relationship of input to sampling frequency carefully
(29,39).
A graphical illustration of the aliasing phenomenon is shown in figure 1 – 7.
Figure 1-7. Frequencies above Fs/2 are aliased due to the sampling process
Given the sampling frequency of the converter (Fs) and the analog input
frequency the aliased frequency can be found as follows:
For example if the converter sampling frequency is 1GSPS and the input
frequency is 450 MHz, the fundamental frequency of the reconstructed
output is found at 450 MHz. The second harmonic is expected to be at 900
MHz. Since this frequency is higher than the Nyquist frequency (=500 MHz)
and the calculated R=900 MHz it means that the second harmonic will be
A/D Terminology 13
aliased. The corresponding frequency for the second harmonic will be found
at:
The third harmonic will be found at 350 MHz
and therefore the tone will be found at 350 MHz.
1.2.7 How does the linearity affect the converter dynamic behavior?
The sheer operation of the A/D transforming a smooth input ramp into
discrete levels through the quantization process creates harmonics. This is
known as quantization noise. For a perfectly linear A/D, the quantization
noise limits the SNR performance level to:
That is, if the input signal extends to the full-scale range of the converter
the noise caused by the quantization process results in dB
below the fundamental. In the equation, N represents the number of bits. For
example in a 10-bit device, the noise floor is 61.96 or approximately 62 dB
bellow the RMS value of the input signal. (9,11,12,14,17,19).
The difference between the equations is in the fact that ENOB is always
specified as a function of frequency. For example a device with
has approximately 10 effective bits at the specified frequency.
The static parameters: offset, gain, INL, DNL are the easiest to test.
These parameters are measured under DC input conditions and therefore are
constant for a given converter. Figure 1 – 2 illustrates a way of evaluating
these DC characteristics and additional methods are described in the
references 9,15,18,32.
The dynamic test methods for evaluating SNR, THD, SFDR, SINAD
(TDE) are discussed at length in references 11, 12, 13, 14, 15, 17, 18, 19, 27,
28, 29, 30, 32, 37 and 38. The dynamic tests however are more elaborate and
require significantly more care to accomplish than the static measurements.
A/D Terminology 15
The two test methods available for dynamic A/D evaluation can be
categorized as follows:
• the beat and envelope tests which are coherent tests and
• the noncoherent windowed tests
A common setup used for A/D coherent dynamic test is shown in figure 1-8.
In the beat test method the sinewave-input signal is offset in frequency from
the sample frequency. The beat frequency is selected such that on successive
cycles of the sampling signal, the output “walks” through the input signal.
When the reconstructed output signal is analyzed, the beat frequency is
observed. A graphical example of beat frequency test is shown in figure 1-9:
16 Chapter 1
The rectangular window while not the best in the frequency domain due
to limited attenuation of its side lobes ( sin(x) / x), is the easiest to visualize.
There is no weighing function that is given to the various time-data and
therefore all points have the same weight. This is different than the other
filters mentioned above where each time-data-point is given a different
weight through the multiplication operation to accomplish the
windowing function (39 and 43).
Let us illustrate how the width of rectangular filter can affect the results
of the FFT test in a perfect A/D. In our example, we consider a perfect A/D
with infinite resolution. The output of the converter is analyzed in a FFT
using a 4K-point time record. The time record is then subjected to truncation
of the tail data points and padded with zero (this is the operation of adding
zeroes to the tail of the sequence). In other words the time record is shorten
from 4K points one point at a time and the original data is padded with
zeroes. This is equivalent to the shortening of the observation time
Plotting the dynamic performance – TDE – as a function of the number of
truncated tune records results in the graph outlined in figure 1 - 10.
Figure 1-10. The truncation error caused by the rectangular window affects the Signal-to-
Noise-and-Distortion (SINAD)
20 Chapter 1
The same graph outlines as well the truncation error for a 1K FFT.
Several things are evident in the graph:
1. The slope of the graph is dB/decade. For a 4K FFT with a device
with infinite resolution and with 0.1% zero padding the
dB. This means that if four of the time data points are set to zero (0.1%
of 4096 points) the performance is reduced to less than 9 effective bits!
2. For a 1K point FFT with the same infinite resolution A/D, the SINAD is
12 dB lower than the 4K FFT. Again with 0.1% truncation and zero
padding limits the SINAD to approximately 42.6 dB (or less than 7
effective bit performance).
This example demonstrates the importance of careful choice in the number
of data points for a noncoherent test of A/D and the result of such test when
the data is truncated and zero padded. In general when a user is interested in
improving the noise floor observability in any A/D converter the time
domain record needs to be increased. The noise floor for such a converter is
improved to:
amplitude the fundamental bin is found. The other bins are then amplitude-
normalized to the fundamental bin and the results are expressed in dB. Next
the reshuffling of the frequency bins occurs (to account for aliasing) and the
harmonics bin locations are found and the TDE is calculated. If the number
of time data points is small then the frequency resolution is reduced.
However since TDE takes into consideration all frequency bins for the TDE
calculation the result is accurate regardless of the frequency resolution. The
results of the FFT are shown in this example at the end of the figure 1 - 10 as
follows:
PROBLEMS
1. With reference to table 1-1: recalculate the 3-bit converter offset, gain
and linearity (both end-point and best square fit) if the input voltage at
the transition 100 to 101 is:
i. 0.95V
ii. 0.88V (note that in this case the converter is non-monotonic).
1. INTRODUCTION
The comparator is the most basic component used in the architecture of
an A/D converter. In fact, it represents itself the simplest form of an A/D
converter. This device compares an analog input to a reference voltage and
produces a digital output of zero or one depending on the position of the
input relative to the reference. If the reference is connected to the negative
terminal of the comparator and the analog input is connected to its positive
terminal then when the signal is higher than the reference its digital output
(OUT) is high and its complementary output (OUTB) is low. This means
that the comparator is an A/D converter with one bit of resolution. We
should emphasize that the two terms - resolution and accuracy - should not
be confused. Resolution represents the number of distinct digital states of a
converter while accuracy is defined by the precision with which these states
are defined. The comparator for example has a resolution of one bit – it
produces only two output states. The accuracy of the comparator for
discriminating between the two states depends on attributes such as gain,
slew-rate limitation and input noise. For example, if the output is ECL
compatible, the output swing is expected to be approximately 1 V to
–1.8 V). With a gain of 60 dB (gain of 1000 V/V) an input of 1 mV is
expected to result in the full ECL output swing required. If the gain is less
than 60 dB, an undefined output state will result. This can cause the output
of the comparator to possibly be in the wrong state or an undefined state.
26 Chapter 2
Figure 2-1. An analog comparator: (a) electrical schematic and (b) symbol
An additional limitation, namely the slew rate at each of the tail current
nodes is included with the addition of the capacitance for each stage.
With a current of 5mA and a capacitance of 0.5 pF, the emitters’ node is
limited to a slew rate of:
when both transistors of the differential pair may shut off during a transient
if driven from a high impedance node.
This states basically that the time-domain limitation occurs in the analog
front end of the comparator; the digital circuit behavior is usually treated as
a simple delay (digital delays are purely additive in the time domain).
Figure 2-2. Differential pair transconductance curve: CMOS pair (solid line) and Bipolar pair
(dashed line)
30 Chapter 2
• The diodes D8 and D9 enable the circuit to spend a well defined time in
slew limited mode: the time needed for the current discharging the
capacitor CSR to switch from one diode to the second. The diodes allow
the current to switch almost instantaneously so that the maximum
current and the capacitor CSR control the slew rate. In our case the
maximum slew rate is:
Figure 2-4. Small signal Open-loop gain of the comparators in figure 2-1 and 2-2
For example with Vinp moving from to and with Vinn held
at 0.45V the comparator has an input overdrive voltage of 50 mV.
This describes the linear region of the circuit. Solving the equation, we
obtain:
From this equation, we can find the time required to switch from one
diode being “ON” until the second diode turns “ON”. If the input step is
instantaneous then the time is calculated to be:
From node int to the latch, the signal is delayed by an amount of time
equal to the time constant psec. This time is actually the
majority of delay time while the time calculated in the equation above is a
very short period of time while the current switches from one diode to the
next (in our case 140 psec). This represents a small fraction of the overall
delay time of the comparator and is the exact period of time that makes the
comparator delay dependent on the amount of overdrive. The case just
analyzed is a relatively simple case where is a voltage step. To
calculate the delay for a different function than a step, the equation becomes
significantly less manageable. For this reason, from this point on we will use
only the Spice macro-model only rather than an exact symbolic
mathematical analysis. A more complex comparison of transient behavior
can be obtained through SPICE simulations between circuit of figure 2 – 1
and our macro-model. This comparison establishes the time delay
dependency on overdrive conditions.
For this test, lab measurements are performed on a more complex IC
device available commercially (SPT9689 - a subnanosecond comparator
manufactured in a process with The results are summarized
in figure 2 – 6 below.
The Comparator 35
In the graph, the horizontal scale is the amount of overdrive voltage in mV,
and the vertical scale represents the propagation delay in picoseconds. The
various curves are:
• is the propagation delay of the transistor circuit of figure 2 - 1
• is the propagation delay of our macro-model in figure 2 - 3
• the propagation delay measured for the commercial device
(SPT9689).
The graph shows that the proposed model is in good agreement with the
actual measured lab data for commercial comparator (especially for
overdrive voltages of 10 mV or more).
The graph shows that the reconstructed pulse is distorted especially close
to the top and bottom of the waveform where the corners become round. The
reason is that at the top and at the bottom, the amount of overdrive different
for the rising and the falling edges of the signal. For example at there is
more overdrive going up than at time when the signal is going down. In
the middle of the pulse however, where the overdrive voltage exceeds the
15-20 mV of overdrive the delays are almost constant. For this reason the
reproduced pulse shows rounded comers due to low overdrive conditions.
The distortion in this example is limited to overdrive voltage and not to
slew-rate limitation (the input signal has a slew-rate of 1 V/nsec while the
comparator is limited to follow slew-rates of less than 10 V/nsec). This
example illustrates how a system considered to be linear can distort
particularly small signals, while for large signals it is more predictable and
linear. This is not a trivial or predictable behavior and while counterintuitive
is a very critical consideration in the design of an A/D converter.
The Comparator 39
Figure 2-9. The original pulse (dark) is distorted due to the increased delay at low overdrive
voltage (light)
Our SPICE simulations have the latch function modeled with an edge-
triggered flip-flop, with 10-mV noise margin and propagation delay of 1
picosecond. Obviously this is an unrealistic value for any technology
available today, but the aim of this book is to concentrate on the analog front
end behavior of the comparator and not delay fluctuations caused by digital
blocks.
Finally our model contains the voltage controlled current source
resistor and diode D11 in front of the latch for the level shifting
required by U1. This is required so the voltage on the node pole is shifted to
become an ECL logic level. The voltage constitutes the ECL threshold
level.
The hyperbolic tangent for the bipolar differential pair (see reference 4),
is based on the diode behavior (current versus voltage). The 0.06
denominator is merely the term 2 · and is an approximation derived by
using the thermal voltage (approximately 26 mV at room temperature).
The benefit of using the hyperbolic function as explained above is that it
can model a limiting transfer function and at the same time it is a well-
behaved function (a continuos function with continues derivatives).
For this reason, an attempt is made to observe the adequacy of modeling
a CMOS comparator using a similar model as that seen in figure 2 - 3 but
with new component values. Clearly a CMOS transistor has a widely
different transfer function than a bipolar transistor (the relation between
current and voltage is quadratic rather than exponential) and for the same
current the transconductance of a CMOS transistor (gm) is much lower than
that of a bipolar transistor (see again figure 2 – 2). To model this difference,
the GM used in our CMOS comparator model is:
The Comparator 41
The fact that our model closely approximates the transistor model and
actual measurements of the commercial device indicates that this is an
acceptable macro-model, which can be used both mathematically as well as
in Spice simulations. The model describes closely not only the linear
behavior (BW) but also the nonlinear effects (SR).
SUMMARY
• the nonlinear GM in the model has a multiplier for the TANH function
equivalent to the front end differential pair tail current
• the slew rate is then modeled by picking a capacitor CSR such that:
To lengthen the amount of time of slew rate condition the voltage sources
V2 and V3 can be used.
• Rg is chosen to create a pole with CSR such that the time constant of the
pole is only a fraction of the pole created by and the delay
associated with it is insignificant.
• E1 is chosen so the open-loop gain of the comparator is:
• and are chosen to create dominant pole such that which
is the specified delay time for large overdrive condition in the
manufacturer’ data sheet.
• The comparator model can be enhanced to account for non-symmetric
slew rates on the rise or fall times with the help of a constant current
source. When this option is considered the comparator should include a
voltage source at the input that accounts for the offset of the circuit. The
magnitude of this source is equal to atanh
44 Chapter 2
PROBLEMS
3) Repeat problem 1 for the case that the open loop gain of the converter is
46 dB and all poles remain unchanged. Does the result change?
1. INTRODUCTION
The flash A/D has the simplest topology among all converters. Of all
converters, this is also the fastest. The flash technique is also known as the
parallel-approximation.
In this chapter we examine the “signatures” caused by various errors in
this converter and its behavior under practical physical conditions such as
input frequency, slew-rate conditions, noise, etc. The idea is to learn how
these limitations lead to a particular signature and how can the signature be
explained physically and mathematically.
To attain the high conversion speed the flash converter uses a parallel
array of comparators sampling the analog input simultaneously. Since one
comparator is required for each quantization level the number of
comparators is doubled for each additional bit of resolution. The drawback
of the technique is a significant increase in power dissipation in comparison
to other A/D topologies.
An N bit flash converter requires an array of comparators. The
analog input voltage is connected to one input of the comparator array while
the other input of each comparator is connected to fixed reference voltages.
These references represent equidistant voltage levels corresponding to
the switching points between the voltage extremes of the A/D converter
input range.
46 Chapter 3
In the figure the analog input is equal to 0.2V (as in table 3-1).
Transistors Ql and Q2 represent block X4 in the table while Q3, Q4 are the
equivalent of X5 and so on. In this example the comparators and
thermometer-decoder are combined in one operation.
For the case depicted in figure 3-2 transistors Ql, Q4, Q6 and Q8 are
“ON” resulting in outputs “0”, “2” and “3” to be “LOW”. Output line “1”
however is the only line that is “HIGH” as a result of transistors Q2 and Q3
being “OFF”. The result is therefore a one-and-only-one of 7 lines at a logic
“1”.
As shown in figure 3-1 the last step in obtaining the A/D output code is
the conversion from the thermometer into a binary code. This last function is
conceptually trivial and it is usually performed by simple combinatorial
logic (OR gates).
The dynamic operation of the logic can be fairly complex however,
requiring careful delay analysis of the timing in various signal paths. Errors
can result for example from comparators that are not being tripped
simultaneously due to layout errors or by metastable states in the latches. In
this book we will not elaborate on the subject of logic timing because the
digital circuit complexity is limited to an analysis of propagation delays
through this combinatorial logic. This task is a fairly mundane given the fact
that delays in the digital path are additive. Analysis of various digital-
decoding techniques, race factors, metastable conditions in comparator
arrays, and latches can be reviewed in references 3,4,8,24,26,34 and 35.
The comparator differential outputs OUT and OUTB have ECL logic
levels and are connected to edge triggered latches U5 through U11 to obtain
the thermometer decoder.
With reference to figure 3 – 3 notice that the output (out) of the lower
comparator is wired-or with the complementary output (outb) of the
comparator above. These connections implement the thermometer decoding
in our converter so a one-of-seven code is achieved when the analog input
voltage crosses one of the threshold voltages established by the reference.
The comparator-array response “is frozen” in time after the clock signal
switches to a logic low. In this example, the thermometer to binary decoding
operation is done in a “brute-force” fashion using three OR gates U2, U3 and
U4 to attain the three binary output codes.
The major point of interest in the simulation is the behavior of the analog
front end of the converter rather than the decoding circuitry. For this reason
in our SPICE simulation, the latches propagation delay is set to 1 psec (so
the delay contribution of the latch is negligible). Using an input ramp
moving from minus to plus full-scale and performing a transient analysis
with the SPICE simulator, we obtain the response of the converter illustrated
in figure 3 - 4.
It should be noted that the gain of the comparator used in our example is
relatively high for a three bit A/D (in excess of 60 dB). A suggested exercise
for the reader is to analyze what happens when the comparator gain is
reduced (problem 3 – 1).
52 Chapter 3
Figure 3-4. The decoding mechanism used for the 3-bit flash A/D
Flash A/D 53
In the simulations, the comparator and latch are modeled as a single block
called C_LAT1. The components used in C_LAT1 are the same components
as in the previous chapter. The columns are stacked on top of each other so
54 Chapter 3
the bottom of the first column’s reference is connected to the top of the
second column reference making it a continuous network. Similarly the top
of the last digital output is “wired-or” to the bottom of the comparator of the
next column. The outputs of all columns are decoded again as in the
previous example using the OR gates Ul through U6. Finally to reconstruct
the output data for the FFT analysis we include the D/A – X7 - converter
following the A/D.
The dynamic performance of the 6 bit A/D is tested by performing FFT tests
at several input frequencies and measuring the SINAD (or TDE) defined in
chapter 1. In all our FFT tests we take advantage of the high speed of the
comparator by employing a clock with period of 1nsec and a 50% duty
cycle. This circuit file is supplied in Appendix A.
Our investigation of dynamic performance consists of an envelope test as
explained in chapter 1. The sampling frequency for the device is set at
1GSPS (Giga-samples/second). Since we intend to minimize the
computation time the FFT analysis is limited to 16 points. As a benchmark
for simulation run time: when using a 450 MHz Pentium III computer with
128 MRAM the transient analysis completes in a little more than one minute
(68.4 seconds) illustrating once more the benefit of using the comparator
macro-model developed in chapter 2. Simulating the same A/D with actual
transistor models would undoubtedly have taken several hours for a similar
dynamic test given the large number of nodes.
Several points should be made about the FFT test. With 16 time points
the beat frequency is calculated to be Using 16
FFT time-points results in only 8 harmonics. Each harmonic bin is 62.5 MHz
wide so the frequency resolution is fairly poor. It is interesting to note that at
frequencies of approximately 150 MHz, the resulting SINAD is about 6 dB
lower than at low frequencies. This means that the effective number of bits –
ENOB – is about one bit lower. This represents the large signal bandwidth of
the converter. To present the SINAD as a function of analog input frequency
we vary the input in increments of 62.5 MHz from 62.5 MHz to 437.5 MHz.
The resulting SINAD (assuming no static errors for the 6-bit converter) is
illustrated in figure 3 – 6. As expected the SINAD decreases as the input
frequency increases due to the limited slew-rate and bandwidth of the
comparator.
Note: remember that having poor frequency resolution in TDE calculation
does not limit the accuracy of the result (all harmonics are used for SINAD).
Flash A/D 55
Figure 3-6. Dynamic performance of the 6-bit flash converter vs. input frequency
in a bipolar differential pair, the offset can result from lithographic variations
or topographic differences in the transistor’s neighborhood. As a rule, this is
a static error. In CMOS pairs, the offset can originate from similar reasons or
from dynamic motives. For example if the input pair is subjected to large
overdrive conditions for long periods of time prior to being switched to the
reverse condition it can show large threshold voltage shifts. This makes the
comparator exhibit an offset that depends on the overdrive voltage (ref. 44).
In the first case, we examine what happens if an offset error occurs in the
comparator detecting the LSB (the bottom comparator in the array). Figure
3-7 (a) shows an exaggerated time domain reconstruction and clearly
illustrates that this offset causes the reconstructed sinewave to be distorted at
the bottom of the sinusoid. If the exact same error occurs in the comparator
array is in the middle of the array (the comparator located at mid-scale) than
the time domain distortion is observed at mid-scale as shown in figure 3-7
(b).
The first obvious question is how does the linearity distortion behave in the
frequency domain and how does it affect the SINAD? To answer these
questions we perform a SPICE transient analysis and analyze the associated
FFT. The harmonic content of the FFT analysis for the two cases are
summarized in table 3-2:
From table 3 – 2 we notice that for all practical purposes there is very
little difference in SINAD between the two cases (0.76 dB is equivalent to
9.1% difference). The error observed is mostly due to the limited resolution
and round off in the FFT calculation. The reason for the harmonic
differences is that in the LSB case, the sinewave is distorted at the bottom
tip, while in the MSB case it is “chipped” in the middle. Given the time
domain difference between the two cases it is reasonable to expect different
harmonics distribution. However, since the amount of energy contained in
the error is equal in both cases the resulting SINAD is roughly
the same.
For comparison purposes the same converter with no DLE errors has a
dB at the same input frequency
From this example we can conclude that in a flash A/D converter, the
location of a comparator-offset error affects the SINAD very little. The
reason for this independence results from the fact that each comparator
determines its output based on its own reference level making the amount of
discontinuity in the transfer curves of the two cases very similar.
It will be seen in later chapters that other A/D topologies have
significantly different SINAD depending on the error location along the
quantization-decision chain.
The figure illustrates how the comparator array is partitioned for a 6-bit
converter. The 63 comparators are divided into four columns each containing
16 comparators. Bearing in mind that long conductor lines on the chip have
large parasitic capacitance to the substrate and finite line resistance it stands
to reason that the delay of the signals across the chip can be significant in
comparison with the frequencies of interest. Therefore the routing of the
clock and analog signals in a flash converter needs careful consideration.
Flash A/D 59
Typically the analog input is routed in close proximity to the clock line so
minimum delays occur between the two signals. By observing this
requirement, the layout guarantees that when the comparator makes a
decision the input signal has been delayed for the same amount of time as
the latch command.
Similarly the digital decoding of the columns has to take into
consideration the delays caused by the parasitics and has to align the
decision time for the column so all comparators in the column have
sufficient time to propagate their decision. An equivalent constraint is put on
the decoding of the columns.
Given the delays between columns due to parasitic capacitance we ask
how does this delay affect the dynamic performance (SINAD).
As a practical case we consider a converter using a high-speed BiCMOS
process with interconnects in metal or silicided poly material. In our
example we assume that the metal layer has a conductor-substrate
capacitance of and the poly has a conductor-
substrate capacitance of
Assuming that the analog input and the clock lines have a width of
and the IC length is 5 mm, the trace length has to take into account not only
the die length but also the interconnections needed to access each
comparator. With a total conductor length of actual column
interconnects inside the comparators) we calculate the metal
line to have the following characteristics:
Capacitance:
Figure 3-9. IL errors in a 6-bit A/D when the column delays are 0.7 nsec
Flash A/D 61
The major change to the original model is the addition of current source
4mA. This change causes the negative slew rate to be limited to 2 V/ nsec
while the positive slew rate is increased to 18 V / nsec. In effect the original
slew rate of 10 V/nsec is changed by As a result of the addition
of I1 the input of the comparator shows an offset voltage of 65
which is compensated by the voltage source Vos in our model.
In figure 3-6 we have seen already that at frequencies that are more than two
decades below the comparator slew-rate limitation (10V/nsec) the original
converter lost more than 20 dB in dynamic performance from its
performance at low frequency. In other words when the comparator reached
its slew rate limitation the distortion of the entire converter has become so
bad that the converter lost much of its dynamic range (from approximately
37 dB to less than 15 dB).
For comparison purposes figure 3-11 presents the result of FFT tests on two
variations of our 6-bit A/D:
With frequency of 312.5 MHz the input slew rate is approximately 2 V/nsec.
The original comparator can follow this input slew-rate but the comparator
used for the second case can only react to signals limited to 2 V/nsec. For
this reason we can expect that at very low frequencies (much below their
slew-rate limit) both converters will have equal SINAD.
In the second case, since the converter will severely distort frequencies
above 312 MHz we expect to have significantly reduced SINAD compared
with the first case. The two converters studied in our example show equal
dynamic performance at input frequency of 3.90625 MHz. It is interesting
also to see that even at low input frequencies the slew rate
limitation of the comparator reduces the SINAD compared to the original
device. This is not an unexpected result given that any amplifier will begin
distorting a long way before it reaches its the slew rate limit.
The flash A/D examples examined in this chapter represent the major
sources of error for this converter topology. To see the effects of dynamic
loading the comparator model can be enhanced by the addition of a small
capacitor across INP and INN in figure 3 – 10. With a capacitor of 0.1 pF
the dynamic loading of each comparator will be approximately at 160
MHz or given the comparator DC resistive ladder
(see problem 7).
64 Chapter 3
SUMMARY
PROBLEMS
6. Repeat the last example of the chapter with a 6-bit converter that has
only one comparator with nonsymmetrical slew-rate limitation in the
middle of the ladder and calculate SINAD at
1. INTRODUCTION
The track and hold amplifier (THA) - also known as the sample and hold
(SHA), is a very important component in systems where high speed A/D
converters are used.
Having just discussed the flash A/D converter it is appropriate to
emphasize that the flash is the only A/D converter that requires no front end
sample-and-hold prior to the converter itself. The reason is that the analog
input signal is processed simultaneously by all the comparators, which in a
flash converter are designed to be very fast. The comparator array outputs
are latched as soon as the comparator array has completed the acquisition of
the input signal and the latched data is decoded subsequently by the digital
decoder. The use of a THA in front of a flash A/D can alleviate the effects
caused by delays between adjacent columns illustrated in the previous
chapter. That is, the THA can hold the analog input at a constant level while
the clock signal propagates through each column without allowing the
analog signal to vary while the clock reaches each comparator. In other A/D
topologies however, sequential processing takes place and consequently, the
maintenance of a constant level at the input is required during the conversion
process. Most A/D converters perform the conversion in what is called a
“pipeline sequence”. This means that a coarse approximation of the analog
signal is performed first, followed by progressively finer approximations.
Figure 4 – 1 depicts the most general topology for an A/D converter. The
sequence of events taking place is:
68 Chapter 4
The figure shows that the THA requires a certain amount of time for the
output to reach its final value. This is called the acquisition time and is the
time needed by the amplifier to settle given its bandwidth and slew-rate
limitations. Some of the major errors characteristic to the sampling event are
highlighted in figure 4-2. Figure 4-2 does not show the transients associated
with the transition from one mode to the next (track-to-hold or hold-to-track
mode). By and large these transients from one mode of operation to the next
70 Chapter 4
are different from each other. The reason originates from the fact that the
feedback factors around the amplifier are vastly different from each other in
the two phases of operation. Let us assume that the amplifier used for the
THA has an open loop gain If the track mode has a feedback factor
in the track mode and a feedback factor in the hold mode than
the resulting gain-bandwidth products are and
respectively. Generally resulting in different transients in
track versus hold mode.
Mathematically, the sampling process of the THA can be described with
the help of two step functions of reversed polarity, delayed by an amount of
time equal to the hold time Th. Using to denote a step function in the
time domain results in a time domain description of the THA as:
This equation tells us that the THA output is equal to its input between
time and Th (the hold time) and is zero elsewhere. This equation assumes
that the acquisition time is instantaneous and while this is never the case (it
is physically impossible to acquire the signal in zero time) our
approximation will suffice to illustrate the general THA behavior.
Figure 4 –3 (a) is a graphical representation of the equation above.
The Fourier transform for h(t), is shown in figure 4 – 3 (b) and
figure 4 – 3 (c) (magnitude and phase respectively).
Let us take a brief look at the THA and observe its frequency spectrum as
a function of the number of samples taken on the output of the device. This
72 Chapter 4
is the spectrum that we would observe when connecting the output of the
THA to a spectrum analyzer. If the THA had a sinusoidal input and we were
observing its output spectrum we would see a very complex picture. As we
will show, the spectrum is a strong function of the number of time samples
taken during each holding period of the THA. Figure 4 – 4 (a) – (c) represent
time domain samples for sinusoidal signals sampled once, four and eight
times respectively during each holding period. Figure 4-4 (a) is equivalent to
applications where the THA precedes the A/D and the converter’s input has
one-and-only-one time record for its conversion. If multiple time samples
are taken during the hold period (as would be the case when observing the
THA output directly with the spectrum analyzer) than the time domain
output would look like figures 4-4 (b) and (c). The frequency domain spectra
for each of the conditions depicted in figure 4-4 are illustrated in figure 4-5.
Figure 4-4. The effect of multiple sampling points during single holding period in the time
domain
Track & Hold Amplifier 73
Why does the frequency spectra depend on the number of time records
taken during the hold period? The answer is directly related to the sampling
process and the fact that the sampling process itself inherently causes
aliasing. With a single time point taken during the hold period the resulting
output signal is an exact replica of the input signal but delayed by an amount
equal to Th. If more data points are taken during each hold period, a
deviation of the input sinusoid is seen at the output of the THA as shown in
figure 4 – 4 (b) and (c). The changes in the spectrum are the result of having
a constant voltage being held (represented by a straight horizontal line)
followed by an abrupt change in the time domain to the new voltage being
acquired on the next sample. As the number of sampled points is increased
during the hold time the output signal approaches a staircase. This
progression is clearly illustrated in figures 4 – 4 (b) and (c). The spectrum
corresponding to these sudden changes has high frequency components and
associated aliasing effects that are a function of the number of sampled
points in each holding period. In figure 4 – 4 (b) the held signal is being
sampled with four time points during each hold period. Now the distortion
becomes more visible and it gets even more distorted in figure 4 – 4 (c) with
eight time samples for each held period Th. In effect we are observing the
byproduct of double sampling. First the THA samples at the frequency of
1/Th and then each voltage held is sampled multiple times at a higher
frequency as shown in figures 4-4 and 4-5 (2, 4 and 8 times the original
sampling rate of 25 MSPS used in our example). The spectrum seen with the
spectrum analyzer is a similar combination between the sampling frequency
of the THA (=1/Th) and the sampling frequency of the analyzer itself which
in most cases is uncorrelated to that of the THA.
The associated FFT data, presented in figure 4-5 (a) - (c) shows the
expected sin(x)/x shape and the aliasing effects. All data presented in figures
4-4 and 4-5 were obtained by using the simplest THA (presented in the next
section) modeled with a simple switch, and a holding capacitor using an
analog input frequency Fin = 1.07421875 MHz, sampled with Fs = 25 MHz.
The frequencies are the result of using 256 data points for the FFT with one
data point per sample. What figure 4 – 5(c) tells us is that our THA with an
input frequency of 1.074 MHz and sample frequency of 25 MSPS when
observed on the spectrum analyzer will have the following frequency
components:
• 1.074 MHz (the original signal – in bin 11 of the FFT)
• 23.925 MHz (alias signal = 25 – 1.074 MHz – in bin = 256 – 11 = 245)
• all aliases in bins 267 (=256+11); 501 (= 256·2 – 11);523 (=256·2 +
11);757 (=256·3 – 11);779 (=256·3 + 11) and 1013 (=256·4–11).
74 Chapter 4
Figure 4-5. The effect of multiple sampling points during single hold period in the frequency
domain
Track & Hold Amplifier 75
The basic SPICE model we use to model the THA is outlined in figure 4-6.
The most relevant components of the figure are:
• a switch controlled by the Track&Hold voltage and
• a capacitor which is the storing element.
The THA operates as follows: when the Vth command takes place (Vth
high) the switch closes allowing the capacitor C1 to charge to the input
voltage. When the Vth voltage goes low, the switch opens and the holding
capacitor maintains the stored charge – the voltage at the instance that the
switched opened.
The remaining elements Cpara and Idroop of figure 4-6 represent
parasitic effects of the THA.
• Cpara represents the unwanted capacitance that exists between the track
and hold command signal and the holding capacitor C1. This parasitic
76 Chapter 4
This error is strictly the result of a voltage division between the holding
capacitance and the parasitic capacitance and is not a function of the
voltage rate of change (dV/dt).
The droop and the pedestal are two of the most basic errors noticed in THA
applications. Neither droop nor pedestal errors cause significant errors when
preceding the A/D converter as long as they behave in a linear fashion. For
example if the droop current is fixed, the amount of droop is constant from
sample to sample (as is usually the case for constant frequency sampling).
The result at the output of the A/D is therefore equivalent to a constant offset
in the conversion channel (assuming single time point during hold time).
The pedestal error is also equivalent to an offset error as long as the
pedestal is invariant with respect to the input voltage. When the charge
injection (or pedestal) becomes a function of the input signal however the
distortion may become significant, as it will be shown shortly.
In general the errors caused by the sampling process in the A/D itself or the
combination of THA and A/D can be grouped as:
Track & Hold Amplifier 77
• systematic – where for repeated samples the errors replicate and are
predictable and
• stochastic – where given the uncertainty of the exact instance when the
sample takes place the output signal has a random component.
One of the error sources affecting the accuracy of the THA is the
dependency of holding capacitor value upon the voltage being held. When
capacitors are manufactured in an IC process they exhibit a voltage
coefficient due to space charge generated between the electrodes. The plates
of the capacitor in an I.C. process are metal-metal, metal-poly or poly-poly
materials and are insulated from each other through a thin layer of oxide.
The quality of the insulator bears the responsibility for the capacitance
variation as a function of stored charge. When the plates are poly-poly
materials they exhibit a voltage coefficient of approximately 100 PPM/V or
less if both plates are equally doped. If the coefficient is positive the voltage
dependency is dominated by accumulation at the surface. In contrast, a
negative voltage coefficient indicates a dependency on depletion due to
lightly doped plates. For high accuracy converters the voltage coefficient of
the capacitor needs to be very low in order to obtain a high degree of
linearity and thus low distortion. For example in a 12-bit converter 1 LSB
represents one part in 4096 or 244 PPM related to the device’s full-scale
range. If the holding capacitor varies due the voltage level held then the
THA will distort the input causing both static and dynamic errors.
78 Chapter 4
To model this effect we use the ability of SPICE to model the capacitor
variation by using a polynomial dependency. In our example we define the
holding capacitance using the following equation:
Figure 4-7. Dynamic error caused by voltage coefficient of the holding capacitor
positive voltage coefficient in the equation above. This causes the THA
output to be distorted. The switch resistance and the holding capacitor in
effect constitute a passive R-C filter. If the capacitance were constant the
filter would have a constant pole frequency. In our case however, the
capacitance has components that depend on the voltage across its terminals.
The result is a variable capacitance governed by the voltage and therefore
the pole frequency of the filter varies as a function of the voltage being held.
As the held voltage increases the capacitance increases causing the filter to
have a lower frequency pole. Since the effect is not symmetrical with input
voltage the output will have mostly even order harmonics. For example,
using our SPICE simulation model with the nonlinear capacitor of C(V)
equation, a sinusoidal input with a frequency of 4.98 MHz and a sampling
frequency of 25 MSPS results in second harmonic of -55.86 dB. A THA
using a linear holding capacitor under the same conditions produces second
harmonic of -82.7 dB (a difference of almost 30 dB). The third harmonic
however for these examples are -73.8 dB and -79.7 dB respectively.
where is the mobility, is the gate oxide capacitance, W and L are the
transistor width and length, is the control voltage of the track/hold
signal and is the transistor threshold voltage.
80 Chapter 4
Since this resistance changes with input voltage (it controlled by the source
to gate voltage) the track time constant is affected as well. To model this
effect we use the behavioral model capability of SPICE with a polynomial
approximation.
Modeling the nonlinear resistance characteristic of the switch is by no
means a trivial task. In fact, most SPICE simulators do not supply a
nonlinear resistor model. A logical approach of accomplishing this task is
suggested by P.W. Tuinenga (55). To model a nonlinear resistance Tuninga
suggests using a voltage-controlled resistor VCR as illustrated in figure 4-8.
We illustrate a practical case by using curve fitting to model the transfer gate
implemented in a CMOS process. The curve fitting results in the
following approximation:
Figure 4-9 is the graphical illustration of this equation and it shows the
nonlinear behavior of the switch as a function of the control voltage -
and the analog input voltage - The resistance of the switch shown is the
combined resistance of a PMOS in parallel with the NMOS device. As the
voltage of the N-channel increase its resistance is lowered while the
reverse occurs for the P-channel device. The result is a resistance that has
three regions: an almost linear region, followed by a parabolic function and
finally a linear decrease in resistance.
Looking at figure 4-11 we observe that the linear resistor outperforms the
modulated switch, as expected. Since the circuit at the bottom of figure 4-8
is linear (linear resistor and capacitor) we anticipate that the sampling
process will generate no harmonics. The linear resistor with its associated
holding capacitor behaves as single pole filter resulting in a linear behavior.
On the other hand, the top channel with its nonlinear resistor behaves as a
filter with variable frequency response, whose pole location depends on the
voltage across the resistor. Consequently, with a low voltage across the
resistor, its resistance is low resulting in a high frequency pole. As the
voltage across the resistor increases, the pole frequency is decreased. Since
the pole frequency is a function of input voltage the overall result is a
distortion in the output signal dependent on the input amplitude. Therefore a
84 Chapter 4
low-level input signal passes through a higher frequency filter than a high-
level signal approaching the device full-scale–range. A sinewave input
signal is therefore going to be more “squashed” on the top of the sinusoid
than on the bottom resulting in even harmonics (nonsymmetric) at the
output.
Figure 4 - 11 confirms the above explanation but it also shows a slight
decrease in dynamic performance at high input frequencies for the linear
device. The reason for this behavior is the numerical noise in the simulation,
which raises the noise floor. To alleviate this problem a reduction in the
simulation time step can be attempted at the cost of increased simulation
time. A reasonable rule of thumb is to use a time step ceiling of one tenth of
the simulation time step. Of course if finer detail is essential and the required
numerical noise needs to be reduced finer time granularity will be needed.
Changing the SPICE option card can prove also useful (reducing CHGTOL,
TRTOL, or varying the integration method from TRAP to GEAR). More on
simulator options can be found in appendix B.
Another systematic error in the THA is caused by the input signal being
fed across the switch when the THA is in its hold mode. The main reason for
the feedthrough is caused by the stray capacitance across the switch.
Usually, this capacitance is attributed to fringe effects in the layout and by
drain-source capacitance - of the transistors employed in the transfer
gate. The feedthrough modeled with a capacitor across the switch will not
cause any nonlinear behavior (harmonic distortion) but only gain error.
This behavior is not intuitive and an explanation is in order.
While in the hold mode, in the presence of a feedthrough capacitance, the
output has a component produced by the input. Suppose that the input signal
is a sinusoid of a known frequency At the THA output a signal of the
same frequency will be seen due to the capacitor divider and
The sampling process in itself creates new tones due to the sampling
frequency These tones are observed at multiples of (where k
is an integer). Since the information of interest is contained at the tone
the tone resulting from the capacitance divider and the sampling process are
only affected by the addition of this divider. A graphical representation is
illustrated in figure 4-12.
Track & Hold Amplifier 85
Figure 4-12. Feedthrough error is the superposition of a capacitor divider and a perfect
sampling switch
Figure 4-13. Sampling instance distortion due to slow rise / fall time of the T / H command
where A is the analog input swing, f is the input frequency and is the clock
fall time.
To examine this distortion we use the circuit in figure 4-14. Here again
we use to channels: one channel simulating the sampling instance distortion
and the second channel free of distortion.
In our model the switch’ gate is driven by a voltage source and its
source is connected to the input. The switch is modeled so it opens when the
voltage is 0V and turns “ON” when the voltage is 5mV. By performing an
FFT analysis on the output voltage “SHOUT1” we obtain the THD as
illustrated in figure 4-15. In the analysis used to obtain figure 4-15 the
analog input voltage has a swing of 4V, the clock has a swing of 5V and the
analog input frequency is The clock transition times vary from
1ns to 15 ns keeping the duty cycle at 50%.
88 Chapter 4
Figure 4-15. Sampling instance effects on TDE solid line simulation, dotted line Lim’s
equation
Figure 4-16. Spice schematic used for the simulation of jitter in a THA
The switch closes when the voltage between its control terminals reaches 2V
and opens when the voltage is 1.95V. Since the switch activation is a
function of the voltage difference between Vth and the noise source we
observe the jitter (noise effects) on the actual sampling instance. A graphical
representation of the jitter effects is outlined in figure 4 - 17 in the time
domain.
90 Chapter 4
The top plot in figure 4 - 17 shows the output voltage of THA for a 4 V p-p
signal. The bottom plot is the difference between the two output nodes of
THA1 and THA2 (with and without jitter). The difference plot clearly shows
that as the input slew rate increases so does the jitter effect. This increase in
slew-rate occurs as expected at the sinusoid crossover points. Due to this
increase in slew-rate the noise effects are also more predominant at the
crossovers.
Simulations for various input frequencies are summarized in figure 4 -
18. Again, with increased input frequency the input slew rate is increased
resulting in higher dynamic error as a function of jitter.
SUMMARY
• The simplest model for a track and hold amplifier is a switch and a
capacitor. Both the capacitor and/or the switch resistance nonlinearities
can be modeled in SPICE with the help of polynomial approximations as
shown in this chapter.
• Similarly the sampling time instant dependency on the fall time of the
T/H command causes nonsymmetric distortions resulting therefore in
even harmonics.
PROBLEMS
1. INTRODUCTION
The Successive Approximation Register (SAR) A/D is probably the most
widely used converter in industrial control applications. Its popularity stems
from the good ratio of speed/power and the fact that the converter is very
compact making it an inexpensive device.
The SAR A/D operation is based on the binary search algorithm. The
algorithm is akin to a name search in a telephone book. Without knowing the
page that contains the name of interest first, you open the book about
midway. If the name is located in the first half of the book then you split the
number of pages in half looking in the first or second quarter of the book. As
the search advances you, keep halving the remaining number of pages until
you reach the relevant page.
The SAR topology requires a single comparator, one D/A and a
successive approximation register with an associated digital accumulator. To
understand the operations of this converter see figure 5-1a:
96 Chapter 5
As the conversion is initiated, the SAR sets the MSB to “1” and the rest
of the bits to “0”. This causes the DAC to be set at half scale of the
converter’s range. If the analog input voltage is higher than the MSB’s
weight of the D/A, the comparator output is set to a “1”, the register retains
the MSB setting and proceeds with the trial of the next significant bit (B2).
The comparator responds again with a “1” if the input voltage is higher than
the D/A output voltage or “0” if the reverse is true. Next B3 is tried and the
comparator reacts in a similar fashion described for the previous two (more
significant) bits. The search continues until the voltage of the D/A converter
reaches the analog input to within its specified accuracy.
In effect, the control loop formed by the comparator, SAR, and D/A
performs an integration by using the accumulator of the SAR. During the
integration process, the SAR continues to accumulate the bit weights until
the digital output code represents the best approximation of the analog input.
The integration gradient is positive if the analog input is higher than the
output of the D/A (comparator output is high) and negative if it is lower
(comparator output is low).
As indicated above, the comparison between the analog input and the
accumulator of the SAR is performed in two phases:
• a trial phase when the bit of the D/A is compared against the analog
input and
• a decision phase: if the output of the comparator is high then the
particular bit is set to “1” in the SAR. If the comparator output is low,
then the bit that has just been tried is reset to “0” and the next trial
begins by setting the following significant bit to “1”.
A comparison between the SAR and flash converters reveals the reason
for the differences in conversion speed. While the flash converter performs a
simultaneous comparison for all bits, in the SAR converter the bits are tested
in a serial manner with the MSB first and LSB last in the conversion
sequence.
The current and voltage comparison are conceptually the same, however
using the current approach has some inherent benefits. One of the benefits in
using the current approach is the fact that the common mode voltage at the
comparator’ input is kept at zero. For this reason, the comparator offset is
kept constant throughout the entire input range so no input fluctuations affect
the converter linearity. Consequently, the common mode rejection
requirement for the comparator is reduced. Another benefit to this approach
is that the comparator input (INP-) can be clamped with high-speed diodes
SAR A/D 99
(Dl and D2 in figure 5-2) to ground. This reduces the voltage-input swing
and accelerates the settling characteristics of the D/A and the comparator.
Figure 5 – 3 illustrates the D/A output voltage in the time domain for an
8-bit converter using the voltage comparison method. In this example the
full-scale range of the converter is 2.048 V resulting in an LSB of 8 mV
and the analog input is 1.0 V.
Figure 5-3. The successive approximation process for an 8-bit SAR A/D
All simulations performed in this chapter model the THA with a voltage-
controlled switch and a holding capacitor of 10 pF as illustrated in figure 5 –
4 similar to the model used in the previous chapter.
In the figure, the start conversion is issued as a delayed pulse of the T_H
command. The T_H is an analog pulse, whose rise and fall time can be
controlled by the user. This voltage is converted into a digital pulse by the
buffer U4. The input to the U4 buffer has a user-defined delay – the product
R2 · C2. The converter clock used in this example is an analog voltage
source – VCLK – that is translated into a digital pulse by the buffer U3. The
sampling switch SW1 has a resistance of making the THA time constant
equal to 10 psec
X1 is the Spice model defined in the library as MACRO_SAR, which
includes the comparator, D/A and SAR logic for the A/D. The inner works
of this block are modeled in Spice as illustrated in figure 5 – 5.
SAR A/D 101
Figure 5-5. Testing the dynamic limitation of the SAR A/D loop
Figure 5-6. CMOS comparator - (a) Spice schematic and (b) Open loop gain
Unlike the flash A/D, the SAR topology uses the same comparator
throughout the entire input range. Consequently, if the comparator has an
offset error it will affect all bits in a similar fashion resulting in an output
code with the same offset. Similarly, D/A gain error is also common to all
codes thus causing a gain error for the entire converter. The gain and offset
SAR A/D 103
The SAR A/D converter also has dynamic limitations, since no physical
components can transition in zero time. To examine the difference in
dynamic behavior for various ILE DAC errors we analyze our 8 bit SAR
A/D using a low frequency input signal. Using 128 time sampled points for
the FFT and having a sample rate of 2.5 MSPS, results in an input beat
frequency of 19.53125KHz First, we check the dynamic
behavior of the converter with an MSB error of 8 mV (equal to a magnitude
of 1 LSB). The resulting spectrum for this error is shown in figure 5-7 (a).
104 Chapter 5
Figure 5-7 (b) is the corresponding FFT spectrum for an equal error at the
LSB.
Since there are two dominant time constants in the loop, the equivalent time
constant is the RSS (Root Square of the Sum of the squares) combination of
the two (in this case Therefore
the required amount of time for 8-bit settling is
Figure 5-8 illustrates the effects of clock period on the converter
accuracy for our 8-bit converter SAR A/D. The figure shows the same 8-bit
SAR A/D with a constant analog input voltage of 0.512V. Using three
different clock speeds, we observe the equivalent A/D output code by
monitoring the D/A voltage at the end of the conversion. The clock periods
are 30nsec, 20nsec and 5nsec. In the figure, we notice that with a clock
period of 30 nsec the final code is equivalent to 0.506V. At the 20 nsec the
accuracy is maintained at 0.506V. When the clock speed reaches 5nsec the
accuracy is lost, and the final value is 0.249V. As explained above at a clock
period of 5 nsec the loop speed of 12.4 nsec was exceeded causing the
converter to fail its settling requirements.
and
where and are the two instances in time that the input signal is sampled
and the input signal amplitude is 1.024V. The maximum rate of change is
found to be 0.049068 V. This is due to the beat frequency. By increasing the
frequency of the input signal we observe that the dynamic performance gets
reduced. At an input frequency of approximately 50.37 MHz the SINAD is
about 37 dB or 6.86 ENOB. This stands to reason since we reached
approximately half the small signal bandwidth. This is illustrated in figure 5-
9.
front of the A/D. This way the analog signal converted by the A/D is held
constant for the duration of the entire conversion cycle (in our case 8 clock
cycles ).
This technique is relevant not only to SAR A/Ds but to any converter,
that has long conversion time and needs to be used in a high speed system.
This parallel method is called for obvious reasons a parallel pipeline or time
interleaved approach. In an interleaved converter, the conversion cycle is
performed as illustrated in figure 5 - 10.
As seen in the figure, track & hold #1 captures the analog input first.
Next, A/D #1 begins its conversion based on the THA #1 acquired analog
voltage. At the next sampling instance, THA # 2 begins its acquisition of the
input while A/D # 1 carries on the conversion process it started. When THA
# 2 completes its analog input acquisition, A/D # 2 is ready to start its own
conversion and THA #3 is ready to acquire its sample.
The sampling sequence continues until the last A/D (A/D # 4 in our
example) is ready to begin its conversion while in parallel THA # 1 restarts
the sampling cycle.
Figure 5-11 (a) illustrates a block diagram for this parallel pipeline scheme.
In the figure, the output switch is synchronized and delayed from the input
switch by the amount of time required for the individual A/D to complete its
conversion.
Figure 5-11 (b) is the spice schematic used to simulate various error effects
in time interleaved converters. In figure 5 – 11 (b) we see the track and hold
amplifiers modeled with switches S1 through S4 and hold capacitors C1
through C4. The switches S5 through S8 are switched “ON” at the end of
acquisition time of the respective channel so when the outputs are
interleaved they arrive at the output node – ADA – at the proper instance.
110 Chapter 5
Figure 5-11. Block diagram - the digital output of each A/D is demuxed at the end of its
conversion
Our examples assume also that each converter has infinite resolution (no
quantization error). This assumption does not compromise the results and the
generality of the simulations and allows us to observe the effects of channel
mismatches. In our analysis, we consider an interleaved A/D with four
parallel channels.
112 Chapter 5
The first case considers offset errors in the first channel of the interleaved
converter relative to the other three channels that have no error.
If channel # 1 has an offset error of 10 mV relative to the remaining three
channels the combined A/D has an error component in its reconstructed
signal. Consider what happens if the analog input of the interleaved
converter is a DC voltage. In this case, the first channel has an output equal
to its offset voltage while the other three channels have outputs equal to the
input. If we monitor the reconstructed output of the interleaved A/D then for
one fourth of the time we notice an offset while for the remaining three-
quarters of the time the output is equal to the input. Similarly, if the input
signal is a sinewave then the reconstructed output has a frequency spectrum
with a spur at multiple frequencies of the sampling signal divided by the
number of parallel channels:
Next, we examine the case where channel # 1 has a gain error relative to
the other three channels. Considering a sinewave input signal we can
intuitively see an amplitude modulation occurring for the channel with the
gain error relative to the other channels. As expected for an AM modulated
signal we anticipate seeing spurs of the original input at frequencies of:
This error in the sampling instance of one channel relative to the other
three results in an inaccuracy. Normally, when an A/D samples an input
signal we assume mathematically that all samples are equidistant in time. If
however one of the interleaved A/D channels samples at a different time
than expected, the signal has a different amplitude than anticipated. Again, if
we deal with a sinewave input this timing error causes a spur of the original
input signal. In an A/D, this error is caused by a delay in sampling signal
from one channel to the next. This is a similar to the case we analyzed in the
flash A/D when one column had a delay in the sampling instance relative to
the other columns. Again, the harmonic content of the reconstructed output
looks like a combination of gain error but without the carrier The
spectrum of the output for this case is illustrated in figure 5 – 12 (d).
In all cases examined, we use 128 time data points resulting in 64
harmonic bins. Since the test performed is a beat frequency test, the input
frequency is 10 MHz/ The combined A/D has four
channels and is sampled at a frequency of 10 MSPS. Each track & hold has
an acquisition time of 10 psec so the acquisition time is
almost instantaneous and causes no error due to incomplete acquisition. The
compound converter has a total conversion rate of 2.5 MSPS (4 channels
each sampled at 2.5 MSPS lead to a combined sampling rate of 10 MSPS).
Figure 5 - 12 (a) illustrates the case where no errors exist between channels.
The SINAD of the A/D is 70.97 dB (or 11.48 ENOB).
Next case – figure 5 – 12 (b) shows the case where channel # 1 has an
offset error of 10mV. Here we observe as predicted above two major spurs:
one in bin 32 with an amplitude of and one in bin 64
with an amplitude of The SINAD is 43.03 dB or (or
6.85 ENOB).
Graph 5 – 12 (c) represents a gain error of 1% on channel # 1. The harmonic
content is summarized in table 5-1:
The last case analyzed – graph 5 – 12 (d) represents a timing error of 3 nsec.
The harmonics reside now in bins 31 with amplitude of –67.47 dB, bin 33
114 Chapter 5
Figure 5-12. Dynamic performance (TDE) as a function of errors in one of the four channels.
(a) no error between channels, (b) offset error in 1st channel, (c) gain error in the 1st channel
and (d) timing error in the first channel
SAR A/D 115
SUMMARY
• The clock utilized for the SAR A/D has a critical speed that can be used
for a given converter accuracy. It has to accommodate both the trial and
decision stages. To decide on the fastest clock cycle we need to know
the speed limitations of each of the components in the loop. The RSS
combination of the comparator time constant and the D/A time constant
are the major contributors to this limit (in the absence of slew rate
limitations).
• The THA is of crucial importance in the use of a SAR A/D. This device
maintains the analog input constant in front of the comparator so the
comparator can react to a consistent residue from one bit decision to the
next.
PROBLEMS
10. Using the type of THA shown in the chapter construct an interleaved
A/D converter with 8 parallel SAR A/D. Add a current source of
from holding capacitor in THA #1 to ground. This will cause a voltage
droop of 10mV in 10 nsec.
(a) find the spurious frequencies caused by this phenomena relative
to the “no droop” case
(b) add equal currents on all holding caps so all channels are
matched. How does the addition of droop influence the TDE?
SAR A/D 117
1. INTRODUCTION
The folding concept is relatively new compared with the other converters
examined so far. In 1975 A. Arbel and R. Kurz presented this new concept
as a technique for obtaining high-speed A/D converters (45). Philips
Research Laboratories in Eindhoven (46, 47, 48, 49, 50) and others (52,53)
have further developed the method.
Figure 6-2. Input / Output transfer curve of the folding amplifier - Time domain linear ramp
(lower right) and associated output time domain waveform (upper left)
• a transfer curve showing the relation between input and output (voltage
in – voltage out)
• an input ramp in the time domain and
• the corresponding output waveform resulting from the input ramp (also
in the time domain).
The information presented in figure 6-2 is somewhat unusual so an
explanation is in order.
122 Chapter 6
Figure 6-3. The preprocessing amplifier transfer curve - (a) tanh (x/0.052) and (b)
approximating a sinewave
As the analog input voltage moves from –0.2V to +0.2V the output
current moves from to If a similar transfer curve is offset
relative to the first and subtracted from the curve in figure 6 – 3 (a), a graph
as shown in figure 6 – 3 (b) is obtained. In other words by simply
crosscoupling two sets of differential pairs and carefully choosing the
reference levels a transfer function approximating the cosine function can be
achieved. The approximation of a cosine function is of course maintained for
a limited range of voltages. This idea can be extended such that multiple
cosine cycles are obtained along the full-scale range, as we will illustrate by
example. The concept is shown in a bipolar implementation in figure 6 -4.
124 Chapter 6
In the equation the parameters Iss and are specific to a given process and
device geometry and is the differential input voltage to the pair. Again
we can expand the equation into series with as the variable:
The two equations are very similar up to the fifth order and each has
constant coefficients for a given process. This implies that using the
hyperbolic tangent with a larger degeneration for the CMOS case will result
in a reasonable approximation for a CMOS CDP. This methodology is
comparable to what was described in chapter 2 for the CMOS comparator
model. The similarity between the two transconductances was also
illustrated in chapter 2.
and
128 Chapter 6
As outlined in the figure, at the edges of the full-scale, the CDPs reach a
plateau and the approximation to a sinewave ceases. To avoid the distortion
we can limit the active input to the sinusoidal region and add dummy stages
around the full scale. The dummy stages have the role of continuing the
130 Chapter 6
Figure 6-9. Preprocessing front-end with two phases - SIN and COS
situated 0.22V apart from each other The five CDP blocks
and produce the sine phase when outputs through are
connected to a resistive load. through produce the cosine phase when
their outputs thorough are connected in parallel to an equal resistive
load. The two folded signals – SIN and COS - resulting from an input linear
ramp are depicted in figure 6 - 10.
Figure 6-10. SIN and COS signal generation at the output of preprocessing unit and
associated deviation from the perfect sine and cosine waveform
Figure 6 – 10 illustrates that the sinewaves have four cycles during the
analog ramp transition from 0.22V to 1.98V. As outlined above we restrict
the input range for the converter so the sinusoidal approximation is
132 Chapter 6
maintained as long as the extremes of the full-scale range are not reached
(0V and 2V).
Figure 6 - 10 also shows the error of the sinusoidal approximation. To
compare the accuracy of the SIN and COS phases to an actual SIN/COS
generator, we use the behavioral model available in SPICE to generate the
two signals:
and
These two test signals represent the sine and cosine functions of a scaled
version of the input signal. As the input voltage is gradually increased from
0V the test voltages complete approximately four and a half cycles (since a
sinewave requires to complete one cycle, represent approximately
4.5 cycles). As shown in figure 6 - 10 a close match to the SIN and COS
phases is obtained. In our example the analog input is scaled for a full-scale-
range of 1.76 V resulting in an LSB of 6.875 mV
The SIN output phase deviation from an actual sinewave shown
in figure 6 - 10 is less than 0.3 mV (or less than one twentieth of an LSB for
the converter).
In our example the folder creates a sinewave with four cycles across the
full-scale range for an analog input ramp. If the input is a triangular
waveform then for each leg of the input signal from to we obtain
four cycles followed by four corresponding cycles on the way down from the
134 Chapter 6
Using only two phases – SIN and COS – the acceptable errors can be larger
outside the zero crossing.
On the other hand, the multi-phase interpolation has the benefit of using
resistors, which are inherently linear components and provide good matching
when good careful layout rules are observed. However loading effects can
prove rather stringent with this approach. From these considerations, the
trigonometric interpolation is the preferred approach and it will be the
method employed in our folding A/D example.
Finally, to complete the description of the blocks used in developing our
Spice model of the folding A/D we illustrate the comparator model and its
associated Bode plot in figure 6 -13.
136 Chapter 6
Figure 6-13. Folding A/D comparator model - (a) Spice model and (b) AC transfer curve
Using the Spice model for the converter in figure 6 -14 we evaluate now
its dynamic behavior. As in previous chapters we perform a beat frequency
test with a sampling rate of 100 MSPS. Using a time data set of 128 points
we obtain a beat frequency As in previous chapters we
evaluate the A/D performance by performing several simulations with
increased input frequency while keeping the sampling rate constant at 100
MSPS. The corresponding dynamic performance is shown in figure 6 - 16.
140 Chapter 6
Figure 6-16. Dynamic performance of the 8-bit folding A/D of figure 6-14
First we examine the behavior of the folder with an offset error in one of
the CDPs. The linearity plot for the 1 LSB error in X5 CDP is shown in
figure 6 - 17.
Figure 6-17. 8-bit folding A/D - Linearity error plot with CDP having 1 LSB of error (1 LSB
= 6.875 mV)
The figure is obtained using a slow input ramp. In the figure we notice
that the nonlinearity is restricted to a small region of the full-scale range –
the area where the CDP error occurs. In principle the “bulge” seen in the
second cycle of the folder is happening in a very narrow section of the
transfer curve. Given the confined area the expected harmonic content
should result in relatively high order harmonics. An FFT analysis verifies
that the harmonics limiting the dynamic performance are the tenth and the
twelfth. With this offset error in the middle CDP of the SIN curve (X5 in
figure 6 - 9) we obtain a SINAD = 47.37 dB at low input frequencies. This is
a reduction of approximately 1.7 dB in dynamic performance at an input
frequency of 781.25 kHz (with no errors the original performance was 49.09
dB). Increasing the error to 4 LSBs (or 27.5 mV) in X5 farther reduces the
dynamic performance to 40.34 dB (or approximately 9 dB).
Next, we examine the harmonics caused by the same (1 LSB) error in the
comparator making the LSB decision – X33 in figure 6 - 14. With this error
142 Chapter 6
SUMMARY
• A Spice model has been suggested for the various blocks of a folding
A/D converter that enables the user to predict various error
contributions to the overall dynamic behavior. This model constitutes
a means of evaluating the relevant parameters affecting the folding
A/D dynamic performance without compromising the physical
behavior of the circuit.
• Although it seems that the above parameters are independent, there are
limitations associated with the gain-bandwidth product of the block
as well as the overall approximation to a sinewave needed for the
SINCOS block.
PROBLEMS
2. With the CDP block and reference voltages in problem 1 find the
error of the SINCOS block from a perfect sinewave.
3. As seen in the chapter and the previous two problems the resulting
converter full scale will most likely have odd-valued end points (in
the example 0.22 to 1.98 V!). To resolve this issue, scaling of the
analog input voltage can be done in an amplifier preceding the
SINCOS block. Alternately the same result can be accomplished in
the track and hold amplifier. Perform the scaling required to obtain a
converter with full-scale range of 2.048 V which result in an
1. INTRODUCTION
This chapter describes the behavior of a class of converters known as
serial pipeline A/Ds.
The topology was developed with the intent of achieving high conversion
rate with moderate hardware complexity by splitting the conversion task into
smaller operations. At any time during the conversion process, the first stage
operates on the most recent sample of the input while the following stage
operates on the residue from the previous sample. This is analogous to an
assembly line where each station carries out a different activity resulting in
reduced overall assembly time. The conversion time of a pipeline A/D is
governed by the slowest operation along the signal path (similar to the time
the unit spends in the assembly line).
The serial pipeline A/D converter has similarities with the interleaved
A/D described in chapter 4 but its operation is different in that the
subranging blocks perform their operations in series along the converter
chain rather than in parallel.
A two-stage pipeline converter is illustrated in figure 7-1. Although
figure 7-1 seems similar to the subranging converter of figure 4-1 there is a
major difference between the two figures. In figure 7-1 the residue obtained
after the coarse conversion and the subtracting amplifier is transferred to a
second track-and-hold amplifier. THA#2 increases the overall speed of the
148 Chapter 7
Figure 7-2. The coarse and fine converters have to fit their segments along the transfer curve
such that the coarse and fine converters are forced to match each other
by forcing the more significant bits to align to the lower rank decision.
The fine converter MSB decision is usually added to the LSB decision of
the coarse converter, and the combined result is the output code of the
A/D (this will be shown with the help of an example).
Figure 7-3. Coarse segments have errors at boundary. Adding correction range can alleviate
the matching
Figure 7-4 (a1) illustrates the transfer function of a perfect A/D; in figure
7-4 (a2) we see the difference between the analog input and the
152 Chapter 7
reconstructed output (the result of a D/A output whose input is the digital
code of the A/D). Figure 7-4 (b1) shows a similar transfer curve as (a1) but
for a converter that has linearity errors. In figure 7-4 (b2) we see the residue
of the reconstructed code for the converter in (b1).
When the coarse A/D has its threshold shifted from the ideal case by an
offset or gain error, a code of the wrong width results. When a code width
becomes zero the result is a missing code. Furthermore, when the residue
becomes too negative the result is a non-monotonic behavior of the A/D.
The errors shown in figure 7-4 can be corrected by employing digital
correction schemes (as we will show shortly). To be able to correct the
output code, the D/A as well as the residue amplifier must be linear to the
overall converter accuracy (N bits). If this requirement is met, the residue
consisting of the difference between the input and the coarse A/D output is
accurate and no information is lost in spite of coarse converter inaccuracy
(offset, gain or nonlinearity). Let us elaborate on the last point: reinspecting
figure 7 – 2 we find that the fitting of the coarse and fine segments makes a
very subtle assumption - that is that the coarse quantizer in the chain is
accurate to its expected number of bits If this is not the case then
the residue voltage can overrange the fine converter resulting in the wrong
output code (as it will be illustrated by example). The error in residue can be
the results of a static (offset, gain or linearity error) or dynamic (incomplete
settling) mismatch in fitting the coarse to the fine segment. The mechanism
defining how the pipeline converter performs dynamically is controlled by
the behavior of the residue voltage or stated differently by the matching of
the fine/coarse segments.
When the pipeline algorithm is employed, the accuracy required for the
various quantizer blocks in the chain is not trivial. This subject is a major
topic considered in reference 53. Without going into elaborate details, we
review now its conclusions.
The matter of residue D/A and error amplifier has been stated repeatedly
in terms of correction algorithm effectiveness. Fundamentally the D/A
errors can be corrected only through trim or calibration of the D/A (see
references 57, 59, 60, 61, 62, 63, 64, 65, 66) and this process needs to take
place prior to the A/D conversion process.
Without limiting the generality of our examples in this chapter, we
assume that the D/A converter is accurate to N bit (presenting therefore the
principle of error correction after the calibration process is complete).
Figure 7-5. Spice schematic for an 8-bit converter obtained from two 4-bit converters (no
error correction)
For this reason the fine converter – X12 - uses the same references (0 to
2.56V) in figure 7 – 5 as the coarse A/D. The result is that the fine LSB has a
magnitude of 160 mV (referenced to its own input). Given the amplification
of the residue amplifier, the fine LSB magnitude referenced to the composite
A/D input is
The dynamic limitation of the converter in figure 7 – 5 is modeled by
limiting the bandwidth of the THAs, D/A and residue amplifier with simple
R·C time-constants for the D/A and for the THAs). We
will elaborate on the dynamic limitation later in the chapter. Finally, to
accommodate the delays associated with the propagation delays of the coarse
A/D, DAC and error amplifier the digital code is aligned with latches U31
and U45.
The timing diagram for the converter is illustrated in figure 7 – 6. First
THA#1 acquires the input signal in the interval 1-4 nsec. As soon as THA#1
completes the acquisition, the coarse converter starts its conversion, which
lasts for the next 0.5 nsec. At the end of coarse conversion U31 latches the
coarse digital code at time 4.5 nsec. At the same time the second THA starts
Pipeline A/D 155
its acquisition of the residue which is completed at 9 nsec (allowing for the
D/A and error amplifier to settle). At this time the fine conversion is ready to
begin. Its digital code gets latched at 9.5 nsec with the help of U45 in figure
7 – 5. The entire cycle gets repeated every 10 nsec.
the impact of each error to the overall performance, we simulate the behavior
of each error mechanism separately.
First, we introduce a coarse converter offset error. This is accomplished
by adding two equal voltage sources in series with ref_top and ref_bottom of
X1 in figure 7 - 5. By making these error voltages equal to 80 mV we shift
the threshold of each comparator of the coarse A/D by 0.5 LSBs. Using the
same conditions as before we obtain a SINAD of 29.7 dB or
bit. This performance is a far cry from an 8-bit converter and is due to the
fact that the fine A/D is overranged for approximately half the time due to
the coarse converter offset. Stated differently: as soon as the input signal to
the fine converter exceeds its input range the fine converter produces a
constant output. As a result, the coarse and fine segments do not match and
the discontinuities produce frequency spurs. The frequency spectrum for this
case is illustrated in figure 7 – 7 (b).
Next, we examine the effects of gain error in the coarse converter. This
effect is modeled by using a top reference of and
keeping the bottom reference at zero. Now each of the comparators in the
coarse converter has its threshold increased by 3.125% As a
result each comparator reference has its threshold shifted upward by 3.125%
from the original location until the topmost comparator has its decision
moved by 0.5 LSBs. Now the fine A/D will spend less time being
overranged, as was the case for the offset error. The dynamic performance
measured now is or an The frequency
spectrum is illustrated in figure 7 – 7 (c).
Although the peak amplitudes of the offset and gain errors are the same
in our examples, the resulting harmonic content is vastly different as figure 7
– 7 reflects. Not only is the total dynamic error (TDE) different for these
cases, but also the spectrum shows much higher spurs for the offset error
than for the gain error. Although it is difficult to predict intuitively the
harmonic locations caused by the converter’ errors we will attempt to
explain the simulation results. Table 7.1 summarizes some of the FFT
highest spurs in each simulation and the highest tones for each case are
emphasized (gray).
Pipeline A/D 157
Figure 7-7. Dynamic performance of 8-bit pipeline A/D - (a) No error (b) 0.5 LSB offset error
(c) 0.5 LSB gain error
158 Chapter 7
For the offset error, we expect to have an abrupt change in codes at the
transitions from one coarse segment to the next. This discontinuity occurs
sixteen times on the positive slope and an equal number of times on the
negative slope. For this reason we would expect harmonics, which are
multiples of 32. Since the fundamental resides in bin 0, the thirty-first bin
will have this harmonic. Given the small number of frequency bins and the
low frequency resolution we find that bins 29 and 33 have similar size
harmonics and are in close proximity to bin 32.
For the gain error case, we would expect the harmonic content to be
lower than for the offset case. The main reason is that in the case of offset
error the deviation from the ideal case is uniform and equal to 0.5 LSBs at
the transition from coarse to fine A/D. In the gain error case however, the
deviation is gradual from 0 LSBs to 0.5 LSB (at the full scale of the coarse
converter). The average value of the error is therefore twice as big in the
offset case as in the gain error case. Here again, as in the previous example
there are 32 discontinuity points on the sinewave at the transition between
the coarse and fine segments. This is reflected in the high spur in bin 31,
which is in line with our prediction.
In summary our examples prove that the pipeline topology has stringent
demands on the sub-blocks used for the composite converter. If these
devices do not meet the overall converter accuracy then the mismatches can
cause significant spurs in the frequency domain.
Figure 7-8. An 8-bit serial pipeline A/D with error correction (one bit overlap)
of the coarse is overlapped with the MSB of the fine converter. This is
accomplished with the full-adder U18.
To avoid a roll over of the output code (one LSB count over the + full-scale
causing an output to roll to the origin - 0.... 00) the OR gates U20 through
U27 are added.
As we reiterated so many times this method corrects for errors of the
coarse A/D but not for D/A or residue amplifier errors. The concept is
illustrated graphically in figure 7 – 9.
On the left side of figure 7 – 9 we see the coarse A/D codes with their
associated threshold levels. After the 8x amplification and addition of ¼
scale (0.64V) of the fine A/D we see that the coarse LSB span is projected
into the active range of the fine A/D (0 to 1.28 V). By reducing the active
area of the fine A/D we allow the residue voltage to extend above 1.28V and
below 0V but require it to stay above –0.64V and below 1.92V. The
allowable correction range is shown in figure 7 – 9 on the right side. At the
top of the figure we can see the reference voltages required for each of the
A/D to obtain the error correction.
Now the converter can deal with errors up to one bit in magnitude (+ and –
0.5 LSB for a range of 1 LSB total). The “cost” paid for achieving this
feature is in the increased resolution requirement of the fine converter with
the associated power and area expansion.
Figure 7-9. Pipeline A/D and the concept of error correction with one bit of overlap
162 Chapter 7
Figure 7-10. Gain errors in pipeline A/D - (a) if caused by the coarse A/D - can be corrected
by the digital error correction and (b) if caused by the reconstructing D/A - result in overall
linearity error of the composite A/D
Pipeline A/D 163
This is within the allotted time for the THA#2 to acquire the residue voltage
(4.5 nsec in our implementation) and is reasonable for a 100 MSPS
converter.
The residue voltage is next amplified by a factor of 8x with a time constant
of 250 psec (an equivalent bandwidth of 640 MHz). The input to the fine
A/D needs only be accurate now to 4-bit accuracy and requires an amount of
time of:
164 Chapter 7
Next we consider the case where the coarse A/D has an offset error of 0.5
LSB (=80 mV=160mV· 0.5). The difference between the input (THA#1
output) and the reconstructed D/A is now 80 mV and is strictly caused by the
change in threshold of the coarse A/D. Again this is modeled with both the
top and the bottom references of the coarse A/D shifted with two equal
voltage sources of 80 mV (ref_top=2.64 and ref_bottom=80mV). At the
output of the residue amplifier, this is equivalent to 640 mV (=80mV· 8).
This is now within the active range of the fine A/D and therefore by digitally
adding the MSB of the fine A/D with the coarse A/D LSB we get a
correction of the output composite code. The same argument can be made on
gain or linearity error of the coarse converter or any combination of errors in
the coarse A/D that do not overrange the residue amplifier or the fine A/D (a
combined error of no more than one coarse LSB).
With an offset error of 0.5 LSBs in the coarse converter we obtain now a
SINAD=48.297 dB or ENOB=7.724. This is significant improvement over
the non-corrected case. The result is only 0.7 dB different relative to the
same converter without any errors and the minor difference is due mainly to
round-off error.
Next we examine the case of 0.5 LSBs of gain error in the coarse A/D. In
this case the residue will resemble figure 7 – 10 (a) and each of its
comparators threshold will be shifted by:
SUMMARY
• The digital error correction can be used to correct for threshold errors of
the coarse A/D alone. If other errors exist between the coarse A/D and
the error amplifier the result is that the fine converter will override the
coarse decision erroneously resulting in the wrong pipelined code (se
figure 7 – 10).
PROBLEMS
1. Using the model of figure 7 – 5 find the timing signature caused by the
following components:
(a) Change the D/A gain by increasing Vrtop voltage by 0.5 coarse LSB
(=80 mV).
(b) Add 0.5 LSB (=80 mV) of offset to the D/A by adding a voltage
reference in series with C_DAC node.
(c) Change residue gain by changing the Edac value by 0.5 coarse LSB
(=1+ (2.56+0.16)/2.56 = 1.03125)
(d) Change residue amplifier gain Eresidue as in (c).
(e) Change fine A/D offset (ref_top and ref_bottom of X12) as in 80mV.
(f) Change fine A/D gain (ref_top of X12) to have an equivalent 0.5
coarse LSBs (1.03125).
3. The error correction algorithm described in this chapter can improve the
dynamic performance by correcting higher errors in the coarse A/D by
increasing the amount of overlapped bits. What is the required gain of
the residue amplifier if the expected coarse A/D error is 3LSBs.
4. Repeat problem 3 above when the coarse A/D error is 4 LSBs and show
that using two overlapped bits results in error correction of up to 4 LSBs.
Chapter 8
Serial Pipeline A/D with 1.5-bit / stage
1. INTRODUCTION
In contrast to the topologies discussed so far in this book, the method
described in this chapter does not rely on high accuracy comparators.
The 1.5-bit/stage architecture, is a unique implementation of the serial
pipelined A/D converter. Each of the pipeline stages detects a single bit
while using an error correction range of one-half-bit per stage. The technique
has been described and used for many years (56, 57, 61, 67) as a means of
obtaining high accuracy, high-speed converters without complex CMOS
comparators, which are known to have high offsets. In recent years, with the
advent of sub-micron CMOS geometry, the method gained increased
acceptance and has expanded the resolution of this class of A/D.
The most common implementation of this topology is realized in CMOS
technology. The method attractiveness stems from its simplicity and the fact
that high-resolution converters can be implemented by repeated utilization of
a simple stage. Given the compactness of the topology, high conversion
speed can be achieved requiring relatively small die area.
The serial pipeline 1.5-bit converter is very similar in concept with the
SAR A/D.
The scheme evolved from the SAR topology as follows: in the SAR A/D
the first decision – MSB is based on a comparison between the analog input
and half the reference voltage. Next bit (B2) makes a comparison between
172 Chapter 8
the input and a voltage equal in magnitude to the first comparison plus one
quarter of the reference and so on.. .(see chapter 5).
The same result can be achieved by doubling the residue and comparing it to
a known voltage level so all stages in the pipe use the same reference. This
concept is illustrated in figure 8 – 1.
The figure outlines the converter operation as follows: in the first phase, the
SHA#1 samples the input signal followed by a comparison phase in the
comparator/latch. In the next phase, the signal is multiplied by two, and
depending on the comparison of comparator#1 the reference level or zero is
subtracted and forwarded to the input of SHA#2 input. The algorithm
continues in a similar fashion for each subsequent stage. After N samples the
final residue reaches the last stage and the output of all comparators is
available at the output drivers. Since each SHA in the chain has a delay of
one-half cycle, it takes N/2 cycles until the conversion is completed. As
explained in the previous chapter, any error such as gain, offset or
nonlinearity in the present stage may cause the following stage to overrange
and therefore compromise the converter’s accuracy. Therefore an error
Pipeline A/D -1.5 bit/stage 173
• add half the reference level if the voltage is below the negative reference
voltage,
• add zero if the input to the stage is above the negative reference and
below the positive reference or
• subtract half the reference if the input to the stage is above the positive
reference
Using this method, results in a total of three decision levels for each stage
instead of the two levels used in the SAR. The increased circuit complexity
allows for the addition of a redundant decision level and provides for half-bit
of error correction in each stage. This technique was first described by S.
Lewis and P. Gray in reference 57 and subsequently expended by Lewis et al
(ref. 67 and others - 56,58,61). The concept is illustrated in figure 8-2.
As shown in figure 8-2, the input signal is first acquired by the SHA.
During the next phase, the held signal is compared with the help of a
window comparator to see whether it resides between the two reference
levels. The result of the comparison sets the switch position such that next
stage’s input is equal to twice the output of the previous stage shifted by a
positive or negative offset as explained above.
Figure 8-2 illustrates also the flow chart for the algorithm used in the
implementation of the 1.5 bit/stage converter as outlined in reference 58.
The converter in figure 8 – 2 can be realized using single-ended or
differential circuit implementations.
174 Chapter 8
during phase
If the capacitors and are equal in value then the circuit provides the
needed gain of two with the associated input dependent reference offset. The
version of the circuit described is frequently implemented in a differential
manner. Writing the equation for the differential case is a little more
involved, but since the circuit is linear the task can be simplified by the use
of superposition method: write the equation for each half of the differential
paths by inspection and add the resulting equations.
• even harmonics are reduced (when the differential paths are symmetric)
• improved common-mode rejection
• improved power supply rejection
• cancellation of 1/f noise and offset when the differential stage is
implemented as a correlated-double sampler (CDS).
• SHA
• subtraction and
• D/A.
Finally, the comparators outputs use the edge triggered DLATCH U8 and
U9. In a physical implementation the comparators use regenerative positive
feedback, thus allowing for a relatively low DC gain.
The comparator can essentially be single ended and use only one set of
reference voltages and one phase of the input signal (the positive reference
refp and the input signal inp). Such an implementation however would lack
the ability to reject the common-mode transients of the negative input inn
and negative reference refn.
The entire MDAC model, while fairly simplistic is a relatively good
approximation of a single-pole roll-off implementation. While some of the
practical limitations of the amplifier and comparators such as slew-rate
limitation, common mode rejection and power supply rejections are
idealized this model can give us a good understanding of the MDAC
behavior.
The analog input voltage is sampled during the first phase. During the
second phase the sampling capacitor Cs gets connected to GND or –
Vref depending on the result of the comparator decision. This determines the
digital output of the MDAC and whether the reference voltages are added or
subtracted from the residue. The detection of the range is performed by the
AND gates U18, U19 and U20 and their outputs x, y and z control the
position of switches S3, S4, S5 and S6 (see figure 8-4 again).
The transfer function of the MDAC is illustrated in figure 8-5.
Figure 8 – 5 shows the three possible output states for the MDAC: 00, 01
and 10 and the reference levels at which the transitions occur when the
reference voltages are 1V and the full-scale range of the device is 2V.
The state 11 is reserved for the correction range as will be shown shortly.
The associated timing diagram for the MDAC is illustrated in figure 8 – 6.
The two clock phases and have the purpose of establishing the
sampling and holding instances. They are essentially two nonoverlapping
signals (for a simple realization scheme see reference 68). The control
signals and are intended to reduce the sample to hold transition.
While and are high, the op-amp inputs are connected to each
other and to the common-mode voltage (CM) and the SHA inputs are
connected to the sampling caps and and to the feedback capacitors
and
Pipeline A/D - 1.5 bit/stage 179
When goes low, the amplifier’s inputs get disconnected from the
common-mode voltage CM but remain connected to each other until
goes low which cause the inputs to be sampled on the capacitors.
During the phase the capacitors and get connected to the
amplifier’s outputs and the sampling capacitors and get connected to
each other and the references VPOS or VNEG depending on the digital
signals X, Y or Z. Assuming perfect matching of and at the
end of the second phase the output of the MDAC is equal to twice the input
voltage plus or minus the reference voltage as shown in figure 8–5.
Using the MDAC in figure 8 – 4 and the associated timing diagram we
obtain three output codes for the digital outputs y and z. Assuming that y is
the MSB and z is the LSB of the pair we obtain the codes 00, 01, and 10.
The code 11 does not occur allowing for a relatively large correction range.
Only two comparators are used to obtain the two thresholds with their three
associated decision levels. Each comparator is offset by thus
making the block able to tolerate offset errors of 0.25.Vref without
performance degradation as it will be shown by an example.
180 Chapter 8
Figure 8-7. Serial pipeline A/D with 1.5-bit / stage - Spice schematic
182 Chapter 8
Figure 8-8. Dynamic performance of 8-bit serial pipeline A/D with no error
Since the amplifier gain gets reduced with a slope of –20 dB/decade
beginning at the pole frequency
it results that the output impedance of the amplifier increases from a value of
at low frequency and it behaves therefore as an inductor:
This behavior affects the amplifier speed because it exhibits the settling of a
voltage across a capacitor driven from voltage source in series with an
“inductor”
There are other things influencing the converter’s accuracy in actual
implementation:
In practice the circuit errors are not always symmetric. Our first example
will examine the effects of these capacitors mismatch. Figure 8 – 9 illustrates
the case in which the MDAC capacitors are mismatched so that only one of
the four in the array deviates from the nominal value.
Figure 8 – 9 reflects the behavior of the 8-bit converter when the MSB
MDAC when the sampling cap has a 25% error compared to the other
three capacitors (top). The remaining MDACs are perfectly matched. While
a 25% seems a large error between adjacent capacitors, this is just to
illustrate the importance capacitor matching in the MDAC and is not a
reflection of a serious issue in the I.C. layout.
Pipeline A/D - 1.5 bit/stage 185
Figure 8-9. Time domain reconstruction of 8-bit serial pipeline A/D with 1.5 bit / stage - (a)
Capacitance mismatch in MDAC#1 - C1=1.25pF, C2=C3=C4=1pF; (b) Capacitance
mismatch in MDAC#1 - C3=1.25pF, C1=C2=C4=1pF
186 Chapter 8
The case is presented here so the reader can observe the signature caused
by capacitance mismatch error in this converter. The associated graph on the
bottom of the figure represents a 25% error of the feedback capacitor
The time domain error shown in figure 8 – 9 represents an asymmetric error
in each case resulting in significant degradation in the dynamic performance.
The error is significant enough as to make the time domain reconstruction
noticeably distorted. The SINAD for each case of figure 8 – 9 are:
SINAD(with C1 error)= 32.684 and SINAD(with C3 error)=33.474
respectively. Since the errors just discussed are fairly large it stands to
reason that the converter’s performance is pretty poor (approximately 5.2
effective bits). This asymmetrical error in capacitance not only creates a gain
error but in a practical converter causes also the input common-mode voltage
to be different than the output common-mode in the MDAC. Our model has
infinite common-mode rejection and therefore the settling of the common-
mode transient is not observed in the A/D performance.
Our next example examines the effects of input signal coupling into one
of the references. This is a practical problem that results from having the
reference signal routed across the chip to various MDACs and passing along
the way next to the input signal. We examine this case by adding a 10mV
voltage source with equal phase and frequency as the input signal in series to
the voltage source Using a frequency of 390.625kHz we measure a
SINAD = 47.235 dB or the equivalent of ENOB = 7.55 bits. Even though the
culprit is a signal with less than one LSB in magnitude
mV) the reduction in SINAD is fairly drastic. The reason for the extreme
behavior is a consequence of the residue signal being amplified as it goes
through the signal path. This leads to large errors as the residue reaches the
last stage in the pipe after a total gain of 128 in the previous stages. Not only
is the SINAD reduced, but also the harmonic content is vastly different than
previous examples. In the ideal case no even harmonics were present; now
188 Chapter 8
the even harmonics become quite high due to the asymmetry of the signals.
Second harmonic for this case is -54.7 dB with third harmonic of -59.9 dB
and fourth of -61.9 dB.
Another case worth mentioning is the case when the input signal is
coupled into the references of the window comparator (refp or refn). This is
simulated with the same frequency signal and the same amplitude above (the
case). This time however we connect the parasitic signal in series with
the refp reference. Now the dynamic performance is SINAD = 48.96 dB.
This is almost the same as the ideal case (49.138 dB)! The obvious question
is why is one reference more sensitive to noise than the other (refp)?
The reason is that the reference refp is not amplified through the signal
path. In addition, we know that the error correction can correct comparator
offset errors in excess of 0.25· Looking at the frequency spectrum of the
reconstructed signal we notice again that the odd harmonics are very low
compared with the case. This is illustrated in figure 8 – 10. Notice the
lack of even harmonics when the coupling is into refp.
Figure 8-10. Coupling the input signal into Vpos (solid) and REFp (dotted)
Pipeline A/D - 1.5 bit/stage 189
SUMMARY
• Utilizing the SHA, DAC and error amplifier in one building block as the
MDAC is one of the most compact and beneficial circuit
implementations for a 1.5 bit/stage converter.
• As any serial pipeline converter, the 1.5 bit/stage requires very accurate
interstage gain and DAC function. The comparators used for the window
comparator can be fairly inaccurate given the redundant state used for
error correction.
• Using the MDAC as the main element in a 1.5 bit/stage A/D allows for
the implementation of a serial pipeline converter with good dynamic
performance at high sampling rates. This is accomplished with relatively
low power consumption and at the expense of having pipeline delays.
• It is imperative to match the capacitor units used in the MDAC array not
only in capacitance area itself but also total conductor routing in order to
reduce the mismatch thus maintaining good dynamic performance.
• The most sensitive stages to error are the first stages since farther stages
in the pipeline have their error attenuated by previous stage gain.
coupling of the input signal to the reference voltages refp, refn in the
window comparator do not affect SINAD.
Pipeline A/D - 1.5 bit/stage 191
PROBLEMS
1. Using the spice circuit outlined in the MDAC in figure 8 – 4 , plot the
transfer curve caused by altering the values of C1 and C2 to 1.25 pF
while maintaining the values of C3=C4=1pF.
2. Using the spice circuit outlined in figure 8 – 7 and the MDAC outlined
in figure 8 – 4 , find the time domain signature caused by altering the
values of C1 and C2 to 1.25 pF while maintaining the values of
C3=C4=1pF in X1 at an input frequency fin= 390.625kHz.
3. For problem 8.2 find the SINAD at an input frequency fin= 390.625kHz.
4. How would this error affect the dynamic performance of the 8 bit A/D if
this MDAC is used in X2 while X1 is the nominal circuit in figure 8–7.
8. For the case in problem 7 find the SINAD of the 8-bit A/D of figure 8 –
7 at an input frequency fin= 390.625kHz
Bibliography
Bibliography
13. W. Kester, “Flash ADCs provide the basis for high speed conversion”,
EDN, pp. 101-110, January 4, 1990
14. W. Kester, “DSP test techniques keep flash ADCs in check”, EDN, pp.
133-142, January 18, 1990
15. W. Kester, “Measure flash ADC performance for trouble-free
operation”, EDN, pp.103-114, February 1,1990
16. R.K. Ushani, “Subranging ADCs operate at high speed with high
resolution”, EDN, pp. 155-162, April 11, 1991
17. R.K. Ushani, “Dynamic specifications describe performance of
subranging ADCs”, Datel application note AN-5, Reprinted from EDN
1991
18. M.J. Demler, “Time domain techniques enhance testing of high speed
ADCs”, EDN, pp. 115-120, March 30, 1992
19. IEEE Standard for performance measurements of A/D and D/A
converters for PCM Television Video Circuits – IEEE October 15, 1984
20. M. Koen, “Comparing ADC architectures is a designer’s best bet”,
Electronic Design, pp.119-122, January 22,1987
21. A.G.F. Dingwall, V. Zazzu, “An 8 MHz CMOS subranging 8 bit A/D
converter”, IEEE Journal of Solid State Circuits, vol. SC-20, pp. 1138-
1143, December 1985
22. R.K. Ushani, “Subranging ADCs operate at high speed with high
resolution”, Datel Application note AN-5, Reprinted from EDN 1991
23. F. Goodenough, “Multistep, monolithic 10 and 12 bit ADCs digitize 5 to
20 MHz sine-waves at Nyquist. 12 bit IC ADCs sample at up to 20
MHz”, Electronic Design, pp. 47-59, October 24,1991
24. C.S.G. Conroy, D.W.Cline and P.R.Gray , “An 8 bit 85 MS/s parallel
pipeline A/D converter in 1µm CMOS”, IEEE Journal of Solid State
Circuits. Special Issue on Solid State Circuits, pp. 447–454, April 1993
25. W.C. Black and D. A. Hodges, “Time interleaved converter arrays”,
IEEE Journal of Solid State Circuits, vol.SC-15, pp. 1022-1029,
December 1980
26. K. Poulton, J. Corcoran and T. Hornak, “A 1 GHz 6 bit ADC system”,
IEEE Journal of Solid State Circuits, vol.SC-22, pp.962-970, December
1987
27. P.Louzon, “Decipher high sample rate ADC specs”, Electronic Design,
pp. 91-100, March 20,1995
28. R.E. Leonard, “Data converters: Getting to know dynamic specs”, Datel
Application note, AN-3
29. R.E. Leonard, “Understanding data converters’ frequency domain
specifications”, Datel Application note, AN-4
30. J.D. Giacomini, “High performance ADCs require dynamic testing”,
Electronic Design, pp. 55- 65, August 6, 1992
Bibliography 195
49. J. Van Valburg and R. van de Plassche, “An 8-bit 650 MHz folding
ADC”, IEEE Journal of Solid State Circuits, vol. SC-27, pp. 1662-1666,
December 1992
50. A. Venes, B. Nauta and R. van de Plassche, “Low power folding A/D
converters”, Proceedings of the Workshop Advances in Analog Circuit
Design, Villach, Austria 1995.
51. G.S. Ostrem, “High speed A/D converters for mixed signal ASIC
applications”, Norwegian University of Science and Technology, PhD
thesis, December 1996
52. O. Moldsvor and G.S. Ostrem, “An 8-bit, 200 MSPS folding and
interpolating ADC”, Analog Integrated Circuits and Signal
Processing, 15, pp. 37-47, 1998
53. Hui Pan, “A 3.3V 12 bit, 50 MS/s CMOS A/D converter in 0.6 µm
CMOS with 80 dB SFDR”, UCLA, PhD thesis, December 1998
54. Phillip Alien and Douglas R. Holdberg, “CMOS Analog Circuit
Design”, Saunders College Publishers, 1987
55. P.W. Tuinenga, “SPICE – A guide to circuit simulation & analysis using
Pspice”, Prentice Hall 1988
56. David Cline, “Noise, speed, and power tradeoffs in pipelined A/D
converters”, PhD Thesis, University of California, Berkeley, November,
1995.
57. Stephen H. Lewis and Paul R. Gray, “A pipeline 5 MSPS 9-bit Analog
to Digital Converter”, ISSCC, pp. 210-211, IEEE, February 1987
58. Bernard Ginetti, Paul G.A.Jespers and Andre Vandemeulebroecke, “A
CMOS 13-b Cyclic RSD A/D converter”, IEEE Journal of Solid State
Circuits, vol. SC-27, pp. 957-965, July 1992
59. Michael K. Mayes and Sing W. Chin, “A multistep A/D converter
family with efficient architecture”, IEEE Journal of Solid State Circuits,
December 1989
60. Madhav P.V.Kolluri, “A 12-b 500-ns subranging ADC”, IEEE Journal
of Solid State Circuits, vol. SC-24, pp. 1498-1506, December 1989
61. T.B. Cho and Paul R. Gray, “A 10 b, 20 MSPS, 35 mW pipeline A/D
converter”, Proc. IEEE Custom Integrated Circuits Conference, pp.
23.2.1-23.2.4, May 1994
62. ADC Kazuya Sone, Yoshido Nishida and Naotoshi Nakadai, “A 10-b
100 MSPS pipelined subranging BiCMOS”, IEEE Journal of Solid State
Circuits, December 1993
63. Andrew N. Karanicolas, Hae-Seung Lee and Katilal L. Bacrania, “A 15-
b 1 MSPS digitally self-calibrated pipeline ADC”, IEEE Journal of Solid
State Circuits, December 1993
64. Sehat Sutarja and Paul R. Gray, “A 250 KSPS Pipelined, Analog to
Digital converter, ISSCC, pp. 228-229, IEEE, February 1988
Bibliography 197
Appendix A includes all of the files used for the simulations in the book.
These files are provided for the reader that may be using different software
than the author. The files are categorized by chapters. Each Spice file
contains the appropriate path for the library needed if the circuit is
hierarchical.
200 Appendix A
CHAPTER 1
TDE (SINAD)
ALIASING
CHAPTER 2
COMP5
R11 inp inn 100k
R19 0 inp 100MEG
R20 inn 0 100MEG
Vinp inp 0 PWL
+ 0,-0.5
+ 5E-10,-0.5
+ 1E-09,0.5
Vinn inn 0 0.48v
G1 0 int value
202 Appendix A
E2 1 0 int 0 10
Rp 1 out 0.75k
Cp out 0 1p
CSR int 0 0.5p
D8 2 int DV
D9 int 3 DV
V2 3 0 0
V3 0 2 0
Rg int 0 2.4k
E3 in 0 inp inn 1
R24 in 0 1meg
.END
COMP7_S
.SUBCKT comp7_s inp inn out outb
.model DV D
R11 inp inn 100k
R19 0 inp 100MEG
R20 inn 0 100MEG
inp 0 PWL
+ 0,-0.5
+ 2E-09,-0.5
+ 3E-09,0.5
inn 0 0.495v
G2 0 int value
E2 1 0 int 0 1
Rp 1 pole 0.75k
Cp pole 0 1p
CSR int 0 0.4p
D8 2 int DV
D9 int 3 DV
V2 3 0 0
V3 0 2 0
Rg int 0 24k
E3 in 0 inp inn 1
R24 in 0 1meg
D10 Vth out D
D11 Vth outb D
Gout out outb pole 0 1m
Routb outb Vss 10k
Rout Vss out 10k
* Power rail voltage sources
Vss Vss 0 -5
Vth Vth 0 2
.ENDS comp7_s
Appendix A 203
COMP8A_S
.SUBCKT comp8a_s inp inn outb out
.model DV D
R11 inp inn 100k
R19 0 inp 100MEG
R20 inn 0 100MEG
G2 0 int value
E2 1 0 int 0 1
Rp 1 pole 0.75k
Cp pole 0 1p
CSR int 0 0.4p
D8 2 int DV
D9 int 3 DV
V2 3 0 0
V3 0 2 0
Rg int 0 24k
E3 in 0 inp inn 1
R24 in 0 1meg
D10 outb Vth D
D1 1 out Vth D
Gout outb out pole 0 1m
Routb out Vss 0.8k
Rout Vss outb 0.8k
* Power rail voltage sources
Vss Vss 0-1.3
Vth Vth 0 0
.ENDS comp8a_s
CLAT1
.SUBCKT c_lat1 inp inn clk out outb
* comp with latch
.model DV D
.MODEL ECLFF UEFF (TPCLKLH=1p TPCLKHL=1p)
R11 inp inn 100meg
G1 0 int value
E2 1 0 int 0 10
Rp 1 pole 0.75k
Cp pole 0 1p
CSR int 0 0.5p
D8 0 int DV
D9 int 0 DV
Rg int 0 2.4k
E3 in 0 inp inn 1
R24 in 0 1meg
D11 2 Vth D
Gout 02 pole 0 1m
204 Appendix A
CLAT2
.SUBCKT c_lat2 inp inn clk out outb
.model DV D
.MODEL ECLFF UEFF (TPCLKLH=1p TPCLKHL=1p)
R11 inp1 inn 100meg
G2 0 int value
E2 1 0 int 0 10
Rp 1 pole 0.75k
Cp pole 0 1p
CSR int 0 0.5p
D8 0 int DV
D9 int 0 DV
Rg int 0 2.4k
E3 in 0 inp1 inn 1
R24 in 0 1meg
D11 login Vth D
Gout 0 login pole 0 1m
Routb login Vss 0.8k
U1 DFF out outb $D_HI $D_HI clk login ECLFF
I1 0 int 4m
Vos inp inp1 0.065
* Power rail voltage sources
Vss Vss 0 -1.3
Vth Vth 0 0
.ENDS c_lat2
FASTCOMP
fastcomp
.model q npn (IS=3e-15 BF=100 IKF=25m CJE=0.1P TF=8p JC=0.25P)
.op method=gear
Q1 1 inp 2 Q
Q2 3 inn 2 Q
R1 VDD 1 200
R2 VDD 3 200
Ct1 200.5p
I1 2 0 5ma
Appendix A 205
Q3 4 1 5 Q
Q4 6 3 5 Q
R3 VDD 4 200
R4 VDD 6 200
Ct2 500.5p
I2 5 0 5ma
V1 inp 0 0 AC 1 PWL
+ 0,-0.5
+ IE-09,-0.5
+ 2E-09,0.5
V2 inn 0 0
Q5 outb 4 7 Q
Q6 out 6 7Q
R5 VDD outb 500
R6 VDD out 500
Ct3 7 0 0.2p
I3 7 0 2ma
C1 VDD 1 0.35p
C2 VDD 3 0.35p
C3 VDD 4 0.35p
C4 VDD 6 0.35p
C5 VDD outb 0.8p
C6 VDD out 0.8p
* Power rail voltage sources
VDD VDD 0 5
.END
CHAPTER 3
3BFLASH
3bflash
.model ATOD ATOD (VLMAX=-1.8 VHMIN=-0.8)
.model DV D
.model D D
.inc C:\data\converter\flash\comp8a_s.lib
X1 IN 1 2 3 COMP8A_S
X2 IN 4 5 6 COMP8A_S
X3 IN 7 8 9 COMP8A_S
X4 IN 10 11 12 COMP8A_S
X5 IN 13 14 15 COMP8A_S
X6 IN 16 17 18 COMP8A_S
X7 IN 19 20 21 COMP8A_S
R1 VRT 1 100
R2 1 4 100
206 Appendix A
R3 4 7 100
R4 7 10 100
R5 10 13 100
R6 13 16 100
R7 16 19 100
R8 19 VRB 100
U1 CLOCK 22 clock TPER=8n (0,-1.8) (4n ,-0.8)
U2 OR(4) LSB 23 24 25 26 TPCLKLH=1e-12,TPCLKHL=1e-12
U3 OR(4) B2 23 27 25 28 TPCLKLH=1e-12,TPCLKHL=1e-12
U4 OR(4) MSB 23 27 24 29 TPCLKLH=1e-12,TPCLKHL=1e-12
Vin IN 0 PWL
+ 0,-1
+ 1E-06,1
U5 DFF 23 27 $D_HI $D_HI 22 3 TPCLKLH=1e-12,TPCLKHL=1e-12 IS=0 ECLFF
U6 DFF 27 24 $D_HI $D_HI 22 6 TPCLKLH=1e-12,TPCLKHL=1e-12 IS=0 ECLFF
U7 DFF 24 29 $D_HI $D_HI 22 9 TPCLKLH=1e-12,TPCLKHL=1e-12 IS=0 ECLFF
U8 DFF 29 25 $D_HI $D_HI 22 12 TPCLKLH=1e-12,TPCLKHL=1e-12 IS=0 ECLFF
U9 DFF 25 28 $D_HI $D_HI 22 15 TPCLKLH=1e-12,TPCLKHL=1e-12 IS=0 ECLFF
U10 DFF 28 26 $D_HI $D_HI 22 18 TPCLKLH=1e-12,TPCLKHL=1e-12 IS=0 ECLFF
U11 DFF 26 30 $D_HI $D_HI 22 21 TPCLKLH=1e-12,TPCLKHL=1e-12 IS=0 ECLFF
* Power rail voltage sources
VRT VRT 0 +1V
VRB VRB 0 -1V
.INC 3BFLASH.CMD
16COMPS
R10 13 14 5
R11 14 155
R12 15 12 5
X1 AIN RT_1 clk "U" A15 C_LAT1
X2 AIN 6 clk A15 A14 C_LAT1
X3 AIN 7 clk A14 A13 C_LAT1
X4 AIN 5 clk A13 A12 C_LAT1
X5 AIN 4 clk A12 A11 C_LAT1
X6 AIN 3 clk A11 A10 C_LAT1
X7 AIN 2 clk A10 A9 C_LAT1
X8 AIN clk A9 A8 C_LATl
X9 AIN 13 clk A8 A7 C_LAT1
X10 AIN 14 clk A7 A6 C_LAT1
X11 AIN 15 clk A6 A5 C_LAT1
X12 AIN 12 clk A5 A4 C_LAT1
X13 AIN 11 clk A4 A3 C_LAT1
X14 AIN 10 clk A3 A2 C_LAT1
R17 RB 8 5
X15 AIN 9 clk A2 A1 C_LAT1
X16 AIN 8 clk A1 "D" C_LAT1
.ENDS 16comps
6BADA
6bada
.model OR UGATE (TPLH=lp TPHL=lp)
.inc C:\data\converter\spicc_models\flash\16comps.lib
.OPTIONS ACCT ITL1=500 ITL2=200 ITL4=40 ITL5=0 LIMPTS=10000
.model ATOD ATOD (VLMAX=-1.295 VHMIN=-1.305)
.model DTOA DTOA (TSW0=lp TSWl=lp TSWX=lp TSWZ=lp)
X3 RT RT 1 2 ref1 t48 t49 t50 t51 t52 t53 t54 t55 t56 t57 t58 t59 t60 t61 t62
+ t63 t64 16COMPS
X4 ref1 ref1 3 2 ref2 t32 t33 t34 t35 t36 t37 t38 t39 t40 t41 t42 t43 t44 t45
+ t46 t47 t48 16COMPS
X5 ref2 ref2 4 2 ref3 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29
+ t30 t31 t32 16COMPS
X6 ref3 ref3 5 2 RB 6 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16
+ 16COMPS
Vin 1 0 PWL
+ 0,0
+ 1.6E-07, 1.6
U1 OR(32) 1sb t63 t61 t59 t57 t55 t53 t51 t49 t47 t45 t43 t41 t39 t37 t35 t33
+ t31 t29 t27 t25 t23 t21 t19 t17 t15 t13 t11 t9 t7 t5 t3 t1
U2 OR(32) b5 t63 t62 t59 t58 t55 t54 t51 t50 t47 t46 t43 t42 t39 t38 t35 t34
+ t31 t30 t27 t26 t23 t22 t19 t18 t15 t14 t11 t10 t7 t6 t3 t2
U3 OR(32) b4 t63 t62 t61 t60 t55 t54 t53 t52 t47 t46 t45 t44 t39 t38 t37 t36
+ t31 t30 t29 t28 t23 t22 t21 t20 t15 t14 t13 t12 t7 t6 t5 t4
U4 OR(32) b3 t63 t62 t61 t60 t59 t58 t57 t56 t47 t46 t45 t44 t43 t42 t41 t40
208 Appendix A
+ t31 t30 t29 t28 t27 t26 t25 t24 t15 t14 t13 t12 t11 t10 t9 t8
U5 OR(32) b2 t63 t62 t61 t60 t59 t58 t57 t56 t55 t54 t53 t52 t51 t50 t49 t48
+ t31 t30 t29 t28 t27 t26 t25 t24 t23 t22 t21 t20 t19 t18 t17 t16
U6 OR(32) msb t63 t62 t61 t60 t59 t58 t57 t56 t55 t54 t53 t52 t51 t50 t49 t48
+ t47 t46 t45 t44 t43 t42 t41 t40 t39 t38 t37 t36 t35 t34 t33 t32
U7 CLOCK 2 clock TPER=1n (0,-1.8) (0.5n ,-0.8)
Vref 7 0 1.6V
X7 $D_LO $D_LO lsb b5 b4 b3 b2 msb 7 ADA_OUT DAC8BIT PARAMS:
TDELAY=lp
R1 1 3 1k
R2 3 4 1k
R3 4 5 1k
C1 3 0 0.7p
C2 4 0 0.7p
C3 5 0 0.7p
* Power rail voltage sources
VRT RT 0+1.6V
VRB RB 0 0V
.INC 6bada_DLY1.CMD
.END
6BADA_DLY1
6bada_dlyl
.model OR UGATE (TPLH=lp TPHL=lp)
.inc C:\data\converter\spice_models\flash\l 6comps.lib
.OPTIONS ACCT ITL1=500 ITL2=200 ITL4=40 ITL5=0 LIMPTS=10000
.model ATOD ATOD (VLMAX=-1.295 VHMIN=-1.305)
.model DTOA DTOA(TSWO=lp TSW1=lpTSWX=lp TSWZ=lp)
X3 RT RT 1 2 ref1 t48 t49 t50 t51 t52 t53 t54 t55 t56 t57 t58 t59 t60 t61 t62
+ t63 t64 16COMPS
X4 ref1 ref1 3 2 ref2 t32 t33 t34 t35 t36 t37 t38 t39 t40 t41 t42 t43 t44 t45
+ t46 t47 t48 16COMPS
X5 ref2 ref2 4 2 ref3 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29
+ t30 t31 t32 16COMPS
X6 ref3 ref3 5 2 RB 6 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16
+ 16COMPS
Vin 1 0 PWL
+ 0,0
+ 1.6E-07, 1.6
U1 OR(32) lsb t63 t61 t59 t57 t55 t53 t51 t49 t47 t45 t43 t41 t39 t37 t35 t33
+ t31 t29 t27 t25 t23 t21 t19 t17 t15 t13 t11 t9 t7 t5 t3 t1
U2 OR(32) b5 t63 t62 t59 t58 t55 t54 t51 t50 t47 t46 t43 t42 t39 t38 t35 t34
+ t31 t30 t27 t26 t23 t22 t19 t18 t15 t14 t11 t10 t7 t6 t3 t2
U3 OR(32) b4 t63 t62 t61 t60 t55 t54 t53 t52 t47 t46 t45 t44 t39 t38 t37 t36
+ t31 t30 t29 t28 t23 t22 t21 t20 t15 t14 t13 t12 t7 t6 t5 t4
U4 OR(32) b3 t63 t62 t61 t60 t59 t58 t57 t56 t47 t46 t45 t44 t43 t42 t41 t40
+ t31 t30 t29 t28 t27 t26 t25 t24 t15 t14 t13 t12 t11 t10 t9 t8
Appendix A 209
U5 OR(32) b2 t63 t62 t61 t60 t59 t58 t57 t56 t55 t54 t53 t52 t51 t50 t49 t48
+ t31 t30 t29 t28 t27 t26 t25 t24 t23 t22 t21 t20 t19 t18 t17 t16
U6 OR(32) msb t63 t62 t61 t60 t59 t58 t57 t56 t55 t54 t53 t52 t51 t50 t49 t48
+ t47 t46 t45 t44 t43 t42 t41 t40 t39 t38 t37 t36 t35 t34 t33 t32
U7 CLOCK 2 clock TPER=ln (0,-1.8) (0.5n ,-0.8)
Vref 7 0 1.6V
X7 $D_LO $D_LO Isb b5 M b3 b2 msb 7 ADA_OUT DAC8BIT PARAMS:
TDELAY=lp
R1 1 3 1k
R2 3 4 1k
R3 4 5 1k
C1 3 0 0.7p
C2 4 0 0.7p
C3 5 0 0.7p
* Power rail voltage sources
VRT RT 0 + 1.6V
VRB RB 0 0V
.END
CHAPTER 4
NLR
.INC c:\data\converter\sha\vcr.lib
X1 B A CONT A VCR PARAMS: RNOM=1
Vin A 0 0 2 PWL
+ 0,0
+ 1.3E-07,5
Vcont CONT 0 5
RL B 0 1u
.END
VCR
* Voltage controlled resistor model
.SUBCKT VCR 1 2 3 4
+ PARAMS: RNOM=1 ;nominal R at V(3,4)=0V
RIN 3 4 1G ;to avoid open node
* Generate voltage proportional to resistance vs controlling voltage (3,4)
* the normalized R values (R/RNOM) can not be zero.
ER vr 0 POLY(l) (3,4) 48.55 37.33 -27 7.8 -0.773
RE vr 0 1 g ;dummy load
* Voltage dependent resistor
GR 1 2 VALUE = {V(l,2)/RNOM/(V(vr)+1u)} ;1u added to avoid divide by zero
210 Appendix A
.ENDS VCR
DROOP
.MODEL SW VSWITCH (VON=2 VOFF=1.95 RON=1 ROFF=1000G)
.OPTION OPTS NUMDGT=8 FILOUT METHOD=GEAR
V1 IN 0 SIN 2 1.95 1.07421875meg
R1 IN 0 1meg
S1 IN shout 1 T_H1 0 SW
C1 shout1 0 10p IC=2.48
Vth T_H1 0 PULSE 0 5 0 0. ln 0.ln 1n 40n
R3 shout1 0 1g
Idroop shout1 0 1n
.END
JITTER
.MODEL SW VSWITCH (VON=2 VOFF=1.995 RON=1 ROFF=1000G)
.INC c:\data\converter\sha\vcr.lib
.OPTION OPTS NUMDGT=8 FILOUT METHOD=GEAR
V1 IN 0 PWL
+ 0,0
+ 2.5E-10,1
R1 IN 0 1 meg
S1 IN shout1 T_H N SW
C1 shoutl 0 l0p IC=2.48
Vth T_H 0 PWL
+ 0,4
+ 2.5E-10,0
R3 shout l 0 1g
R4 IN 0 1 meg
S2 IN shout2 T_H 0 SW
C2 shout2 0 l0p IC=2.48
R6 shout2 0 1g
Vnoise N 0 FILE v1.dat
.END
NONLINEAR CAP
.MODEL SW VSWITCH (VON=2 VOFF=1.95 RON=1 ROFF=1000G)
.INC c:\data\convertertsha\vcr.lib
.OPTION OPTS NUMDGT=8 FILOUT METHOD=GEAR
V1 IN 0 SIN 2 1.95 4.98046875meg
Appendix A 211
R1 IN 0 1meg
S1 IN shout1 T_H1 0 SW
C1 shout1 0 poly 10p l0.000lp l0.0000lp
Vth T_H1 0 PULSE 0 5 0 0.5n 0.5n 20n 40n
R3 shout10 1g
R4 IN 0 1meg
S2 IN shout2 T_H1 0 SW
C2 shout2 0 l0p IC=2.48
R6 shout2 0 1g
.END
CHAPTER 5
COMP1SAR
.SUBCKT comp1sar inp inn logout
* complsar
*
R12 inp inn l00meg
G2 0 int value
E3 1 0 int 010
R13 1 pole 1k
C1 pole 0 1p
C2 int 0 0.25p
212 Appendix A
D9 0 int DV
D10 int 0 DV
R14 int 0 4.5k
E4 in 0 inp inn 1
R25 in 0 1 meg
E5 anout 0 TABLE {V(pole)*10} -2,0V 2,4V
U20 BUF logout anout
.ENDS comp1sar
MACRO_SAR
.SUBCKT macro_sar ADA IN CLK IN1
* 8 BIT ADC SAR a
.inc C:\data\converter\sar\comp1sar.lib
.MODEL SREGD USREG TPLH=2n TPHL=2n
.MODEL NANDD UGATE (TPLH=2n TPHL=2n)
.MODEL BUFD UGATE (TPLH=2n TPHL=2n)
.MODEL INVD UGATE (TPLH=2n TPHL=2n)
U10 DFF MSB 1 T7 D7 $D_HI $D_HI TPCLKLH=2n TPCLKHL=2n
U11 DFF B6 2 T6 D6 $D_HI $D_HI TPCLKLH=2n TPCLKHL=2n
U12 DFF B5 3 T5 D5 $D_HI $D_HI TPCLKLH=2n TPCLKHL=2n
U13 DFF B4 4 T4 D4 $D_HI $D_HI TPCLKLH=2n TPCLKHL=2n
U14 DFF B3 5 T3 D3 $D_HI $D_HI TPCLKLH=2n TPCLKHL=2n
U16 DFF B2 6 T2 D2 $D_HI $D_HI TPCLKLH=2n TPCLKHL=2n
U17 DFF B1 7 T1 D1 $D_HI $D_HI TPCLKLH=2n TPCLKHL=2n
U18 DFF B0 8 T0 D0 $D_HI $D_HI TPCLKLH=2n TPCLKHL=2n
X1 B0 Bl B2 B3 B4 B5 B6 MSB ref DAC DAC8BIT
Vref ref 0 2.048
R1 IN 0 1meg
R2 DAC ADA 100
C1 ADA 0 20p
X2 ADA IN CMP comp1sar
U19 SREG(10) SBGN S7 S6 S5 S4 S3 S2 S1 S0 S_1 CLRCMD CLK 9 SREGD
U24 NAND T7 S7 CLKD
U25 NAND T6 S6 CLKD
U26 NAND T5 S5 CLKD
U27 NAND T4 S4 CLKD
U28 NAND T3 S3 CLKD
U29 NAND T2 S2 CLKD
U30 NAND T1 S1 CLKD
U31 NAND T0 S0 CLKD
U32 BUF CLKD CLK BUFD
U33 INV CLKBD CLK INVD
U61 AND D7 CLRCMD 10
U62 AND D6 CLRCMD 11
U63 AND D5 CLRCMD 12
U64 AND D4 CLRCMD 13
U65 AND D3 CLRCMD 14
Appendix A 213
DAC8NL
.SUBCKT DAC8NL_LSB D0 D1 D2 D3 D4 D5 D6 D7 REF OUT PARAMS:
TDELAY=1ns
* 8-bit DAC (digital-to-analog converter).
* The digital inputs D0 thru D7 MUST be logic signals - they must be
* connected to U digital device outputs. If you want to apply analog voltages
* insert U BUF elements between the signals and inputs.
V1 1 0 1V
O0 DTOA A0 0 1 D0 DACMODDA
R0 A0 0 1G
O1 DTOA Al 0 1 D1 DACMODDA
R1 A1 0 1G
O2 DTOA A2 0 1 D2 DACMODDA
R2 A 20 1G
03 DTOA A3 0 1 D3 DACMODDA
R3 A3 0 1G
O4 DTOA A4 0 1 D4 DACMODDA
R4 A4 0 1G
O5 DTOA A5 0 1 D5 DACMODDA
R5 A5 0 1G
O6 DTOA A6 0 1 D6 DACMODDA
R6 A6 0 1G
O7 DTOA A7 0 1 D7 DACMODDA
R7 A7 0 1G
E1 OUT 0 VALUE
+ {(V(A7)*12.8+V(A6)*6.4+V(A5)*3.2+V(A4)*1.6+V(A3)*.8+V(A2)*.4+V(A1)*.2+
+ V(A0)*0.2)/25.6*V(REF)}
ROUT OUT 0 1G
.MODEL DACMODDA DTOA (RLO0=200 RHI0=10MEG RLO1=10MEG RHI1=200
+ RLOX=10MEG RHIX=10MEG RLOZ=10MEG RHIZ=10MEG
214 Appendix A
CHAPTER 6
8B_FOLD
.inc C:\data\converter\fold\sincos.lib
.inc C:\data\converter\fold\interp1.lib
.inc C:\data\CONVERTER\FOLD\CDP.LIB
.inc C:\data\converter\fold\fold_comp.lib
.options acct lvltim=1 numdgt=6 chgtol=1e-16 method=gear
.model ATOD ATOD (VLMAX=1.998 VHMIN=2.002)
.model OR1 UGATE (TPLH=lp TPHL=lp)
V1 in 0 0.22 PWL
+ 0,0.22
+ 2.5E-06,1.98
R1 c3 0 10
R2 s3 0 10
X2 s3 c3 os3 s4 INTERP1
Vos os3 0 -0.03925
X3 c3 c3 os3 1 INTERP1
X4 s3 s3 os3 2 INTERP1
El c4 0 1 2 0.5
R3 c4 0 10
X5 s4 c4 0 s5 INTERP1
X6 c4 c4 0 3 INTERP1
X7 s4 s4 0 4 INTERP1
E2 c5 0 3 4 0.5
R4 c5 0 10
X8 s5 c5 0 s6 INTERP1
X9 c5 c5 0 5 INTERP1
X10 s5 s5 0 6 INTERP1
E3 c6 0 5 6 0.5
R5 c6 0 10
U1 CLOCK clk clock TPER=10n 0 0 9n 1
U2 OR B2 7 8 OR1
X18 os3 s3 clk B3 9 FOLD_COMP
X19 s4 0 clk B4 10 FOLD_COMP
X20 s5 0 clk B5 11 FOLD_COMP
X21 s6 0 clk B6 12 FOLD_COMP
X22 in TQ clk l 7 13 FOLD_COMP
X23 in HLF clk1 13 8 FOLD_COMP
X24 in OQ clk1 8 14 FOLD_COMP
U3 OR B1 7 13 OR1
Appendix A 215
SINCOS
.inc C:\data\CONVERTER\FOLD\CDP.LIB
Vin in 0 0.22
Rloads 0 outs 0.2
X1 in 1 outs 2 cdp
X3 in 3 outs 4 cdp
X5 in 5 outs 6 cdp
V3 7 0 2.2
G1 tsts 0 value {0.04+0.02456*sin(v(in)*9*3.1415/1.98)}
R7 tsts 0 1
X6 in 8 outs 9 cdp
X7 in 10 outs 11 cdp
R8 12 1 500
R9 12 2 500
R10 13 2 500
R11 13 3 500
R12 14 3 500
R13 14 4 500
R14 15 4 500
R15 15 5 500
R16 16 5 500
R17 16 6 500
R18 17 6 500
R19 17 8 500
216 Appendix A
R20 18 8 500
R21 18 9 500
R22 19 9 500
R23 19 10 500
R24 20 10 500
R25 20 11 500
X8 in 12 outc 13 cdp
X9 in 14 outc 15 cdp
X10 in 16 outc 17 cdp
X11 in 18 outc 19 cdp
Rloadc outc 0 0.2
R26 21 11 500
R27 21 7 500
X12 in 20 outc 21 cdp
V4 1 0 0.0
G2 tstc 0 value {0.04-0.02456*cos(v(in)*9*3.1415/1.98)}
R28 tstc 0 1
.END
CDP
cdp
Vin vin 0 0.5 AC 1
Vinlo reflo 0 0.4
G1 0 int value
E3 1 0 int 0 1
Rp 1 2 100
Cp 2 0 0.3p
E1 n1 0 vin reflo 1
Rin n1 0 1meg
E2 n2 0 vin refhi 1
Vinhi refhi 0 0.6
G2 int 0 value
R1 int 0 200
R2 0 n2 1meg
Gout 0 out 2 0 1
R3 out 0 400
.END
INTERP1
.SUBCKT interp1 A B OS AB
* interp1
* cdp
G1 0 n4 value
Rp 1 AB 100
Appendix A 217
Cp AB 0 lp
E1 n1 0 A OS 1
Rin n1 0 1meg
R1 n4 0 200
G2 0 n3 value {V(n4)/200*TANH(V(n2)/0.1)}
E2 n2 0 B os 1
R2 n2 0 1meg
R3 n3 0 200
E3 1 0 n3 0 4
.ENDS interp l
FOLD_COMP
.SUBCKT fold_comp inp inn CLK Q QB
* fold_comp
R12 inp inn 100meg
G2 0 int value
E3 1 0 int 0 1
R13 1 pole 1k
C1 pole 0 1p
C2 int 0 0.25p
D9 0 int DV
D10 int 0 DV
E4 in 0 inp inn 1
R25 in 0 1 meg
E5 anout 0 TABLE {V(pole)*10} -2m, 0V 2m,4V
U21 DFF q QB $D_HI $D_HI CLK anout
Rsr int 0 4k
.ENDS fold_comp
CHAPTER 7
16COMPS2
.SUBCKT 16comps2 RT RT_1 AIN clk RB "D" A1 A2 A3 A4 A5 A6 A7 A8 A9 A10
A11 A12 A13 A14 A15 "U"
* 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
* 16comps2
* 4 bit flash
.model OR UGATE (TPLH=1p TPHL=1p)
.model ATOD ATOD (VLMAX=-1.295 VHMIN=-1.305)
.inc C:\data\converter\pipeline\c_lat2.1ib
R8 1 2 5
R7 2 3 5
218 Appendix A
R6 3 4 5
R5 4 5 5
R1 RT RT_1 5
R2 RT_1 6 5
R3 6 7 5
R4 7 5 5
R16 8 9 5
R15 9 10 5
R14 10 11 5
R13 1112 5
R9 1 13 5
R10 13 14 5
R11 14 15 5
R12 15 12 5
X1 AIN RT_1 clk "U" A15 C_LAT2
X2 AIN 6 clk A15 A14 C_LAT2
X3 AIN 7 clk A14 A13 C_LAT2
X4 AIN 5 clk A13 A12 C_LAT2
X5 AIN 4 clk A12 A11 C_LAT2
X6 AIN 3 clk A11 A10 C_LAT2
X7 AIN 2 clk A10 A9 C_LAT2
X8 AIN 1 clk A9 A8 C_LAT2
X9 AIN 13 clk A8 A7 C_LAT2
X10 AIN 14 clk A7 A6 C_LAT2
X11 AIN 15 clk A6 A5 C_LAT2
X12 AIN 12 clk A5 A4 C_LAT2
X13 AIN 11 clk A4 A3 C_LAT2
X14 AIN 10 clk A3 A2 C_LAT2
R17 RB 8 5
X15 AIN 9 clk A2 A1 C_LAT2
X16 AIN 8 clk A1 "D" C_LAT2
.ENDS 16comps2
THR4P4
.inc C:\data\converter\pipeline\4B_flash.lib
.model OR UGATE(TPLH=1p TPHL=1p)
.model ATOD ATOD (VLMAX=-1.295 VHMIN=-1.305)
.OPTION OPTS METHOD=GEAR
.model DTOA DTOA (TSW0=1p TSW1=1p TSWX=1p TSZ=1p)
.MODEL lat1 UGFF (TPCLKLH=0.5n TPCLKHL=0.5n)
.MODEL SW VSWITCH (VON=2 VOFF=1.5 RON=100 ROFF=1000G)
.inc C:\data\converter\pipeline\5B_FLASH.lib
.model NOR UGATE (TPLH=1p TPHL=1p)
.model PSREG USREG (TPLH=1p TPHL=1p TPLOAD=1p)
.model ADD UALU (TPLH=1p TPHL=1p)
X1 1 2 SHOUT1 CRS D3 D2 D1 D0 4B_flash
Vtop rtop 0 2.56
Appendix A 219
THR4P5
.inc C:\data\converter\pipeline\4B_flash.lib
.model OR UGATE (TPLH=1p TPHL=1p)
.model ATOD ATOD (VLMAX=-1.295 VHMIN=-1.305)
.OPTION OPTS NUMDGT=10 FILOUT METHOD=GEAR
.model DTOA DTOA (TSW0=1p TSW1=1p TSWX=1p TSZ=1p)
.MODEL lat1 UGFF (TPCLKLH=0.5n TPCLKHL=0.5n)
.MODEL SW VSWITCH (VON=2 VOFF=1.5 RON=100 ROFF=1000G)
.inc C:\data\converter\pipeline\5B_FLASH.lib
.model NOR UGATE (TPLH=1p TPHL=1p)
.model PSREG USREG (TPLH=1p TPHL=1p TPLOAD=1p)
.model ADD UALU (TPLH=1p TPHL=1p)
X1 1 rbot SHOUT1 CRS D3 D2 D1 D0 4B_flash
Vtop rtop 0 2.56
Vbot rbot 0 0
Vin IN 0 SIN 1.28 1.15 195.3125k
X9 D0 D1 D2 D3 rtop 2 DAC4BIT PARAMS: TDELAY=1p
Eresidue res_gain 0 SHOUT2 0 8
220 Appendix A
4B_FLASH
.SUBCKT4B_flash Ref_top Ref_bot AN_IN clk MSB B2 B3 LSB
.model OR UGATE (TPLH=1pTPHL=1p)
.inc C:\data\converter\pipeline\16comps2.lib
.options acct lvltim=1 numdgt=6 chgtol=1e-16
.model ATOD ATOD (VLMAX=-1.295 VHMIN=-1.305)
.model DTOA DTOA (TSW0=1p TSW1=1p TSWX=1p TSWZ=1p)
X4 Ref_top Ref_top AN_IN clk Ref_bot 1 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12
Appendix A 221
5B_FLASH
.SUBCKT 5B_FLASH ref_top AN_IN clk refb lsb b4 b3 b2 msb
*5bada
.model OR UGATE (TPLH=1p TPHL=1p)
.inc C:\data\converter\pipeline\16comps2.lib
.options acct 1vltim=1 numdgt=6 chgto1=1e-16
.model ATOD ATOD (VLMAX=-1.295 VHMIN=-1.305)
.model DTOA DTOA (TSW0=1p TSW1=1p TSWX=1p TSWZ=1p)
X5 ref_top ref_top AN_IN clk ref3 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26
+ t27 t28 t29 t30 t31 t32 16COMPS2
X6 ref3 ref3 AN_IN clk refb 1 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14
+ t15 t16 16COMPS2
U15 OR(17) b3 t32 t31 t30 t29 t28 t23 t22 t21 t20 t15 t14 t13 t12 t7 t6 t5 t4
+ OR
U16 OR(17) b2 t32 t31 t30 t29 t28 t27 t26 t25 t24 t15 t14 t13 t12 t11 t10 t9
+ t8 OR
U17 OR(17) msb t32 t31 t30 t29 t28 t27 t26 t25 t24 t23 t22 t21 t20 t19 t18 t17
+ t16 OR
U18 OR(17) lsb t32 t31 t29 t27 t25 t23 t21 t19 t17 t15 t13 t11 t9 t7 t5 t3 t1
+ OR
U19 OR(17) b4 t32 t31 t30 t27 t26 t23 t22 t19 t18 t15 t14 t11 t10 t7 t6 t3 t2
+ OR
.ENDS 5B_FLASH
CHAPTER 8
1P5B8
.MODEL SW VSWITCH (VON=2 VOFF=1.995 RON=100 ROFF=1000G)
.OPTION OPTS NUMDGT=7 FILOUT METHOD=GEAR LVLTIM=1 PIVREL=1e-6
.include c:\data\converter\spice_models\1p5\sub_mdac.lib
.model dff1 ueff (tpclkhl=1p tpclklh=1p)
222 Appendix A
SUBMDAC
.SUBCKT sub_mdac inp inn cm refp refn VNEG VPOS bi bi+1 ph1a ph1 ph2 out outb
.model inv1 ugate (tphl=1p tplh=1p)
.model and1 ugate (tphl=1p tplh=1p)
.model dff1 ueff (tpclkhl=1p tpclklh=1p)
U18 AND(3) bi a bb ph2 and1
U19 AND x ab ph2 and1
U20 AND bi+1 b ph2 and1
S2 inp 1 ph1 0 SW
S3 inn 2 ph1 0 SW
S4 VNEG 1 x 0 SW
S5 VPOS 1 bi+1 0 SW
S6 VPOS 2 x 0 SW
S7 VNEG 2 bi+1 0 SW
S8 outb 3 ph2 0 SW
S9 out 4 ph2 0 SW
S10 5 cm ph1a 0 SW
S11 6 cm ph1a 0 SW
C1 1 6 1p
C2 2 5 1p
E2 7 cm 8 cm -0.5
C3 6 3 1p
C4 5 4 1p
S12 3 inp ph1 0 SW
S13 4 inn ph1 0 SW
E3 9 cm cm 8 -0.5
R1 10 8 10k
C5 8 cm 1p
E7 10 cm 6 5 2e3
S14 5 6 ph1a 0 SW
S15 2 1 bi 0 SW
E9 11 12 inp refn 50
V4 Vth 0 1.6
E10 13 14 inp refp 50
E12 14 Vth refn inn 50
E13 12 Vth refp inn 50
R2 7 outb 500
R3 9 out 500
U27 INV 15 ph1a inv1
U28 DFF a ab $D_HI $D_HI 15 11 dff1
U29 DFF b bb $D_HI $D_HI 15 13 dff1
.ENDS sub_mdac
Appendix B
APPENDIX B
SPICE OPTIONS
...One of the most important commands in the SPICE input file is the .OPTIONS
statement....
The book also suggests a set of options values that the author found to be
reliable for most circuits, including the converters of this book. The
suggested options are:
226 Appendix B
In some cases the options are different than suggested above due to the fact
that some circuits are more complex. In those cases the user is encouraged to
use the options of the individual files contained in the examples. An example
of such a case is the serial 1.5 bit/stage pipeline A/D. In this case we are
dealing with a switch cap application that does not include a DC path from
many nodes to the ground. This is a particular difficult case for SPICE to
deal with. For this particular simulation several ambiguous but necessary
options were used:
LVLTIM is the parameter defining the time step control algorithm
during the transient simulation. In our example we set LVLTIM =1 which
selects the iteration-count time step control algorithm, (the Topspice default
is 2 which sets for the local truncation error algorithm).
PIVREL is one of the parameters related to the numerical pivoting
algorithm. This option defines the ratio between the largest entry in the
conductance array of the circuit matrix. In our example PIVREL = 1E-6
(compared with the Topspice default of 1E-3).
TRTOL and CHGTOL are the least understood SPICE parameters.
TRTOL was a parameter added in SPICE to adjust the step size. In our
example we used TRTOL=1 and CHGTOL=1e-16 while the Topspice
defaults are TRTOL= 7 and CHGTOL=1e-14.
All these options just mentioned were found by trial and error given the
difficulty in achieving convergence.
correlation · 17, 88
current · 27, 43, 50
A
accuracy · 5, 25, 32, 54, 77, 97, 103, 105, D
106, 107, 110, 114, 115, 116, 126,
132, 133, 134, 138, 143, 148, 149, D/A · 5, 97, 153, 160, 182, 194
152, 153, 155, 158, 160, 163, 166, decoder · 47, 48, 51, 67
168, 171, 172, 184, 187 degeneration · 29, 124, 126, 127, 132,
alias · 73 143, 145
aliasing · 12 delay · 31, 34, 43
amplifier · 36 demuxed · 111
aperture · 10, 11, 17 differential pair · 27, 28, 30, 36, 40, 43,
architecture · 25, 143, 149, 171, 195, 196 56, 62, 123, 124, 126, 129, 143, 145,
177
diode · 30, 31, 33, 34, 40
B distortion · 5, 7, 13, 84
DLE · 5, 13, 17, 55, 57, 60
bandwidth · 7, 18, 27, 31, 41, 43, 54, 69,
99, 103, 105, 107, 108, 126, 134, 137,
144, 152, 154, 163, 177, 182, 186 E
beat frequency · 15, 16, 17, 23, 54, 103,
107, 108, 113, 116, 139, 182 ENOB · 13, 14, 21, 54, 105, 107, 108,
Bessel · 142 113, 114, 155, 156, 164, 165, 187
bipolar · 30, 40, 124 envelope test · 15, 17, 20, 54
error correction · 68, 153, 154, 158, 159,
160, 161, 162, 165, 166, 168, 169,
C 171, 173, 180, 182, 188, 189
calibration · 153, 197
capacitance · 7, 26, 27, 58, 59, 66, 75, 76, F
77, 78, 79, 84, 93, 119, 143, 186, 187,
189, 191 feedback · 39, 70, 145, 178, 186
CDP · 124, 125, 126, 127, 130, 132, 141, feedthrough · 77, 84, 85, 92, 93
143, 144, 145, 214, 215, 216 fine converter · 148, 149, 150, 152, 153,
CMOS · 40, 126 154, 156, 159, 160, 166, 168
CMRR · 28, 98, 178 flash converter · 27, 45, 49, 50, 55, 58,
coarse converter · 68, 137, 148, 150, 152, 60, 61, 64, 67, 97, 105, 115, 119, 120,
154, 156, 158, 165, 168 127, 137, 138, 140, 143, 153
coherent test · 15, 17, 20 folding A/D · 119, 120, 124, 126, 129,
common-mode · 28, 43, 98, 176, 178, 130, 133, 134, 135, 137, 138, 139,
179, 182, 186, 187 140, 141, 142, 143, 144, 196
conversion cycle · 109, 110, 173 Fourier · 12, 17, 70
Index
P S
parasitic · 26, 58, 59, 75, 76, 77, 79, 93, Sample & Hold · 67, 68, 69, 70, 71, 73,
186, 188 74, 75, 76, 77, 78, 79, 81, 82, 83, 84,
Parseval · 14 89, 90, 91, 92, 93, 100, 109, 115, 116,
phase · 9, 44, 70, 71, 97, 127, 131, 132, 117, 134, 137, 147, 148, 153, 154,
134, 138, 172, 173, 175, 178, 179, 163, 165, 172, 173, 176, 178, 189
182, 187 sampling instance · 9, 86, 87, 89, 109,
pipeline · 67, 109, 134, 147, 149, 151, 113
152, 153, 155, 157, 158, 159, 162, sampling rate · 1, 73, 113, 139, 155, 189
164, 165, 166, 168, 171, 172, 174, SAR · 95, 96, 97, 98, 99, 100, 101, 102,
180, 181, 183, 185, 186, 189, 194, 103, 105, 106, 107, 108, 109, 110,
196, 197, 217, 218, 219, 220, 221, 226 115, 116, 171, 173, 212
PMOS · 79, 81, 176 segment · 5, 17, 149, 152, 153, 158
pole · 31, 40, 43, 79, 83, 106, 163, 184, settling · 7, 17, 99, 103, 105, 106, 107,
202, 203, 204, 211, 212, 217 152, 163, 182, 184, 186
preprocessing · 120, 121, 122, 123, 124, SFDR · 8, 9, 14, 23, 153, 168, 196
126, 127, 128, 130, 131, 134 signal dependency · 83
probability · 9 SINAD · 8, 13, 14, 19, 20, 21, 23, 54, 55,
propagation delay · 32, 35, 37, 40, 41, 49, 57, 59, 61, 63, 65, 66, 104, 105, 108,
51, 65, 154 113, 114, 141, 142, 155, 156, 164,
165, 166, 182, 186, 187, 188, 190,
191, 192, 200
Q slew-rate · 7, 13, 17, 25, 27, 35, 36, 37,
38, 43, 45, 54, 60, 61, 62, 63, 64, 65,
quantization · 11, 111, 138
66, 69, 90, 103, 105, 136, 145, 178
quantized · 148
SNR · 7, 8,10, 11, 13, 14, 23
spectrum · 8, 17, 71, 73, 103, 104, 112,
R 113, 142, 155, 156, 164, 165, 188
speed · 105, 106, 107
random · 10, 77, 89 Spice analysis · 49
reconstruction · 5, 6, 12, 56, 160, 182, spurious · 116, 152
185, 186 subranging · 138, 147, 194, 196
redundancy · 149 substrate · 26, 58
reference · 25, 44, 45, 124, 130, 145, 160, switch · 31, 34, 73,75, 76, 77, 79, 80, 81,
171, 173, 175, 178, 179, 182, 190 82, 83, 84, 85, 87, 89, 92, 93, 100,
relative accuracy · 158 109, 138, 153, 163, 173, 175, 176,
resistor · 80, 83 187, 226
resolution · 7, 14, 18,19, 20, 25, 45, 46, synchronization · 68, 120, 148
53, 54, 57, 61, 111, 148, 152, 153,
158, 160, 168, 171, 182, 187, 194
Index
T U
TDE · 8, 13, 14, 19, 21, 54, 83, 88, 91, uncertainty · 9, 10, 11, 17, 77
114, 116, 145, 156, 200
technique · 45, 46, 53, 65, 109, 110, 119,
134, 171, 173, 175
V
technology · 26, 40, 171, 177
voltage reference · 47, 49, 115, 130, 169
terminology · 20
·28, 40, 79, 87, 126
test · 14, 15, 54, 194
THD · 7, 8, 13, 14, 23, 87, 93
Thermometer code · 47, 48, 49, 51 W
threshold · 9, 40, 51, 56, 79, 85, 93, 127,
140, 152, 156, 160, 163, 165, 168, waveform · 38, 61, 121, 127, 128, 131,
176, 195 133, 195
topology · 26, 27, 45, 63, 67, 68, 95, 97, window · 18, 19, 173, 188, 189, 190
102, 105, 147, 148, 149, 158, 171
transistor · 27, 28, 30, 35, 40, 42, 54, 56, Z
79, 126
transition · 2, 3, 4, 13, 23, 47, 48, 69, 85, zero crossing · 120, 127, 128, 129, 134,
87, 103, 131, 158, 178 143
trim · 153, 168