Documente Academic
Documente Profesional
Documente Cultură
Final Report
Ivar Lkken
Side 1
05.05.2006
1 Introduction
This report is the end product of the PhD-level course FE8113 High Speed Analog to Digital Converters at the Circuits and Systems group at NTNU. The intention of the course has been to give the students a detailed insight into advanced Analog to Digital Converter (ADC) design and modelling, with special emphasis on modern and state of the art techniques. The focus has been on the pipeline ADC architecture and application of digital signal post-processing to overcome its inherent limitations. This is a popular research field in modern ADC design. The report is, like the course, divided into three main parts. The first part deals with the analog to digital conversion fundamental properties. Although this may seem basic, a thorough understanding of the fundamentals in analog to digital conversion is absolutely necessary to understand modern ADC design. It begins by explaining the processes of sampling and quantization and provides an overview of different quantization models. During these chapters, the reader will be given insight into aliasing and quantization distortion, the argument for dithering as well as the background for the infamous additive noise model. Next, ADC non-idealities and related performance numbers will be reviewed. To be able to read and interpret ADC specifications and performance data, one must be familiar with a range of quality figures and also what they will mean exactly in terms of non ideal behaviour. The second part will begin by introducing the pipeline ADC, the architecture around which this course has been focused. Its mode of operation will first be explained and next an overview will be given of the construction of the pipeline stage, including an explanation of digital redundancy and the 1.5-bit approach. Next, stage non-idealities, which limit the practical performance of pipeline ADCs, will be reviewed. This will give the reader insight into what challenges are found in designing high-speed, high-resolution converters. That prompts the introduction of gain error calibration and gain calibration techniques which is a key topic of the course. The principles of gain error calibration are reviewed together with the three different fundamental approaches; foreground calibration, background calibration and calibration with parallel reference ADC. Finally, to conclude the report, some state of the art techniques are presented. These include some proposed improvements to the gain error calibration schemes and an approach to eliminate the OTA in the pipeline stage. Finally, state of the art performance is presented, taken from very recent publications. This will provide the reader with insight in todays cutting edge technology and performance limits. It is my hope that this report will give the reader an overview of modern ADC design and as such pass on some of what Ive learned in this course. Ivar Lkken, 26.04.2006
Ivar Lkken
Side 2
05.05.2006
Ivar Lkken
Side 3
05.05.2006
1 2
INTRODUCTION ....................................................................................................................................... 2 SAMPLING AND QUANTIZATION ....................................................................................................... 7 2.1 SAMPLING ............................................................................................................................................. 7 2.2 QUANTIZATION ..................................................................................................................................... 9 2.2.1 Bennetts additive noise approximation ........................................................................................ 10 2.2.2 The characteristic function method and dithering ........................................................................ 12 2.2.3 Quantization distortion; a deterministic approach ....................................................................... 16
ADC NON IDEALITIES .......................................................................................................................... 20 3.1 SAMPLING TIME UNCERTAINTY JITTER. ............................................................................................ 20 3.2 MEASUREMENT INACCURACY ............................................................................................................. 23 3.2.1 Offset and gain error..................................................................................................................... 23 3.2.2 Static non-linearity........................................................................................................................ 24 3.2.3 Noise.............................................................................................................................................. 26 3.2.4 Dynamic errors ............................................................................................................................. 28 3.3 PERFORMANCE NUMBERS ................................................................................................................... 30
THE PIPELINE ADC ............................................................................................................................... 35 4.1 MODE OF OPERATION .......................................................................................................................... 35 4.2 IMPLEMENTATION OF THE STAGE ........................................................................................................ 36 4.2.1 Stage ADC..................................................................................................................................... 36 4.2.2 Stage DAC..................................................................................................................................... 40 4.3 STAGE NON-IDEALITIES ...................................................................................................................... 41 4.3.1 Limited OTA gain.......................................................................................................................... 41 4.3.2 Parasitic capacitance.................................................................................................................... 41 4.3.3 Noise.............................................................................................................................................. 42 4.3.4 Capacitance mismatch .................................................................................................................. 43
GAIN ERRORS AND GAIN ERROR CALIBRATION ....................................................................... 45 5.1 GAIN ERROR AND ITS CONSEQUENCES ................................................................................................ 45 5.2 THE CONCEPT OF GAIN ERROR CALIBRATION ...................................................................................... 47 5.3 APPROACHES TO GAIN ERROR CALIBRATION ....................................................................................... 49 5.3.1 Digital foreground calibration...................................................................................................... 49 5.3.2 Digital background calibration..................................................................................................... 50 5.3.3 Calibration with parallel reference ADC...................................................................................... 52
NEW CALIBRATION TECHNIQUES .................................................................................................. 57 6.1 6.2 6.3 MEMORY EFFECTS AND MEMORY EFFECTS CALIBRATION ................................................................... 57 TWO CHANNEL BACKGROUND CALIBRATION ...................................................................................... 60 CALIBRATION OF STAGE DAC NON-LINEARITY .................................................................................. 62
7 8 9 10
COMPARATOR DITHERING ............................................................................................................... 64 OTA-LESS, COMPARATOR BASED STAGE DAC............................................................................ 65 PUSHING THE FOM STATE OF THE ART PERFORMANCE..................................................... 66 SUMMARY................................................................................................................................................ 72
Ivar Lkken
Side 4
05.05.2006
Ivar Lkken
Side 5
05.05.2006
Ivar Lkken
Side 6
05.05.2006
(1)
For a sampled sinusoid, the frequency is often described in terms of the normalized angular frequency, in radians per sample. This is given by:
0 =
2 f fs
(2)
As can be seen from (3), no distortion has been added to the signal. However, one will find that a whole range of input signals will produce identical outputs. By using (1), one will find that:
x(t ) = A cos ( 2 ft + k 2 f st ) xn = A cos (0 n )
, k = 0, 1, 2....
(4)
Ivar Lkken
Side 7
05.05.2006
This is known as the aliasing property. To generalize this, we first look at the sampling process in a slightly different way. From the description and Fig. 1, it is evident that sampling is equivalent to multiplying the input signal with dirac pulses at all multiples of nT, that is: xn = x(t ) ( t nT ) =
n =
n =
x ( nT ) ( t nT )
s
(5)
We can then apply the fourier transform to this expression to get the frequency domain equivalent: X s ( f ) = FT { xn } = X ( f ) FT ( t nT ) = X ( f nf s ) n= n= (6)
The result in (6) is identical to the discrete time fourier transform (DTFT). As can be seen, the output spectrum will consist of infinitely many copies, or aliases, of the input spectrum, each centred on multiples of the sampling frequency. This is shown in Fig. 2.
X(f) X(f)
-fs/2
fs/2
fs
3fs/2
2fs
-fs/2
fs/2
fs
3fs/2
2fs
For the sampled spectrum we have numbered the shown aliases 1, 2 and 3. It is instrumental to realize that any signal energy found in the region of alias 1, i.e. f s / 2 will be copied to every other alias from - to when it is sampled. Just like any signal energy in any alias from - to will be copied to alias 1. Hence, for any signal to be uniquely reconstructed from sampling, it must be constrained to one alias range of f s / 2 . The signal must be bandlimited to half the sampling frequency, also called the Nyquist frequency. Within this range, sampling leads to no distortion. The practical implication of this for ADC design is twofold: 1) The sampling frequency must be at least twice that of the highest frequency that will be sampled. 2) Unwanted energy outside the alias range must be removed to avoid unwanted aliasing (alias-distortion). This is called antialiasing of alias-filtering. Usually, the desired alias is no. 1 from the figure and the antialias filter is thus a lowpass filter. It should however be noted a signal limited to within the range [ nf s / 2,(n + 2) f s / 2] for any odd n, can be uniquely reconstructed from sampling at f s . This is called subsampling and often used in modulated radio-type applications.
Ivar Lkken
Side 8
05.05.2006
2.2 Quantization
Quantization is the process of mapping the amplitude of the signal to a finite set of levels. If the mapping is done sample by sample, x is mapped to a set of values {y i , i l}, where the index set l is a set of integers. This is called a scalar quantizer. If the levels are equally spaced, the quantizer is uniform, if not it is non-uniform. Alternatively an input vector x of length N can be mapped to a set of output vectors {y i , i l}, where x and all yi N . This is called an N-dimensional vector quantizer. In this document we will only be concerned with uniform scalar quantizers, which are found in most ADC applications. A B-bit mid-thread uniform scalar quantizer is shown in figure 3. This is a quantizer where yi - yi-1 = for all i, x is mapped to yi when x yi / 2, yi + / 2] and
i = -2 B-1...,-1,0,1....2 B-1 -1 . If x exceeds this range, the quantizer is in overload and will truncate the output signal. The value is referred to as the quantization step size.
As can be seen, the quantization error is a non-linear deterministic function of x. Since such functions are very difficult to analyze for all but the simplest input, several approximations and statistical methods have been introduced. We will review some of the most important of these.
Ivar Lkken
Side 9
05.05.2006
Bennett further proved that this approximation would be asymptotically exact for a Gaussian input distribution when 0.
e
e
Figure 4: Bennetts additive noise model.
Since the distribution of the error is equal, its probability density function (PDF) can be written as:
1 ,- <e fe ( e ) = ( e ) = 2 2 0 , otherwise
(7)
is the normal notation for a rectangular window given by the right hand part in (7). Using this, we find that the mth moment of e[n] is:
E em = em f e ( e ) de =
/2
/ 2
em
1 de
(8)
For the first two moments, error mean and power, (8) gives:
E [e] = 0
(9) 2 12
Side 10
E e2 = e 2 =
(10)
Ivar Lkken
05.05.2006
Furthermore, Bennett showed that if, in addition, the probability distribution of pairs of input T samples is given by a smooth PDF, i.e. that f x ( x ) , where x = [ x1 x2 ] , is a continuous function, then the error samples will be orthogonal. In other words:
E [ en en+k ] = 0
,k 0
(11)
This means that the error autocorrelation function and the power spectral density (PSD) will be given by:
2 , k = 0 Re [k ] = E [ en en+k ] = e , otherwise 0
(12)
The PSD is defined by the DTFT of the autocorrelation function, here normalized to the sampling frequency fs:
Se ( e
j 2 f
) = DTFT {Re[k ]} = 1 fs
k =
Re [k ]e
j 2 fk fs
e2
fs
(13)
What we have is in other words a spectrally white error with power e 2 . This is very familiar results for anyone who has dealt with digital signal processing or data converter design.
1 P=
Se = e fs
For a B-bit quantizer, the total number of levels is 2B and the maximum level random input is given by 2B1 ( x ) . The ratio of maximum signal power to maximum noise power, or the signal to quantization noise ratio (SNQR) is hence given by:
( 2B ) x2 SNQR = 10 log 2 = 10 log 122 12 e
2
6.02 B [dB]
(14)
For a maximum level sinusoid, with peak-to-peak amplitude of 2 B , the SNQR is:
( 2B ) x2 SNQR = 10 log 2 = 10 log 82 12 e 6.02 B + 1.76 [dB]
(15)
This is well known as the 6dB per bit rule. Ivar Lkken Side 11 05.05.2006
It must be emphasized that the conditions are of paramount importance when using this model. The quantization error is as mentioned a deterministic non-linear function of x, and the error distribution may vary significantly from the approximation in cases where the conditions are not met. A comprehensive study of the validity of the additive noise model in terms of input statistical properties, can be found in the thesis of Marco [6].
i =
( y i )
i+ / 2
i / 2
f x ( x)dx
(16)
Figure 6: Midread quantizer in the amplitude domain (a) and the PDF-domain (b)
This is equivalent to sampling after convoluting the input PDF with a rectangular window of width :
Ivar Lkken
Side 12
05.05.2006
f y ( y ) = [ f x ] ( y ) ( y i )
i
(17)
The input PDF has in other words been area sampled with quantization-frequency q=1/. This is intuitive when looking at Fig. 6, which shows the input and output in the PDF domain and the signal domain. The fourier transform of the output PDF, also called the characteristic function (CF), is then given by: y (u ) = FT { f y ( y )} = x ( u iq ) sinc ( u iq )
i
(18)
Similar to the sampling theorem, Widrows quantization theorem consequently states that if x (u ) =0 for u > q/2, the input CF can be fully retrieved from the output CF and therefore the input PDF from the output PDF. The output CF will merely be a product of the input CF and the CF of a uniform distribution (the sinc-function). A convolution of the input PDF with a uniform PDF equals white, additive noise to the input. Unfortunately, no real-world input signals have such a characteristic function as this would require an infinite amplitude span. Those that come closest are large Gaussian-like distributions, as indicated by the findings that led to Bennetts additive noise model. However, we can also use the characteristic function to look at the conditional independence in any given statistical moment of the output. Using the definition of the mth statistical moments, we find that it can be found by differentiating the characteristic function at the origin:
m m j d y (u ) E Y = y f y ( y )dy = du m 2 u =0 m m
(19)
If we now impose a condition; that the input CF is of such nature that its mth derivative is zero at all integer multiples of the quantization-frequency q: d m ( x (u ) sinc ( u ) ) du m
u =iq
= 0, for i 0
(20)
Then we find, using the previously shown expression for y (u ) in (18), that the mth moment of the quantizer output is given by:
m m j d ( x ( u ) sinc ( u ) ) E Y m = du m 2 u =0
j = 2
m 2
m m
i
2l
m d mi sinc ( u ) d i x ( u ) du mi du i i =0
(21)
m2l m E x = 2l + 1 l =0 2l 2
Ivar Lkken
Side 13
05.05.2006
Solving (21), one will find that if (and only if) the condition in (20) holds, that the mth derivative of the input CF is zero at all integer multiples of the quantization-frequency, then the mth moment of y=x+e is equal to the mth moment of x plus a constant, i.e. an error that in this moment is input-independent and with uniform PDF. Of course, since the source signal x is arbitrary, we wont know if the requirement in (20) holds. However, the input of the quantizer can be forced to meet it regardless of source by applying dithering [8]. In this case the quantizer input is given by w=x+v, as shown in Fig. 7, with the conditional PDF
f w|x ( w, x ) = f ( x+v )|x ( w, x) .
(22)
Since the dither is assumed completely independent of the source signal x, it can be found using some calculus (see [8]) that: f y ( y) = [ fv f x ] ( y) ( y k )
y (u ) = x ( u iq ) v ( u iq ) sinc ( u iq )
i
(23)
(24)
Looking at (24), we see that we can now apply the same condition as for the undithered case, but to the dither signal instead of the input:
d m ( v ( u ) sinc ( u ) ) du m
u =iq
= 0 , for i 0
(25)
j = 2
m
m m
m d i ( v (u ) sinc(u ) ) d mi x (u ) i du i du mi u =0 i =0
r
(26)
r 2l m 2 r E v E x mr = 2l + 1 r =0 r l =0 2l 2
2l
Ivar Lkken
Side 14
05.05.2006
Since the dither and input signals are assumed statistically independent, E[vk]E[xl]=0 for any k and l. Solving (26), it is seen that if the condition in (25) holds, the mth moment of y equals the sum of the mth moment of x, the mth moment of v and a constant. In other words the error for this moment will be additive and uniform. A dither signal consisting of the sum of N independent rectangular PDF (RPDF) sources of width /2, often called an Nth order dither source, will have the characteristic function:
v (u ) = sinc ( u )
N
(27)
It will thus meet the condition of (25) for the N first derivatives and make the N first error moments uniform and input-independent. Inserted in (26), Nth order dither for N2 gives:
E [ y ] = E [ x]
E y 2 = E x2 +
(28)
( N + 1) 2
12
(29)
(30)
( N + 1) 2
12
(31)
For the case where the requirement in (25) is not met, calculation of the error moments is nontrivial. Fig.8 shows a figure of the simulated first to third error moments as functions of the input level with N=0 (no dither), N=1 (RPDF dither) and N=2 (triangular PDF (TPDF) dither). Since TPDF dither gives an input independent mean, meaning no distortion, and an inputindependent noise power, meaning no noise power modulation, it is often viewed to be the ideal dither. Of course dither of higher order also have this property, but the noise penalty is greater as seen from (31).
Ivar Lkken
Side 15
05.05.2006
No dither 0.5
TPDF dither
-0.5
-6
-4
-2
-0.5
-6
-4
-2
-0.5
-6
-4
-2
0.1
0.1
-0.1
-0.1
-0.2
-6
-4
-2
0 x
-0.2
-6
-4
-2
0 x
Figure 8: Simulated first to third error moments with no dither, RPDF dither and TPDF dither.
If we look at the quantization error in Fig.3, we can clearly see that it is correlated with the signal. It is a deterministic function of the input, if we assume no-overload operation; a sawtooth signal. Since the output and quantization error is a function of the input, we can describe the out signal in the no-overload region as:
Ivar Lkken
Side 16
05.05.2006
Y (t ) = Q ( X (t ) ) = X (t ) + e ( X (t ) )
(32)
sin ( 2n X (t ) ) n
(33)
For simplicity is normalized to 1. If we assume the input signal to be a sinewave signal with amplitude A, this gives:
Y (t ) = A sin(2 ft ) + (1) n
n =1
sin ( 2n A sin(2 ft ) ) n
(34)
We can rewrite this in terms of Bessel-functions and get the output expression as a sum of harmonics: Y = A sin(2 ft ) + 2 (1) n J (2 p1) (2n A) sin ( (2 p 1)2 ft ) n =1 n p =1
(35)
Where Jp(x) is a p-th order Bessel function of the first kind. We can see that we have a spectrum consisting of only odd harmonics. To find the SNQR, we find the power of the first harmonic, i.e. A1 sin(2 ft ) and divide it by the power of all other harmonics, i.e. A(2 p1) sin ( ( 2 p 1) 2 ft ) , p = 2,3... .
(36)
The maximum SNQR as function of number of bits is shown in table 1 and compared to Bennetts 6dB per bit rule for sinusoid input.
Ivar Lkken
Side 17
05.05.2006
Number of bits B
2 3 4 5 6 7 8 9 10
SNQR
13.30 19.52 25.59 31.65 37.70 43.76 49.82 55.87 61.93
SNQR Bennett
13.80 19.82 25.84 31.86 37.88 43.90 49.92 55.94 61.96
If the input signal consists of multiple sinusoids, e.g.: X (t ) = A sin(2 f1t ) + B sin(2 f 2t ) (37)
One can calculate, repeating the steps (32) to (35), that intermodulation product #pq will have the amplitude: (1) n Apq = J ( p ) (2n A) J ( q ) (2n B) . n =1 n p =1
(38)
In an AD-conversion, the signal is sampled before being quantized. Thankfully, since sampling is a linear process, one can change the order of sampling and quantization, i.e. sample the quantized output as given by (35) for the sinusoid case: (1) n Y = A sin (0 n ) + 2 J (2 p 1) (2n A) sin ( (2 p 1)0 n ) n =1 n p =1
(39)
As we can see, since harmonics are produced for all p up to infinity, they will produce aliasing. For instance, if the input frequency is 4MHz and the sampling frequency 48MHz, the 7th harmonic at 28KHz will fold around fs/2 to 20KHz, overlapping the 5th harmonic. The 13th harmonic and 19th harmonic also fold to 20KHz, However, if the input frequency is 4.1MHz, the 7th harmonic at 28.7MHz will fold down to 19.3MHz, while the 13th harmonic folds to 18.7MHz and the 19th to 18.1MHz. If it is 4.001MHz, the 7th harmonic folds to 19.993MHz, the 13th harmonic to 19.987MHz and the 19th harmonic to 19.981MHz. Thus, the ratio between the input frequency and the sampling frequency will determine the final spectrum. If it is a simple integer, the spectrum will be discrete, if it is close to an integer, the alias components will be close together and it will look white.
Ivar Lkken
Side 18
05.05.2006
-50
-200
-250
0.5
1.5
3.5
4.5 x 10
5
7
-50
-150 -200
-250 -300
0.5
1.5
3.5
4.5 x 10
5
7
Figure 9 shows the output spectrum of two different sampled and quantized input sinusoids. In the first case, the input frequency is 4MHz and the sample frequency 48MHz. We see that the spectrum consists of the expected odd harmonics, but also folding products between f and fs. These fall at 48n4 and we will thus see components at both even and odd multiples of f. When the ratio between f and fs is an integer, this is expected. In the second example, the input frequency is 4.1MHz. We then see that we get a lot more intermodulation products, due to the folding and intermodulation of an infinite number of harmonics with multiples of fs, the discrete components are at multiples of 0.1MHz or the distance to the nearest integer ratio. With an input of 4.001MHz, alias components will be found at all multiples of 0.001MHz and the spectrum will look almost white.
Ivar Lkken
Side 19
05.05.2006
In this chapter, we will look at the basic error mechanisms in each stage and how to specify basic performance requirements for the system.
Ivar Lkken
Side 20
05.05.2006
First, we will assess the white jitter case [11]. The instantaneous error resulting from a jitter amplitude j will be given by:
j = j
x(t ) t
(40)
We assume the jitter to be randomly distributed with variance 2 . For a maximum-level j sinusoid input signal with amplitude normalized to 1 and frequency f, the slope will be given by: x(t ) = sin ( 2 ft ) x(t ) = 2 f cos ( 2 ft ) t (41)
To find the average error variance, we multiply the jitter variance with the average variance of the slope, i.e.:
2 = 2 j
j
1 2
( 2 f cos ( 2 ft ) )
0 2 2
dt
(42)
= 2 f
2 j
When the input amplitude is normalized to 1, the signal power s2 = 1 2 , thus we can
calculate the ratio s2 / 2j and, using the 6dB per bit-rule, find the corresponding resolution. Figure 12 shows the resolution vs jitter standard deviation as a fraction of the input frequency f. For 14-bit resolution, j f must be less than 110-5. For 100kHz input signal, this means less than 100ps jitter standard deviation, for 1MHz input signal less than 10ps and for 100MHz input signal less than 0.1ps. To design a clocking system with less than 0.1ps standard deviation is exceedingly difficult and jitter is a major obstacle in design of ADCs combining high speed and high resolution.
Ivar Lkken
Side 21
05.05.2006
As mentioned previously, jitter can also be sinusoid, in which case it does not raise the noisefloor of the converter, but generates sideband distortion. This can easily be shown by viewing the now deterministic jitter process j(t) as added phase-modulation in the original signal [12][13]: y (t ) = A cos i t + j ( t )
(43)
If we assume sinusoidal jitter with frequency j and amplitude J seconds peak-to-peak we get: y (t ) = A cos i t + 1 J sin( jt ) 2
(44)
Assuming (Ji << 1) (44) approximates to: y (t ) A cos(i t ) + 1 J i sin((i j )t ) + 1 J i sin((i + j )t ) 4 4 As we can see, the jitter has created modulated sidebands at i j . The level of the sidebands relative to the signal is given by: (45)
J R j = 20 log i dB 4
(46)
Since there are two sidebands, the total RMS jitter noise is given by J i / 2 and thus
Ivar Lkken
Side 22
05.05.2006
J R j ,rms = 20 log i 2
(47)
By looking at the approximation above it is seen that we here extract only the first order modulation products, while there actually are more, i.e. at i n j , n=1,2,3. This is generally a sufficient approximation since the first order products are dominating. If one wants to find the amplitude of the other sidebands as well, one can solve (44) using Bessel functions:
y (t ) = A cos(i t ) cos ( 1 J i cos(i t ) ) A sin(i t ) sin ( 1 J i cos( j t ) ) 2 2 = A J n ( 1 J i ) cos ( (i + n j )t ) 2
(48)
We see that (48) will contain all modulation sidebands that are produced by the phasemodulation.
Ivar Lkken
Side 23
05.05.2006
The gain error is the same, but for the maximum level output code. Gain error is also specified after compensating for offset. This means the gain error is the error in the distance between the center of the zero bin and the center of the maximum bin, as shown in fig.14.
(49)
The sum of DNL from step 0 to step m is called the integrated non-linearity (INL) in m:
INL(m) = DNL(i )
i =0 m
(50)
An example of DNL and INL is shown to the left in figure 15. If a line is drawn between each INL(m), one can define the INL as a continuous function of the input. It then gives the deviation in the interpolated, continuous input-output characteristics from the ideal straight line and therefore the non-linearity, disregarding quantization distortion, as function of the input.
If:
INL(m)
,for all m .
(51)
Then the transition point will be within m / 2 for all m. In other words, each transition point is uniquely located within its bin. Thus, sweeping the input from minimum to maximum level will excite all output codes once and only once. This is usually referred to as monotonicity, and any ADC fulfilling (51) is guaranteed to be monotonic. To calculate the resulting distortion the continuous INL-function INL(x), it can be decomposed into a sum of harmonics using the fourier series. Assuming the INL-function is symmetrical, which will usually be the case since ADCs uses differential signal paths, the INL can be expressed: INL( x) = a2 k cos(2kxt ) .
k =1
(52)
Ivar Lkken
Side 25
05.05.2006
In (52), a2k is the amplitude of the 2kth harmonic. Then the resulting continuous output function will be given by: yc = a sin(xt ) a2 k cos(2k xt ) .
k =1
(53)
Note that in (53), the distortion from quantization is disregarded as yc is the output from the continuous (interpolated) transfer function. Similarly, for multi-tone input signals, the intermodulation spectrum can be estimated using: yc = a ( sin( x1t ) + sin( x 2t ) ) a2 k ( cos(2k x1t ) + cos(2kx 2t ) ) .
k =1
(54)
3.2.3 Noise
In an ADC implementation, thermal and flicker noise from amplifiers, resistors and so on will add to the quantization noise. Generally, we can assume the analog noise to be statistically independent of the quantization noise. Hence:
2 2 tot = e2 + 2 + a
j
(55)
2 In (55), e2 is the quantization error noise variance, 2j is the jitter noise variance and a is
the total analog noise variance. When we have all the noise sources accounted for, we can calculate the total signal to noise ratio (SNR):
s2 SNR = 10 log 2 2 e + 2 + a j
(56)
The analog noise contribution must be calculated for the specific circuit in question. Normally, noise models for each component are used and it is assumed that each noise source is statistically independent, so their variance can be summarized. Table 2 shows the standard noise models for the most normal components [14]:
Ivar Lkken
Side 26
05.05.2006
Element
Noise models
4kT R
R
v2 = 4kTR
i2 =
rd =
2 v
kT qI D
rd =
= 2kTrd
1 2 gm
kT qI D
i2 = 2qI D
v2 = 4kT rb +
i2 = 2q I B +
KI B IC + 2 f ( f )
Simplified model for low frequencies
v2 =
K WLCox f
i2 = 4kT g m 3
v2 = 4kT + 3 g m WLCox f
2 1
i2
v2 2 i
In table 2, v2 is noise voltage variance and i2 is noise current variance. Unless otherwise indicated, the noise sources are assumed spectrally white and Gaussian distributed. Table 3 shows the related characteristic parameters.
Table 3: Constants for models in table 2
Symbol
k T q rD ID IB rb gm IC (f) WL Cox K
Parameter
Boltzmans constant Temperature Charge Diode incremental resistance Diode current BJT base current BJT series base resistance Transconductance BJT collector current BJT current gain, IC/IB MOS gate width and length MOS gate oxide capacitance Device constant (see [14])
Unit
Ivar Lkken
Side 27
05.05.2006
Of course, if the total noise contribution from a circuit is to be calculated, one must transform the different noise contributions to total output (or input) referred noise. Since noise sources are treated like normal sources and are assumed independent of each other, this can be accomplished through normal circuit theory and superposition. On a final note, it should be mentioned that capacitors and inductors do not generate noise, but accumulate noise from other sources. Figure 16 shows a resistor with noise coupled to a capacitor. Since the input noise has a white PSD the total integrated output noise power v2_ cap will be: 1 kT v2_ cap = 4kTR = 2 2 RC C
v2_ cap
(57)
C
v2 = 4kTR
Similarly, for an inductor, one can find the noise current variance to be:
i2_ ind =
kT L
(58)
Generally, we find that the analog SNR will increase with increased bias currents as well as increased capacitance. This, of course, opposes the desire to design circuits with low powerconsumption.
Ivar Lkken
Side 28
05.05.2006
tracking phase, the S/H must track the input voltage to be ready to take a sample. Then, at the sampling time instant tn, it goes from tracking mode to hold mode, holding the output at the value of the sample its just taken and thus enabling the ADC to find the corresponding digital value. The output of the S/H will need some time to settle to the sample level, this is called settling time. It is important that the output settles completely, within the required accuracy, before going to tracking mode again, otherwise the ADC will not get the correct sample value. There will usually also be an error in the hold value due to circuit imperfections like switch charge injection and droop in the holding element.
Non-idealities in S/H circuits include: Settling time: The time the output uses not settle to the required accuracy after a sample is taken and the hold mode is initiated. This limits the minimum hold mode time and consequently the maximum sampling frequency. Acquisition time: The time the S/H output uses before tracking the input signal to a required accuracy in tracking mode. This limits the minimum tracking mode time and consequently the maxiumum sampling frequency. Aperture time: Time from hold command until the sample value is taken. Variance in aperture time is the same as jitter. Hold mode droop: Loss of level in hold mode due to circuit imperfections, e.g. hold capacitor leakage. Limits the maximum hold mode time and consequently the minimum sampling frequency. Noise due to signal feed-through in hold mode and S/H amplifier noise. Hold mode errors due to circuit imperfections such as charge injection.
To calculate the effects of dynamic errors in terms of distortion requires knowledge of the actual S/H implementation and is beyond the scope of this report. However, in general all errors should be well below the LSB-level, or in other words the voltage difference Ivar Lkken Side 29 05.05.2006
corresponding to . As is evident from fig.17, all dynamic errors except the droop will increase when the sampling frequency and input frequency increases, limiting the achievable accuracy of very high speed ADCs. S/H amplifiers with very fast settling and acquisition time also requires much current, increasing the circuits power consumption.
THD =
f = f sig
Se ( e j 2 f ) df Se ( e j 2 f ) df =
f = k f sig
s2 2 HD
(59)
k = 2 f = k f sig
Where K usually is 6-10 and is an arbitrarily small number usually limited by the resolution of the spectral transformation. THD is usually given in percent or sometimes dB referred to the signal power. Also, the quantity THD+N is often used. This is the total noise and distortion power. When measuring noise only, the range k f sig must be removed from the output spectrum, THD+N includes all spectral power except of course the signal itself. THD + N =
s2 2 n2 + HD
(60)
Ivar Lkken
Side 30
05.05.2006
The ratio between signal power and THD+N is often referred to as the signal to noise and distortion ratio (SNDR). The SNDR gives the total resolution of the converter. SNDR is measured in dB and thus given by:
s2 SNDR = 10 log 2 2 n + HD
(61)
Sometimes, the SNDR is expressed in the equivalent number of bits according to the 6dB per bit-rule. This measure is called the effective number of bits (ENOB): ENOB = SNDR [dB] 6.02 (62)
Often, the distortion spectrum can be dominated by one large harmonic component. In this case, the value of the dominating component might be more interesting than the THD. The spurious free dynamic range (SFDR) is defined as the ratio between the signal power and the power of the largest harmonic component. In other words:
s2 SNDR = 10 log 2 HD _ max (63)
Where HD_max is the single harmonic component with the largest power:
f =k f sig HD _ max = max Se ( e j 2 f ) df , k = 2,3... f =k f sig
(64)
Due to increasing dynamic errors, the accuracy of an ADC decreases with increasing input frequency, meaning they can not maintain their full resolution up to the nyquist-frequency. The effective resolution bandwidth is defined as the frequency where the ENOB is reduced by 0.5 bits. The final performance metric we will mention is the figure of merit (FOM). As mentioned, high resolution and/or high speed will often result in an increase of the power consumption. FOM is a measurement on how efficiently the design is at utilizing its supplied power, or in other words its power to performance ratio. The FOM is defined as: FOM = Psup 2 f in 2 ENOB (65)
Here, fin is the effective resolution bandwidth and Psup is total supplied power. Then the unit of the FOM will be energy (in joule) per conversion step (J/cs) and the lower the number is, the better. Given a certain FOM, one can calculate the relation between input bandwidth, accuracy and power consumption, as shown in fig.18 for a FOM of 1pJ/cs. Current state of the art for FOM is in the range of 0.25/0.5pJ/cs [16].
Ivar Lkken
Side 31
05.05.2006
Figure 18: Resolution vs. input bandwidth and power consumption, FOM=1pJ.
Ivar Lkken
Side 32
05.05.2006
[1]: E. T. Whittaker: "On the Functions Which are Represented by the Expansions of the Interpolation Theory," Proc. Royal Soc. Edinburgh, Sec. A, vol.35, pp.181-194, 1915 [2]: H. Nyquist: "Certain topics in telegraph transmission theory," Trans. AIEE, vol. 47, pp. 617-644, Apr. 1928. [3]: V. A. Kotelnikov: "On the carrying capacity of the ether and wire in telecommunications," Material for the First All-Union Conference on Questions of Communication, Izd. Red. Upr. Svyazi RKKA, Moscow, 1933 (Russian). [4]: C. E. Shannon: "Communication in the presence of noise", Proc. Institute of Radio Engineers, vol. 37, no.1, pp. 10-21, Jan. 1949. [5]: W. R. Bennett: Spectra of Quantized Signals, Bell Systems tech journal, vol. 27, pp. 446-472, July 1948. [6]: D. Marco: Asymptotic Quantization and Applications to Sensor Networks, Ph.D. thesis, The University of Michigan, 2004. [7]: B. Widrow A Study of Rough Amplitude Quantization by Means of Nyquist Sampling Theory, Sc.D. thesis, Dept. of Electrical Engineering, Massachusetts Institute of Technology, June 1956. [8]: S.P. Lipshitz, J. Vanderkooy, R.A. Wannamaker: Quantization and Dither; A Theoretical Survey, JAES Volume 40, Number 5, pp. 355-375; May 1992. [9]: N.M. Blachman: The Intermodulation and Distortion due to Quantization of Sinusoids, IEEE Trans. on Acoustics, Speech and Signal Processing, vol. ASSP-33, no.6, pp.1417-1426, December 1985. [10]: R.C. Maher: On The Nature of Granulation Noise in Uniform Quantization Systems, Journal of the Audio Engineering Society, Volume 40, no.1-2, pp. 12-20, January/February 1992 [11]: R. van der Plassche: CMOS Integrated Analog-to-Digital and Digital-to-Analog Converters, 2nd edition, chapter 1.10, pp. 21-25, Kluwer Academic Publishers, ISBN 1-40207500-6, 2003 [12]: J. Dunn: Jitter: Specification and Assessment in Digital Audio Equipement, AES Convention Paper 3361, October 1992. [13]: I. Lkken: FE8114: High Resolution Audio DACs Final Report, ch.2.1, pp. 6-7, NTNU, August 2005. [14]: D.A. Johns, K.Martin: Analog Integrated Circuit Design, ch.4.3, pp.199, John Wiley & Sons, ISBN 0-471-14448-7, 1997. [15]: R. van der Plassche: CMOS Integrated Analog-to-Digital and Digital-to-Analog Converters, 2nd edition, chapter 2.6.24, pp. 101, Kluwer Academic Publishers, ISBN 1-40207500-6, 2003 [16]: A. Vinje: FE8113 presentation slides, ISSCC2006 presentation, March 2006. http://www.iet.ntnu.no/courses/fe8113/Slides/Lecture10.ppt
Ivar Lkken
Side 33
05.05.2006
Ivar Lkken
Side 34
05.05.2006
Ge
y=x-e
STAGE 1
x-e1
1
STAGE 2
Ge1-e2
1/G
STAGE N
GN-1eN-1-eN
1/GN-1
+ Y
Figure 19: Pipeline ADC functionality schematic
The data is sampled in to stage 1 with an S/H (not shown) and converted to digital using a Kbit internal ADC. Then, the output is converted back to analog using a K-bit DAC. The input is subsequently subtracted from the DAC output, ideally resulting in an analog representation of the first stage quantization error. The error is scaled up by G=2K to span the entire full scale range of the next stage. The stage residue output is then sampled into the second stage. This stage converts the error from the first stage and passes its own over to the third stage. Its output is scaled by 1/G to compensate for the gain from stage 1. As can be seen, the resulting output Y, normalized to the input X, will be given by:
Ivar Lkken
Side 35
05.05.2006
Y = ( X e1 ) +
1 1 ( G e1 e2 ) + ... + N 1 ( G N 1eN 1 eN ) G G
1 = X N 1 eN G
(66)
This means that ideally, only the error from the last stage will be present at the output, scaled down by GN-1. With N K-bit stages, this means the output will be: Y=X 1 2
K ( N 1)
eN
(67)
Which means the resolution is K(N-1) bits higher than for a single K-bit stage.
(68)
So, if the input voltage is between e.g. quantization step 7 and 8, the 7 lowest comparators will output a 1 and the rest a 0. This code, where the number of 1s corresponds to the output number, is called thermometer code. This is converted to normal binary code using a small logic circuit. The problem with the FLASH ADC is the large number of resistors and comparators needed if the number of bits K is high. It will then have a large area and power consumption as well as a high capacitive input load. Also, the resistor string will have to be very accurately calibrated to produce all the unique quantization steps if is very small compared to the fullscale reference.
Ivar Lkken
Side 36
05.05.2006
+ Vref
Comparators
N=(2K-1)
R
+ -
cN
R
+ -
cN 1
D0 D1 D2
DK 1
v IN
R
+ -
c1
Vref
CLK
Figure 20: FLASH ADC functional diagram
Of course, the stage ADC in the pipeline converter only has to resolve very few bits, so the FLASH architecture is very well suited. One major implementation issue is that since any error from the first stage is multiplied throughout the pipeline chain, the stage ADC needs a linearity performance equivalent to the full resolution of the pipeline converter. Its INL performance needs to be very good and the accuracy of the reference voltage division and the comparators thus needs to be extremely high. This is even the case if the stage is 1-bit. Although the stage ADC per se can then not have INL, any transition offset will translate to an error at the input of the next stage and it will result in INL for the pipeline as a whole. This can however largely be eliminated by simple use of digital redundancy and error correction, as pioneered by Lewis [1]. We will show this for the 1-bit stage case. For a normal 1-bit stage, the output is given by: 0 , x < 0 y= 1 , x 0 (69)
In (69), digital 0 represents the negative reference voltage and 1 the positive2. Then, the analog output from the first stage, 2e1=2x-y1ref, as a function of the input will be as shown in fig.21. Since this is the input to the subsequent stage, its output y2 will be 0 when e1 is less than zero and a 1 when e1 is more than zero.
In other words, a sign-magnitude binary representation where 0000 is the maximum negative value and 111...1 is the maximum positive value.
2
Ivar Lkken
Side 37
05.05.2006
offset
2e1
ref
ref 2
ref
ref 2
ref 2
ref
ref 2
ref
y1: y2: Y:
0 0 00
0 1 01
0 1 01
1 0 10
1 1 11
Figure 21: Residue and digital output, two pipelined 1-bit stages.
As can be seen, the offset in the first stage ADC directly translates to a DNL error in the total output Y. Thus, the accuracy of the first stage ADC must be given by the full INL requirement of the entire pipeline converter. The accuracy of the second stage must be half that of the first, since the second stage output error is totally multiplied with 1/2 (see fig.19). Now, we replace the first stage with a three-level stage, or 1.5 bit stage, where the output is given by:
00 , x < Vref / 4 y = 01 , Vref / 4 x < Vref / 4 10 , x V / 4 ref
(70)
The second stage is still a 1-bit stage given by (69). The recombination is done with a full adder and the resulting output and residue will then be as shown in fig.22.
Ivar Lkken
Side 38
05.05.2006
offset
2e1
ref
ref 2
ref
ref 2
ref 4
ref 4
ref 2
ref
ref 2
ref
y 1: y2: Y:
00 0 00
00 1 01
01 0 01
01 1 10
10 0 10
10 1 11
Now we see that the presence of offset does not affect the total output Y since the recombination with y2 cancels the error. As can be seen from studying the figure, the transition of y1 from 01 to 10 can be anywhere between 0 and Vref/2 without it affecting the total output. Hence, offset of up to Vref/4 is cancelled. This can be extended to all stages in the pipeline by cascading 1.5-bit stages and full adders, as long as the last stage is symmetrical around zero. This is shown in fig.22.
X
1.5-bit stage
1.5-bit stage
1.5-bit stage
backend
1/2
1/4
1/2N-1
Figure 23: Pipeline ADC with 1.5-bit stages and error correction
Ivar Lkken
Side 39
05.05.2006
Using the topology in fig.23, stage ADC design is trivial, since it only needs an offset of less than Vref/4. Since the backend output, and error, is scaled down a great deal, this is not as critical.
Vin
Vout
y Vref
+ -
Cr
vx + vx
+ A -
+ Vout -
Cr
Cf
In the sampling phase, the differential input is coupled over the capacitors Cf and Cr, charging these to the input voltage. The size of these capacitors is determined by the given requirements for kT/C-noise (lower with large capacitors), acquisition time (faster with small capacitors) and mismatch (smaller with large capacitors). The stored charge at the end of the sampling phase is given by:
(71)
Next, in the feedback phase, the feedback capacitors Cf are coupled to the output, while Cr are coupled to either of the references, depending on the stage-ADC decision y (-1, 0 or 1).
( y V ( y V
ref +
(72)
C f = Vin ( Cr + C f )
(73)
Ivar Lkken
Side 40
05.05.2006
Vout
(74)
(75)
Thus we have the desired output to pass on to the next stage. Since this voltage is available at the end of the feedback phase, the subsequent stage should end its sampling phase as the current stage ends it feedback phase. The stage DACs are thus coupled with opposite clock phases from one stage to the next, using non-overlapping clocks, and hence also functions as S/H ampliers with the sampling phase and feedback phase corresponding to the tracking phase and hold phase from section 3.2.4 respectively.
Ge =
A A+ 2
(76)
Thus, limited OTA open loop gain will produce a static gain error. If Ge=1 there is no gain error, but with e.g. 40dB OTA gain, Ge=0.980. Gain error and its consequences will be treated in detail in chapter 5.
Ivar Lkken
Side 41
05.05.2006
Cf
Vin
Vout
y Vref
+ -
Cr
vx + vx
+ A -
+ Vout -
Cr
Cf
Figure 25: Stage DAC with parasitic capacitance; a) Sampling phase, b) Feedback phase.
Repeating the analysis in (71) to (74) for this case, we now get:
Vout
1 = ( 2 Vin y Vref ) 1+ 1 A
Cf Cr + C f + C p
(77)
With no parasitic input capacitance, =1/2 and (77) equals (74). From (77) it is apparent that parasitic input capacitance will increase the gain error caused by limited OTA open loop gain. For instance, if =1/3 and A=40dB, then Ge=0.968, compared to 0.98 in 4.3.1.
4.3.3 Noise
The noise consideration consists of two parts, the OTA noise and the sampling capacitance kT/C-noise. The former will be noise added to the output in the feedback phase. The latter is sampling value noise than will be passed to the output when the sampling capacitance charge is sampled. Figure 26 shows a noise equivalent circuit for the stage DAC to calculate the noise in the feedback phase [2], which is when the output is sampled to the next stage. The input current noise is neglected since the input nodes are high impedance.
2 ni
Vout
Ivar Lkken
Side 42
05.05.2006
The noise gain will be given by the transfer function of the circuit in fig.26:
1/ = 1+ 1 A
2
2 no 2 ni
(78)
Assuming a single-stage, single-pole, load-compensated OTA, one can use the Mosfet noise model for the input transistors from tab.2 and the kT/C analysis from section 3.2.3 to find the output noise with a given load capacitance CL:
2 no = 2
4 kT 1/ 3 CL 1 + 1 A
(79)
The factor 2 is due to the two input transistors in a differential system acting as two independent noise sources. Referred to the input of the MDAC, the noise expression must be divided by the squared closed loop MDAC gain from (77) and becomes.
2 n _ OTA = 2
4 kT 1/ 3 CL 1 + 1 A
2 1+ 1 A
(80)
= 2
kT
1/ 3 CL 1 + 1 A
For the sampling, the input kT/C-noise in the differential system will be:
2 n _ kT / C = 2
kT Cr + C f
(81)
We can assume these noise sources to be uncorrelated and the total input referred noise 2 2 variance to be n _ OTA + n _ kT / C . Thus, for a given input referred noise requirement, both minimum sampling capacitance and load capacitance can be calculated from the above.
Ivar Lkken
Side 43
05.05.2006
Qe = Vref Cr
The resulting sample voltage error will be:
(82)
Ve =
Vref Cr C f + Cr
(83)
Remembering that the gain in each stage is 2, we can refer this error to the LSB-level and find the resulting DNL for the ith stage:
Vref DNL = Cr C f + Cr Vref 2 N +1i
(84)
In (84), i=1 for the first stage, 2 for the second and so forth. If the variance is assumed to be determined completely by oxide thickness variation, the mismatch will be given by C = k C where k is a process related constant [2], meaning that the DNL will improve by the square root of the sampling capacitance size. This suggests the use of large sampling capacitors, as does kT/C-noise, but that of course increases acquisition time and power consumption. However, there exist digital algorithms, so called dynamic element matching (DEM), that can decorrelate the mismatch error from the input, converting the distortion to noise, and furthermore if desired noise shape it [3].
Ivar Lkken
Side 44
05.05.2006
(85)
As we have also seen, sources of gain errors will be limited OTA open-loop gain A, enhanced by input parasitic capacitance, and reference/feedback capacitance mismatch. If the gain error is to be minimized by analog design, one needs an OTA with high open-loop gain, which combined with fast settling and low noise will require lots of power. One also needs large sampling capacitances to minimize mismatch and the affects of parasitics on , which would further increase the power consumption necessary to maintain satisfactory settling performance. The gain error can be translated to peak DNL similarly to the capacitance mismatch. As can bee seen from the transfer function in fig.27 [4], the output error is obviously maximum at maximum output voltage. The maximum output error will be given by:
Vout = Vref (1 Ge )
2e1
ref
(86)
ref 2
ref
ref 2
ref 4
ref 4
ref 2
ref
ref 2
ref
Ivar Lkken
Side 45
05.05.2006
The resulting peak DNL for the ith stage will then be given by:
DNL = Vref (1 Ge ) Vref 2 N +1i (87)
However, gain error will also lead to an increase in the quantization noise level. As can be seen from fig.19, if the analog stage gain is not correct, the error contributions from e1, e2 will not cancel out at the output. There will be leakage of quantization noise from each stage to the output. For convenience, we will in the following analyze this for one stage only, assuming all stages except the first to make up an ideal backend ADC. The analysis can easily be expanded to the rest of the stages. A block diagram of a pipeline converter with gain error is shown in fig.28. The stage ADC is modelled as adding a (quantization) error e1 and the backend similarly as an error souce ebe. Note that the scaling is now normalized to the backend input level, as opposed to the input X in section 4.1, to more easily see the relation to the stage transfer function. It should be noted that the difference between fig.28 and fig.19/23 is only a question of output normalization. In a practical implementation, the normalization is to the LSB, since the output is on integer form, hence the scaling will be 2N for the first stage, 2N-1 for the second etc.
Vout_1_ideal Vin_be
Stage 1 X e1 2
Y
Figure 28: Model for analysis of first stage gain error.
From fig.28, the output is found to be: Y = [ 2 X + ebe ] + 2 e1 (1 Ge _1 ) If Ge_1=1, (88) then of course equals (88)
Ivar Lkken
Side 46
05.05.2006
Y = [ 2 X + ebe ] .
(89)
We see that the first stage quantization noise then cancels out as expected. But reverting to (88), we see that the quantization error from the 1.5-bit first stage is visible at the output multiplied by 2 (1 Ge _1 ) . If we for arguments sake accept Bennetts additive noise model even for a 1.5-bit stage (although this is obviously not very accurate), we get, disregarding the backend noise: 2 1 [dB] SNQR1 = 10 log x 2 = 10 log 2 (1/ 3) 2 (1 Ge _1 ) e _1
(90)
So, for a leakage noise contribution of e.g. less than -70dB, Ge_1 must be better than 0.9991. This is obviously almost impossible to achieve through analog design alone, a check of (76) should confirm that. To get higher than 10-12 bit resolution in a pipeline ADC, it needs digital gain error calibration.
Stage 1 X e1 2
l1 Y
Figure 29: Principle of gain error calibration
Ivar Lkken
Side 47
05.05.2006
As we can see, a calibration coefficient l1 is added to the digital backend output. Now, the output will be given by: Y = [ 2 X + ebe l1 ] + 2 e1 (1 Ge _1 l1 ) Now, if the calibration coefficient equals 1/Ge_1, (91) will simplify to: Y = [ 2 X + ebe l1 ] (92) (91)
And the first stage quantization noise error due to the gain error has been cancelled. A small penalty is paid, because the backend quantization error will be scaled by l1, which will be slightly larger than 1 (this is evident from looking at the gain error expression in (76)). This must be considered when designing the backend. This can be expanded to a chosen number of stages simply by adding more calibration coefficients like shown in fig.30. Then, for cancellation of each stage leakage, l1 must be given by 1/Ge_1, l2 by 1/Ge_2 and so forth, which can easily be found by doing the analysis in (91)-(92) on the basic expression from (66), including the gain error and calibration coefficients.
Calibrated backend X
Stage 1
Ge_1
Stage 2
Ge_2
backend
22
l1 Y
l2
This all seems very simple. The problem however, is that the gain errors are analog quantities and may also be time varying due to OTA gain drift with temperature and aging. The main challenge in pipeline gain calibration is actually to measure the gain errors and so be able to determine the calibration coefficients. Various techniques have been proposed and these constitute a significant part of the curriculum in the course. They are generally divided into three fundamental principles or approaches that will be reviewed in the following sections.
Ivar Lkken
Side 48
05.05.2006
Stage 1 2
e1
l1 Y
Processing
Now, assuming no offset, e1 is zero and the output will be given by: Y = 2 Ts 2 Ts Ge _1 l1 + ebe l1
(93)
If l1=1/Ge_1, the first two terms will be zero and the only energy on the output is the small backend error. Hence, by applying a large energy (full swing) test signal and adjusting the calibration coefficient until the output energy is minimized will eliminate the gain error. This can be done at a fixed interval to compensate for drift. However, the problem is that the converter must be taken out of operation for the calibration process. This is in many cases not acceptable as it will lead to missing data. Many applications will not tolerate data loss.
Ivar Lkken
Side 49
05.05.2006
(94)
Now, the test signal is included in the output if there is a gain error. If the last term is zeroed out, the gain error is eliminated. However, also present on the output is the unknown input signal and first stage and backend quantization errors. To be able to measure the last term alone, it must be extracted digitally from the output data.
Ts X e1
k
Stage 1
k
l1 Y
Figure 32: Principle of digital background calibration
To be able to do this, one must employ a test signal that is uncorrelated with the input signal and quantization errors. In other words, the digital test signal Ts should be a random noise source. Then, the expectance value E {Ts X } equals zero and the same also applies for the test signal multiplied with the quantization errors since the test signal is independent of the first stage quantizer and dithers the backend quantizer. Hence, from (94) we get:
Ivar Lkken
Side 50
05.05.2006
E {Y Ts } = E {[ 2 X + ebe l1 ] Ts } + E 2 e1 (1 Ge _1 l1 ) Ts + E k Ts (1 Ge _1 l1 ) Ts = E k (1 Ge _1 l1 ) Ts 2 = k (1 Ge _1 l1 ) E {Ts 2 }
}
(95)
This is the power of the test signal scaled by the gain error, exactly what we want to make zero by adjusting l1. So if we can extract this term, we can adjust the calibration coefficient until it is minimized. This is done using a correlator, as shown in fig.33. The correlator is simply a multiplier-accumulator (MAC) that sums multiplication values of Y and Ts over a long period, called the block length BL. The output of the correlator is given by:
C= 1 (Y Ts ) BL BL
(96)
(97)
Ts X Stage 1
Vout_1_ideal
Vin_be
Ge_1
backend
Correlator Y C
l1
So, we can measure the correlator output C over a long block length and adjust l1 to minimize it. Of course, for each adjustment of l1, a new measurement must be made, so the adjustment of the calibration coefficient follows the gradient of the correlator output, it is adjusted in the direction that made the current error energy smaller than the last.
Ivar Lkken
Side 51
05.05.2006
The main problem with background gain calibration is that for the calibration to be accurate, i.e. for (97) to be asymptotically correct, the block length must be very, very long. The calculation of the required block length for a given accuracy is tedious and will not be reviewed in this document (see [2] for details), but can for even a modest 10-12 bits resolution be found to be several million samples. Of course, if the test signal scale factor k is small, the last term in (95) is small, and it takes the system longer time to converge, so this will be a trade-off between shorter block length and larger useable input range. A much used value for 1.5-bit stages is k=1/4, which will constrain the input range as seen by the in-out relation in fig.34, with the test signal as a random variable of maximum width 1/4.
2e1
ref
ref 2
ref
ref 2
ref 4
ref 4
ref 2
ref
ref 2
ref
So in summary, background calibration allows for continuous operation, but works very slowly. Especially if there is a sudden change in gain error, e.g. due to a sudden temperature change, the ADC will use a long time to recalibrate and regain its calibrated SNDR. It will also use very long time from start-up until good coefficients are found and thus good SNDR achieved. A recently patented method [11] however solves the latter issue by upon start-up initializing a separate foreground calibration routine and then switch to background calibration when the start-up sequence is completed.
has to have only negligible gain error itself. However, since calibration needs to be done only once in a while, it can run very, very slowly and still use little power.
% X
% e
Figure 35: Error calibration with reference ADC
The principle is shown in fig.35. The input is routed to the main ADC, running at full speed, as well as a reference ADC running at a much lower sampling rate. The output from the reference ADC is assumed to be a very accurate representation of X, due to the high resolution of the reference converter. The main output is subtracted from this to produce an error % % estimate e . The gain error calibration filter is then adjusted to minimize e . The advantages of this approach are obvious. The main ADC can be run continuously and the error is computed on the fly, at the reference ADC sampling rate, and needs not to be accumulated over a long block length as for the background calibration. The reference ADC can be a high resolution ADC, e.g. a sigma-delta converter, operating at a very low rate for low power consumption. The disadvantage is however as obvious as the advantage. The reference ADC, having to be very accurate, will use a lot of chip area, increase analog design complexity and generally create significant analog overhead. However, if neither pauses in operation or long convergence time is acceptable, it is at present the best alternative.
Ivar Lkken
Side 53
05.05.2006
[1]: S.H.Lewis: "Optimizing the Stage Resolution in Pipelined, Multistage Analog-to-Digital Converters for Video-Rate Applications", IEEE Trans. on Circuits and Systems II: Analog and Digital Signal Processing, vol.39, pp.516-523, August 1992. [2]: J.Bjrnsen: Design of a High-Speed, High-Resolution Analog to Digital Converter for Medical Ultrasound Applications, PhD thesis, NTNU, ISBN 82-471-6989-4, 2005. [3]: I.Lkken: FE8114: High Resolution Audio DACs Final Report, ch.6: The DAC and Dynamic Element Matching, pp. 64-72, NTNU, August 2005. [4]: A.Vinje: Digital Background Calibration, FE8113 lecture presentation, 2006. [5]: U-K.Moon, B-S.Song: Background Digital Calibration Techniques for Pipelined ADCs, IEEE Transactions on Circuits and Systems-II: Analog and Digital Signal Processing, Vol. 44, No. 2, pp.102-109, February 1997. [6]: E.Siragusa, I.Galton: A Digitally Enhanced 1.8-V 15-bit 40-MSample/s CMOS Pipelined ADC, IEEE Journal of Solid-State Circuits, Vol. 39, No. 12, pp 2126-2138, December 2004. [7]: J.Ming, S.Lewis: An 8-bit 80-Msample/s Pipelined Analog-to-Digital Converter With Background Calibration, IEEE Journal of Solid-State Circuits, Vol. 36, No. 10, pp 14891497, October 2001. [8]: J.Keane et.al: Background Interstage Gain Calibration Technique for Pipelined ADCs, IEEE Transactions on Circuits and Systems-I: Regular Papers, Vol. 52, No. 1, pp 32-43, January 2005. [9]: J.Li, U-K.Moon: Background Calibration Techniques for Multistage Pipelined ADCs With Digital Redundancy, IEEE Transactions on Circuits and Systems-II: Analog and Digital Signal Processing, Vol. 50, No. 9, pp 531-538, September 2003. [10]: K.El-Sanakry, M.Sawan: A New Digital Background Calibration Technique for Pipelined ADC, Proceedings of the 2004 International Symposium on Circuits and Systems, 2004. ISCAS '04, Vol.1, pp I.5-I.8, 23-26 May 2004. [11]: J.Bjrnsen: Method and apparatus for start-up of analog-to-digital converters, US Patent no.6.970.120, November, 2005. [11]: J.P.Keane et.al: Digital Background Calibration for Memory Effects in Pipelined Analog-to-Digital Converters, IEEE Transactions on Circuits and Systems I: Regular Papers: Accepted for future publication, Volume PP, Issue 99, pp 1-15, 2005. [12]: Y.Chiu et.al: Least Mean Square Adaptive Digital Background Calibration of Pipelined Analog-to-Digital Converters, IEEE Transactions on Circuits and Systems-I: Regular Papers, Vol.51, No.1, pp 38-46, January 2004.
Ivar Lkken
Side 54
05.05.2006
Ivar Lkken
Side 55
05.05.2006
Ivar Lkken
Side 56
05.05.2006
(98)
In (98), k is a process dependent constant. For simplicity, we rewrite this as VC = Vinit where is given by (98). This is shown in fig.36, of course greatly exaggerated for illustrational purposes.
Ivar Lkken
Side 57
05.05.2006
Vinit
If one look at the operation of the stage DAC from fig.24, it is evident that this will affect the output voltage. At the end of the previous feedback phase, the feedback capacitors Cf are charged to Vout [n 1] vx [n 1] and the reference capacitors Cr to y Vref [n 1] vx [n 1] . Repeating the steps (71)-(74), including the dielectric absorption/relaxation, we can then easily find that:
Vout [n] = ( 2 Vin [n] y Vref [n]) Ge + f Vout [n 1] + r Ge y Vref [n 1]
(99)
Since Cf and Cr are identical type capacitors, we can assume f = r = . If we take the z-transform of (99), this gives:
Vout ( z ) = ( 2 Vin ( z ) y Vref ( z ) ) Ge + Vout ( z ) z 1 + Ge y Vref ( z ) z 1
(100)
1 1 z 1
y Vref ( z ) Ge
(101)
Including this new term in the model for the first stage, and knowing that y=x+e we get the structure in fig. 37 as a model for the first stage.
Ivar Lkken
Side 58
05.05.2006
Stage 1 X e1
1 1 z 1
backend
2
Ge_1
ebe
Y
Figure 37: Model for analysis of first stage gain error and memory effects
Also the input S/H (stage 0) will have memory effects, but in this case, only the first term in (101) will be included in the output expression as it has no stage ADC. Expanding the model above to include stage 0, 1...N-1 (the final stage has no stage DAC), the output expression can be derived recursively since the stages operates successively in a pipeline (see [1] for details) and becomes:
1 N 1 1 z + Ebe ( z ) Y ( z ) = X ( z ) N 1l =0 + Ei ( z ) Ge _ l 1 N 1 i 1 1 i =1 l =i 1 k z 1 k z k =0 k =i
N 1
e _l
(102)
In (102), Ei ( z ) is the quantization error stage of i at time instant n. The first term of (102) can be seen to add a linear filtering operation to the output, introducing high frequency poles. The second term is the leakage or distortion component, dependent on previous output decisions and hence the input data. The third term is the backend quantization error. It should be noted that only memory effects from the second stage onwards contribute to the nonlinearity term (for N=1 the expression in the parenthesis cancels out to 1), so unlike for regular gain errors, where the first stage dominates, the second stage is the dominant source of memory effect nonlinearity. The memory effects can be eliminated expanding the normal gain error coefficients to include filters as shown in fig.38 for second stage elimination. The reader is recommended to go through the maths for the one-stage and two stage example to illustrate (102) and the calibration filter routine. The algorithms for measuring the effects will be the same as before, with [1] opting for the parallel ADC approach.
Ivar Lkken
Side 59
05.05.2006
Stage 1 X e1
1 1 1 z 1
Stage 2
1 1 2 z 1
2Ge_2
2Ge_1
backend ebe
e2
4 2
2 z 1 1 2 z 1
1 Ge1
1 Ge 2
Y
Figure 38: Calibration of first and second stage gain error and memory effects
+
2Ge
BEAD
l1 Y+
SADC
SDAC
2 2
SADC
Processing
SDAC
Ts_2 X+
Yl1
2Ge
BEAD
The idea is simple. Two identical ADCs process the input signal with opposite phase, denoted X+ and X-. The output Y is simply given by:
Ivar Lkken
Side 60
05.05.2006
Y = Y+ Y
(103)
The two test signals on the other hand, are uncorrelated. Thus, when extracting the gain error coefficient, we can simply sum the positive and the negative part and we have eliminated the signal component from the expression. If we assume the structure from fig.32, we get for the positive and the negative part: Y+ = [ 2 X + + ebe + l1 ] + 2 e1+ (1 Ge _1 l1 ) + k Ts _1 (1 Ge _1 l1 ) (104) (105)
(106)
Now, the only term needed to be correlated away is the very small backend error. Hence, this algorithm will very quickly converge. Of course, equations (104)-(106) requires for the two channels to be perfectly matched, which can not be achieved in practice, but still, the disturbing component in the output expression will be many orders of magnitude smaller than for the single channel approach. If the mismatch is 1%, cancellation will be 99%. Looking at fig.39, it looks as if the complexity is being doubled by using this approach. This is however not the case. Remember that this is basically a differential system. The number of comparators is doubled and the digital logic is a little more complex, but the stage DAC, which is by far the largest and most power consuming component, is about the same since differential design can be employed. With some additional digital circuitry, one can also calibrate the P-channel and N-channel separately [2].
Corr
Gefilter
Ts_2
Ivar Lkken
Side 61
05.05.2006
ref 2
ref
ref 2
ref 4
ref 4
ref 2
ref
ref 2
ref
Figure 41: Stage DAC transfer function with non-linear gain error.
Since the distortion is a result of output compression, the third order term can be modelled at the output of the stage just like the linear gain error. Fig.42 shows the cubic distortion component appended to the stage model from fig.28.
Ivar Lkken
Side 62
05.05.2006
Stage 1 X e1 2
^3
g3
Vin_be
backend ebe
g1
Vout_1_ideal
Y
Figure 42: Model for analysis of first stage gain error including third order nonlinearity term
The calibration of this is conceptually quite straightforward, as shown in fig.43. As can easily be found with the basic analysis from chapter 5.1, the errors will cancel if l1=1/g1 and l3= 1/g3.
Vin_be
Stage 1 X e1 2
^3
g3
backend ebe
g1
Vout_1_ideal
2 l3
^3
l1
Figure 43: Conceptual calibration of first and third order nonlinearity error
However, implementation of cubic distortion calibration is rather complex. First of all, it requires the computation of the digital cube in the output filter. This will require a lot of Ivar Lkken Side 63 05.05.2006
computations and, if the converter is running at very high speed, it will contribute greatly to digital complexity and power consumption. Furthermore, if using background calibration, the third order term will be very small, and thus take very long to correlate out on the output. The l3-component will thus converge even slower than the l1-component.
7 Comparator dithering
As we have seen in previous chapters, the dither signal is applied to the DAC scaled by a factor k. Usually in 1.5-bit systems, k=1/4. This is achieved through a separate dither capacitor, as shown in fig.44.
Cd Cf
Ts Vref
+ -
+ Vin -
Cr
+
VCM
A +
+ Vout -
Cr Cf Cd
This means that there in reality will be mismatch between the dither capacitor and the other capacitors, which leads to an error in the dither gain and consequently an error in the calibration result. Furthermore, if k=1/4, the dither capacitor Cd is only one fourth the size of the reference and feedback capacitor. To get good enough matching with such a small capacitor, it might be that the other capacitors have to be made bigger than kT/C-requirements dictate. This would lead to an increase in power consumption. These problems can be relieved by comparator dithering, or randomly varying the comparator threshold level [2]. The noise is now added at the input of the stage ADC, rather than the output, but as can be seen from fig.31, the stage equivalent will be the same.
Vin
Vth + 4
Ts
Vout
Vth
Of course, there may also be deviations in the threshold voltages, leading to similar errors, but these do not depend on matching of such small unit sizes. Ivar Lkken Side 64 05.05.2006
y Vref
Cr
Vx
+ -
I1
Vout Vin 2
Cr
+ -
I1
I2
I2
VCM
VCM
VCM
In the sampling phase, the input voltage is sampled onto the capacitors Cf and Cr, as seen for the second stage. Next, when the stage shifts to the feedback phase, the output Vout is momentarily reset to ground to ensure Vx starts below the common-mode. This ensures the comparator output is zero at the start of the feedback phase. Then, the current source I1 is turned on and Vx increases as a ramp towards VCM while Vout increases towards Vin. Due to the charge redistribution, Vx will reach VCM as Vout reaches Vin. When Vx passes VCM, the comparator changes decision and I1 is turned off. Because of comparator delay, there will be an overshoot, which is compensated for by the smaller I2. This is turned on, VX sinks towards VCM and once it passes it, the comparator turns off again, this time with a much smaller overshoot due to the slower voltage ramp. At this instant, the output voltage equals the sampling phase input voltage and is sampled onto the next stage through the switch seen for the second stage in fig.46. A timing diagram of Vx and Vout is shown in fig.47. The I1-phase can be seen as coarse detection and the I2 phase as fine detection. This is necessary to ensure fast operation (fast voltage ramp) and good accuracy (little over- or undershoot).
Ivar Lkken
Side 65
05.05.2006
While a regular OTA switch cap stage forces the common mode voltage to enable input voltage detection, the comparator based stage detects it. This is a more energy efficient approach. The critical component now is the comparator, since it needs high gain and very low delay to minimize undershoot at the sampling instant. However, unlike OTAs, comparators can be cascaded to achieve high gain. They are thus much easier to implement in low-voltage processes. This approach is at an early stage, but promises a high potential for improving FOM. In [5], a 10-bit, 8MHz test ADC in 0.18m CMOS is reported to achieve 0.3pJ/cs without any power optimization or stage scaling.
Ivar Lkken
Side 66
05.05.2006
Figure 48: Architecture and performance data, 1GS/s, 11b ADC [6]
The converter achieves 58.6dB peak SNR and 55dB peak SNDR for 9.1ENOB performance. The effective resolution bandwidth is 400MHz with SNDR then at 52dB. The converter is implemented fully in 0.13m CMOS running of 1.2V and 2.5V supplies and its 250mW power consumption means a FOM of 0.5pJ/cs. The ADC presented in [7] is a realization in 90nm operating from a single 1.2V supply. This ADC operated without gain error calibration and presents the state of the art of whats possible with conventional approaches. Its performance is achieved using a carefully designed two-stage Miller-compensated OTA with 65dB open-loop gain.
Figure 49: Architecture and performance measurements, 100MS/s, 10b, 90nm ADC [7]
Ivar Lkken
Side 67
05.05.2006
As can be seen, the first stage is 2.5-bit (5-level) and designed the most accurate. The rest of the stages are scaled by 0.25, meaning they use 0.25 times the sampling capacitance for lower area and power consumption. As is now known, the first stage is of course the most critical. The achieved SNR is 58.5dB with a dynamic range of more than 65dB. Totally, noise and distortion limits the resolution to 9.3 ENOB. The effective resolution bandwidth is 100MHz and the sampling frequency programmable over a range of 25-120MS/s. The FOM is 0.5pJ/cs. In the low-power segment, an ADC published in 2006 [8] achieved a figure of merit of 0.3pJ/cs in 0.18m CMOS using a special power saving technique called opamp current reuse. This circuit uses an N-channel input stage OTA for the first two stages and a P-channel input stage OTA for the two last. As such, two and two stages can use stacked OTAs and hence share the same bias current. Also, when the N-channel DACs from stages 1 and 2 sample the input, the P-channel OTAs serve as their active load to boost the gain. The opposite is the case when stages 3 and 4 sample. This principle is shown in fig.50.
This converter is realized in 0.18m and operates at 10 bits and 50MS/s. The ENOB is 9.2 bit and 8.8 bit for 1MHz and 20MHz input respectively. SFDR is 70dB and power consumption a mere 18mW, meaning the FOM is around 0.3pJ/cs. This is achieved without digital calibration and shows that smart analog design can also go a long way. In the high resolution segment however, gain error calibration is now a necessity. The publication in [9] shows a 15-bit, 40MS/s Pipeline ADC realized in 0.18m CMOS. It uses 9level stages with dynamic element matching and real-time background gain calibration to achieve 90dB SFDR. The architecture is shown in fig.51.
Ivar Lkken
Side 68
05.05.2006
The gain error calibration (GEC) logic is a normal background calibration routine like we analyzed in section 5.3.2, where a test signal is inserted and extracted in real-time at the output using a correlator as shown in fig.33. As can be seen from fig.51, the first three stages have GEC and dynamic element matching, using an algorithm called DAC Noise Cancellation (DNC). Dynamic element matching has not been reviewed in this report, for a general analysis the reader is referred to [10] and for specifics on the DNC algorithm to [9]. The application of GEC and DNC improves the performance tremendously. Without gain error calibration, only 70dB SFDR can be achieved despite a well dimensioned analog design that uses more than 340mW. With post processing enabled, the SFDR increases to 90dB. The SNR is 72dB across the entire nyquist band. Total digital power consumption is at 51mW only a fraction of the analog consumption. To achieve this performance from analog optimization alone would be almost impossible and require many times higher area and power consumption.
Figure 52: Power spectum with gain error calibration disabled (left) and enabled (right) [9].
Ivar Lkken
Side 69
05.05.2006
[1]: J.P.Keane et.al: Digital Background Calibration for Memory Effects in Pipelined Analog-to-Digital Converters, IEEE Transactions on Circuits and Systems I: Regular Papers: Accepted for future publication, Volume PP, Issue 99, pp 1-15, 2005. [2]: J.Li, U-K.Moon: Background Calibration Techniques for Multistage Pipelined ADCs With Digital Redundancy, IEEE Transactions on Circuits and Systems-II: Analog and Digital Signal Processing, Vol. 50, No. 9, pp 531-538, September 2003. [3]: J.Keane et.al: Background Interstage Gain Calibration Technique for Pipelined ADCs, IEEE Transactions on Circuits and Systems-I: Regular Papers, Vol. 52, No. 1, pp 32-43, January 2005. [4]: B.Murmann, B.E.Boser: A 12-bit 75-MS/s Pipelined ADC Using Open-Loop Residue Amplification, IEEE Journal of Solid-State Circuits, Vol. 38, No. 12, pp2040-2050, December 2003. [5]: T.Sepke et.al: Comparator-Based Switched-Capacitor Circuits for Scales CMOS Techniques, ISSCC2006, Session 12, Paper 12.4, pp. 220-221, February 2006. [6]: S. Gupta et.al: A 1GS/s 11b Time-Interleaved ADC in 0.13m CMOS, ISSCC2006, Session 31, Paper 31.6, pp. 576-577, February 2006. [7]: G.Geelen et.al: A 90nm CMOS 1.2V 10b Power and Speed Programmable Pipelined ADC with 0.5pJ/Conversion-Step, ISSCC2006, Session 12, Paper 12.1, pp. 214-215, February 2006. [8]: S.T.Ryu, B.S.Song, K.Bacrania: A 10b 50MS/s Pipelined ADC with Opamp Current Reuse, ISSCC2006, Session 12, Paper 12.2, pp. 216-217, February 2006. [9]: E.Siragusa, I.Galton: A Digitally Enhanced 1.8-V 15-bit 40-MSample/s CMOS Pipelined ADC, IEEE Journal of Solid-State Circuits, Vol. 39, No. 12, pp 2126-2138, December 2004. [10]: I.Lkken: FE8114: High Resolution Audio DACs Final Report, ch.6: The DAC and Dynamic Element Matching, pp. 64-72, NTNU, August 2005.
Ivar Lkken
Side 70
05.05.2006
Ivar Lkken
Side 71
05.05.2006
Summary
As a review of the course FE8113 High Speed Analog to Digital Converters, this report has attempted to summarize the key points of the course content. Focus has been on writing a report that can give the reader a good understanding of ADC fundamentals, implementation limitations, the case for gain error calibration and an overview of the state of the art; - exactly what my own objectives were for taking the course. As a consequence, emphasis has not been on details and implementation specifics from the various publications in the curriculum, but rather on a complete and general understanding of the various topics and challenges. To write this report has been a very instructive process as it has been necessary to break down the curriculum and then rebuild it in a unified manner. Different authors use different notations and different models for illustration. To create a report that gives a coherent presentation of the course topics, and not just loose excerpts from different publications, has thus been challenging task, advancing my own understanding of the subjects. It is my hope that the report has managed to communicate this and that the reader after reading it will get an overview and an understanding of the topics it treats and an insight into the challenges of modern ADC design.
Ivar Lkken
Side 72
05.05.2006