• No results found

Spurious-Free Dynamic Range of a Uniform Quantizer

N/A
N/A
Protected

Academic year: 2021

Share "Spurious-Free Dynamic Range of a Uniform Quantizer"

Copied!
5
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Abstract—Quantization plays an important role in many sys-tems where analog-to-digital conversion and/or digital-to-analog conversion take place. If the quantization error is correlated with the input signal, then the spectrum of the quantization error will contain spurious peaks. Although analytical formulas describ-ing this effect exist, numerical evaluation can take much effort. This brief provides approximations for the spurious-free dynamic range (SFDR) of a uniform quantizer with a single sinusoidal input, with and without additive Gaussian noise. It is shown that the SFDR increases by approximately 8 dB/bit, in case there is no noise. Generalizing this result to multitone inputs results in an additional 2 dB/bit per additional tone. Additive Gaussian noise decorrelates the sinusoid(s) and the quantization error, which results in a dramatic increase in SFDR.

Index Terms—Analog-to-digital conversion, digital-to-analog conversion, harmonic distortion, intermodulation distortion, polynomial approximation, quantization, quantization noise, spurious-free dynamic range (SFDR).

I. INTRODUCTION

Q

UANTIZATION is an important step in analog-to-digital conversion. It limits a signal to a finite set of discrete values that, in general, will not exactly represent the original signal. In most cases, the quantization levels are uniformly spaced at a distance known as the LSB.

The quantization error is defined as the difference between the output and input signals of the quantizer. It is usually as-sumed that the error is uniformly distributed between−1/2 LSB and 1/2 LSB, with an equal amount of power for each fre-quency, i.e., it is modeled as white noise and is independent of (and, hence, uncorrelated with) the input signal. The total power of this quantization noise can then be calculated to be LSB2/12.

Applying the preceding assumptions and taking a full-scale sinusoid as the input signal, it can be shown that the SNR at the output is equal to

SNR = 6.02b + 1.76 [dB] (1)

where b denotes the number of bits.

Manuscript received October 4, 2008; revised December 24, 2008. Current version published June 17, 2009. This paper was recommended by Associate Editor H.-S. Chen.

M. S. Oude Alink is with the Computer Architecture for Embedded Sys-tems (CAES) Group and the IC-Design Group, Centre for Telematics and Information Technology (CTIT), University of Twente, 7500 AE Enschede, The Netherlands (e-mail: m.s.oudealink@utwente.nl).

A. B. J. Kokkeler, K. C. Rovers, and G. J. M. Smit are with the CAES Group, CTIT, University of Twente, 7500 AE Enschede, The Netherlands.

E. A. M. Klumperink and B. Nauta are with the IC-Design Group, CTIT, University of Twente, 7500 AE Enschede, The Netherlands.

Digital Object Identifier 10.1109/TCSII.2009.2020929

However, in reality, the quantization error can (partly) be correlated with the input signal. The result is that the correlated part of the quantization error is not translated into a white noise floor, but into distortion of the input signal. Nevertheless, the total power of the distortion components is still relatively well approximated by (1), particularly for a larger number of quantization levels [1], [2].

For a sine wave input without noise, uniform quantization results in pure harmonic distortion. The difference in power be-tween the desired signal and the most powerful distortion com-ponent is termed as the spurious-free dynamic range (SFDR). The SFDR is an important specification for spectrum analyzers, because a user cannot distinguish between distortion compo-nents and true input signals. It is also relevant for receivers, because the SFDR may limit receiver sensitivity [1].

Increasing the resolution of the quantizer increases the SFDR, but the resolution of analog-to-digital converters (ADCs) is limited by the required sampling rate and the max-imum allowable power consumption [3]. Analytical formulas for distortion components are available, but they are difficult to evaluate and do not easily translate to the SFDR. Therefore, system designers would benefit from simple design equations for the SFDR to allow for the exploration of the design space and optimization between resolution, SNR, and SFDR.

Quantization also plays a role in digital-to-analog converters (DACs). An important type of DAC is the zero-order-hold (ZOH) DAC, which retains the sample value until the following sample. For a uniformly quantized digital signal, the result is a uniformly quantized analog signal. Therefore, the analyses to be presented apply equally well to ZOH DACs.

In this brief, we will derive approximations for the SFDR using a numerical evaluation of the analytical formulas, which leads to simple closed-form expressions. We will also look at quantization in the presence of noise and briefly touch upon the quantization of multiple tones. In both cases, the correlation is reduced, which results in an increase of the SFDR. Nonuniform quantization and clipping also introduce distortion, but that is not considered in this brief.

It is vital to note that sampling is not considered, because it is orthogonal to quantization. When no sampling takes place, the spectrum of a quantized signal may contain components at any frequency. When sampled, these components will alias if their frequencies are higher than the Nyquist frequency.

II. QUANTIZATION OF ASINUSOID

The multilevel quantization of a sinusoid that is free of noise has mathematically been investigated by Blachman [4]. It was shown that for a midriser quantizer (i.e., a quantizer with a 1549-7747/$25.00 © 2009 IEEE

(2)

Fig. 1. The quantization staircase of (a) can be decomposed into a straight line and a repetitive quantization error as shown in (b). The black line represents Δ = 0, which corresponds to a midriser quantizer.

threshold exactly at 0), only odd-order harmonics are produced due to the odd-symmetric nature of the quantization staircase. To simplify the calculations, all the amplitudes in this brief are expressed in LSB, and one LSB is normalized to 1. The resulting output signal then is equal to [4]

Ap= δp,1A +  m=1 2 mπJp(2mπA) (2)

where Ap is the output amplitude of the pth harmonic, δi,j is

the Kronecker delta function, A is the input amplitude, and Jp

is the pth-order Bessel function of the first kind.

Using the quantization staircase q(x), as shown in Fig. 1, (2) can be generalized to uniform quantizers by expressing it as a linear transfer plus the quantization error. This quantization error is periodic with a period of 1 LSB. As a result, q(x) can be written as the sum of x and the Fourier series of the quantization error as q(x) = x +  m=1 amsin(2πmx)−  m=1 bmcos(2πmx) (3)

where the coefficients can be found by straightforward calcula-tion, which results in

am=

2 cos2(Δπm)− 1

πm bm=

sin(2πΔm)

πm (4)

where Δ is the offset in LSB. Using the same method as Blachman [4], we then find

Ap= ⎧ ⎪ ⎪ ⎨ ⎪ ⎪ ⎩ (2− δp,0)  m=1

bmJp(2πmA), for p even

2 

m=1

amJp(2πmA) + δp,1A, for p odd

(5)

which reduces to (2) for Δ = 0.

Because A is expressed in LSB, the number of quantization levels n directly depends on the amplitude A of the sinusoid. Hence, n does not need to be a power of two, which is important because in practical situations sinusoids are not always full scale.

Fig. 2 shows the lower part of the spectrum of a full-scale sinusoid quantized with 8 bits (A = 128), which is obtained by numerical evaluation of (2) and by simulation (both in MATLAB). Note again that sampling is not considered, which

Fig. 2. Low end of the spectrum of a full-scale sinusoid after 8-bit quantiza-tion (a) using (2) and (b) using simulaquantiza-tion.

Fig. 3. (a) SFDR for a full-scale sinusoid as a function of the number of quantization levels for a midriser quantizer (points) and linear fit (line). (b) Error of the linear fit.

in simulations is approximated by using a sampling rate that is high enough to make the aliasing effects negligible. For the harmonic p with the highest power, p is equal to 795, which is close to 256π, as derived by Blachman [4]. Numerical evaluation (not shown here) indicates that the approximation of the strongest harmonic being located roughly at 2πA is only valid for at least 20 quantization levels. In other cases, the third harmonic is the strongest.

Pan and Abidi [1] simulated the effect of midriser quantiza-tion of a sinusoid. They constructed two linear fits for the power of the highest harmonic as a function of the number of bits, both with a slope of 9 dB/bit, but with different offsets. Although these fits were intuitively explained, it can be seen from their simulation results [1, Fig. 3] that the true slope is somewhat less than 9 dB/bit.

We determined the SFDR through numerical evaluation (and verified by simulation) for a full-scale sinusoid with Δ = 0 for all even values of n (to keep symmetry around zero) up to 13 bits, as shown in Fig. 3. A linear fit (also shown in Fig. 3) of these points results in

SFDRσN =0= 8.07b + 3.29 [dB] (6)

where b = log2n. The subscript σN = 0 is added to denote the

(3)

Fig. 4. Difference in decibels between the SFDR related to the input power and the fundamental output power.

Fig. 5. Zoom-in on the spectrum for an 8-bit quantization of a sinusoid with full-scale amplitude (a) minus 0.65 LSB and (b) minus 0.85 LSB. The SFDR is 69.85 and 67.60 dB, respectively. The “holes” in the spectra contain values below the range shown.

b is not necessarily an integer. This approximation has a mean absolute error of 0.25 dB and a standard deviation of 0.31 dB, with a maximum error of 1.56 dB occurring for 58 quantization levels. Numerical evaluation showed this approximation to hold for up to at least 25 bits.

There is one ambiguity in the definition of the SFDR that needs to be clarified. In the case of only a few quantization levels, the first harmonic (or fundamental component) is sig-nificantly lower in amplitude at the output than at the input. For example, in the case of 1-bit quantization of a full-scale sinusoid, the power of the output fundamental is 3.9 dB lower than the input power. One could define the SFDR with respect to the input amplitude (which is the usual definition) or with respect to the output amplitude. The difference is shown in Fig. 4. It can be seen that for 4 bits or more, the difference is negligible. The linear fit described in (6) uses the SFDR with respect to the output fundamental, which seems to be in accordance with the choice made by Pan and Abidi [1].

For an arbitrary value of Δ, both even- and odd-order harmonics are present, which means the distortion power is distributed over more distortion components. Indeed, numerical evaluation shows that when am in (5) is set equal to bm for

m = 1 (for reasons to be discussed in the derivation), which is the case for Δ = 1/8 and Δ = 5/8, the SFDR increases by roughly 3 dB as compared with (6).

In practice, the amplitude will never be exactly full scale. Numerical evaluation shows that the SFDR randomly changes with a magnitude similar to the error shown in Fig. 3 if the amplitude is somewhere in the range between full scale and full scale minus one LSB. An example of this change is shown in Fig. 5. This suggests that approximations to the theoretical value may deviate by 1 or 2 dB without compromising practical relevance.

Fig. 6. Numerical evaluation of ˆp2/3ζ(πn/ˆp) for a midriser quantizer with

n ranging from 20 to 1024.

A. Derivation of 8 dB/bit

Blachman [4] showed that the harmonics for p 2πA decrease by 3.01 dB/bit. In his case, the LSB remains 1. In practice, the maximum amplitude is often given, and one would like to see what happens if the resolution is increased. Therefore, an extra bit means that the LSB is divided by two. This corresponds to another 6.02 dB/bit decrease, so the net result is a decrease of 9.03 dB/bit. This was also the conclusion drawn by Pan and Abidi [1].

However, we found that the harmonics around p≈ 2πA decrease by only about 2 dB/bit (leaving the LSB at 1). We will derive this from the exact analytic formula [see (5)] by using approximations to the Bessel function and showing that only the first term in the summation contributes to the trend.

As suggested in [4], the Bessel functions can be approx-imated by Airy functions in the region where p≈ 2πA [5, p. 366, eq. (9.3.6)] Jp(pz)≈  4ζ(z) 1− z2 1 4 Ai p23ζ(z) p13 (7) where ζ(z) =−  3 2 z2− 1 −3 2arccos 1 z 2 3 . (8)

With the strongest harmonic ˆp located at ˆp≈ 2πA, (2) in combination with (7) yields

Apˆ≈ 2  m=1 cm  4ζ(z) 1− z2 1 4 Ai ˆ p23ζ(z) ˆ p13 (9)

where cm= am if ˆp is odd, cm= bm if ˆp is even, and

z = 2πmA/ˆp.

The cases m = 1 and m > 1 in (9) are considered separately. It will turn out that only the m = 1 term in the summation contributes to the trend, whereas the other terms merely act as “random” deviations from this trend.

Numerical analysis shows that ˆp is always slightly smaller than 2πA, but tends to approach 2πA for a larger A. For m = 1, we numerically find z∈ (1; 1.1). In this region, the factor 4ζ(z)/(1− z2) remains virtually constant.

The parameter ˆp2/3ζ(2πA/ˆp) of the Airy function was

numerically evaluated for a midriser quantizer quantizing a full-scale sinusoid for n = 20 to n = 1024 and is shown in Fig. 6. Clearly, this parameter stays roughly −1, which indi-cates that Ai(ˆp2/3ζ(2πA/ˆp)) can also be considered to be a

(4)

Fig. 7. Airy function Ai(−x) (solid line) and the approximation of (11) (dashed line).

Removing the constants, we, therefore, obtain for the first term in the summation of (9)

Apˆ(m = 1)∝

1 ˆ p13

(10) which corresponds to a ˆp−(2/3) dependency in the power spectrum, which is equivalent to a decrease of 2.01 dB/bit.

For m≥ 2, we approximate the Airy function using [5, p. 449, eq. (10.4.83)] Ai(−x) ≈ sin 2 3x 3 2 +π 4 πx14 (11) for x 1. Fig. 7 shows that this approximation is quite accurate for x > 1.2 (error less than 0.013).

Substituting this and the approximation z = 2πmA/ˆp≈ m into (7) and simplifying, we obtain

Jp(pz)≈ Jp(pm)≈  4 m2− 1 1 4 sin 2 3pζ(m) 3 2 +π 4 πp12 . (12) There seems to be no relation between the number of quan-tization levels and the phase of the sinusoid in (12). Hence, the sine term can be considered as a random variable that takes values between−1 and 1 with an expectation of 0.

In conclusion, only the first term in the summation of (9) is important for the overall trend, whereas the other terms provide more or less random deviations. This randomness explains the erratic behavior around the trend of the SFDR shown in Fig. 3. Combining the 2.01 dB/bit for the m = 1 term and the 6.02 dB/bit from halving the amplitude of the quantization error, a trend of 8.03-dB/bit increase in SFDR is expected, which is very close to the 8.07 dB/bit obtained from numerical evaluation.

III. QUANTIZATION OF ASINUSOIDWITHNOISE Adding noise to the input signal decorrelates the input signal with the quantization error [6] and can be regarded as a form of dithering [2]. The effect only depends on the univariate probability density function (pdf) of the noise and not on its spectrum [4]. The resulting signal frequency response is the product of the quantization error, as given in (2), and the Fourier transform of the pdf of the noise, e.g., as in [4, eq. (35)].

Because the thermal noise has a Gaussian pdf and is often the most important noise contribution, we will study the effect of this noise on the SFDR in more detail. The results apply equally well to flicker noise if it is assumed that this noise has a Gaussian pdf. Any frequency component below 1/T , where

Fig. 8. Contour plot of the error made in decibels by the approximation given in (14) as compared with (13).

T is the observation time, will constitute an apparent constant offset [7], which can be represented by Δ in (5). The exact resulting spectrum is found to be [4], [6], [8]

Ap= δp,1A +  m=1 cmJp(2mπA)e−2π 2σ2 Nm2 (13)

where σN is the standard deviation of the noise in LSB, and p

denotes the pth harmonic of the input frequency. Note that p is completely unrelated to the noise frequencies.

Using the previously derived result that only m = 1 con-tributes to the trend of the SFDR as a function of the number of quantization levels, it can be observed that the increase in SFDR (in decibels) quadratically depends on the noise level in LSB. Given as an equation, we have

SFDRσN = SFDRσN =0+ 20 log10e−2π

2σ2 N

= 8.07b + 3.29 + 171.5σ2N [dB]. (14) The result is that adding more noise increases the SFDR, which may look counterintuitive. The SFDR of, e.g., a spectrum analyzer, also takes the noise level into account, because the noise in each “frequency bin” is integrated over the (effective) noise bandwidth. For a quantizer, the concept of a resolution bandwidth is not applicable, and hence, only spurious peaks are considered.

Fig. 8 shows a contour plot of the error (in decibels) between the approximated [using (14)] and the calculated [using (13)] SFDR as a function of the two important parameters: 1) the number of quantization levels and 2) the amount of noise. The contour plot is generated by evaluating (13) and (14) for all combinations of an even number of quantization levels and σN

in steps of 0.01 LSB. Because exp(−2π2σ2

Nm2) in (13) is a

smooth function of σN, no smaller steps in σN are required.

A negative error means the approximation underestimates the SFDR given by theory. Clearly, the approximation is quite close over the whole range of values shown. The difference of less than 2 dB in virtually all cases bears no practical relevance, as discussed in Section II.

Because the instantaneous amplitude of the noise can assume any value, practical quantizers will sometimes clip, which results in (additional) distortion of the spectrum. Gaussian noise has an amplitude of less than 3σ for 99.87% of the time.

(5)

to generalize it for an arbitrary number of sinusoids. Suppose N sinusoids of frequency fi and amplitude Ai are present

at the input, where i ranges from 1 to N . The output will contain peaks at frequenciesipifi, with



ipi> 0 (note that

any individual pi can be negative), the amplitude of which is

denoted by Ap1,...,pN. This amplitude can be derived using the

identities [4] ejz sin(θ)=  p=−∞ Jp(z)ejpθ, J−p(z) = (−1)pJp(z) (15) resulting in Ap1,...,pN = N  i=1⎝δpi,1Ai  j=i δpj,0 ⎞ ⎠ +  m=1  cm N  i=1 Jpi(2πmAi)  . (16) If some of the input frequencies are commensurate, i.e., ∃k, lj ∈ Z such that kfi=



j=iljfj, then multiple

ampli-tudes Ap1,...,pN will occupy the same frequency and, therefore,

need to be added while taking into account their respective phase relations to obtain the total amplitude at that specific frequency. This results in a much more complicated expression for the general case and is, therefore, not discussed here.

In the derivation of the trend in SFDR for a single sinusoid, we found a p−(1/3)amplitude dependence if the LSB was kept equal to 1. Since the summation now contains the product of N of these Bessel functions, we find a p−(N/3) amplitude dependency. This results in an expected 6.02 + 2.01N dB/bit increase in SFDR.

Simulations using two noncommensurate tones confirmed a trend of roughly 10 dB/bit. For more than two tones, the sim-ulation results become unreliable because the limited number of bins in a fast Fourier transform cause multiple nonnegligible intermodulation products to fall into the same frequency bin. Closer numerical evaluation of the effects of multitone quanti-zation will be left for future research.

V. EXAMPLE

Consider a Flash ADC with differential-pair-based pream-plifiers at the input, which amplifies the difference between the input signal and the different reference voltages generated through a resistor ladder. Assume that the input capacitance of each differential pair is 30 fF, and that there are no mismatches and offsets. The thermal noise generated by the ladder is equal to v2= kT /C≈ 1.4 · 10−7 V2, whereas the input-referred

noise of the differential pair with drain resistors RDis equal to

v2= 8kT (2/3g

m+ 1/g2mRD)≈ 10−17 V2 for RD= 400 Ω

whereas when using (1), the SNR will be 31.9 dB. For 9 bits, the noise increases the SFDR by 28.0 dB to a total of 101.9 dB.

VI. CONCLUSION

The SFDR of a uniform quantizer, when quantizing a sinu-soid without noise, increases by roughly 8 dB/bit, which was found by numerical evaluation of exact formulas and verified by simulations. This trend and the seemingly random devia-tions around it were mathematically explained. Adding noise decorrelates the quantization error from the input signal and, therefore, increases the SFDR. For Gaussian noise, the SFDR quadratically increases with the standard deviation of the noise in LSB. A numerical comparison between a simple approxi-mation formula that has been introduced in this brief, and the exact value obtained from existing but complicated analytical formulas, shows an error of less then a few decibels, which is often acceptable for practical purposes. In the case of N tones, the SFDR is expected to increase by (6 + 2N ) dB/bit, which was derived in the same way as for the single-tone situation.

These results can be applied to the design of systems without having to use the exact formulas. This can save a lot of time and effort. The results relate the SNR, the SFDR, and the number of quantization levels, and knowing two of them allows easy calculation of the third.

ACKNOWLEDGMENT

The authors would like to thank X. Gao for providing valu-able references and P. Veldhorst for his assistance with the practical example.

REFERENCES

[1] H. Pan and A. Abidi, “Spectral spurs due to quantization in Nyquist ADCs,”

IEEE Trans. Circuits Syst. I, Reg. Papers, vol. 51, no. 8, pp. 1422–1439,

Aug. 2004.

[2] M. Wagdy and W. Ng, “Validity of uniform quantization error model for sinusoidal signals without and with dither,” IEEE Trans. Instrum. Meas., vol. 38, no. 3, pp. 718–722, Jun. 1989.

[3] B. Le, T. Rondeau, J. Reed, and C. Bostian, “Analog-to-digital converters: A review of the past, present and future,” IEEE Signal Process. Mag., vol. 22, no. 6, pp. 69–77, Nov. 2005.

[4] N. Blachman, “The intermodulation and distortion due to quantization of sinusoids,” IEEE Trans. Acoust., Speech, Signal Process., vol. ASSP-33, no. 6, pp. 1417–1426, Dec. 1985.

[5] M. Abramowitz and I. Stegun, Handbook of Mathematical Functions

With Formulas, Graphs and Mathematical Tables. New York: Dover,

Jun. 1964.

[6] M. Wagdy, “Effect of various dither forms on quantization errors of ideal A/D converters,” IEEE Trans. Instrum. Meas., vol. 38, no. 4, pp. 850–855, Aug. 1989.

[7] M. Keshner, “1/f noise,” Proc. IEEE, vol. 70, no. 3, pp. 212–218, Mar. 1982.

[8] A. Kokkeler and A. Gunst, “Modeling correlation of quantized noise and periodic signals,” IEEE Signal Process. Lett., vol. 11, no. 10, pp. 802–805, Oct. 2004.

Referenties

GERELATEERDE DOCUMENTEN

Dat is een enorme omwenteling die onvermijdelijk zal blijven doorwerken in de manier waarop onze voorzieningen werken, in onze maatschappelijke rol (die er alleen maar belangrijker

Ook Dirk is bereid gevonden om een filmpje op te nemen voor onze leden en heeft een toch wel leuke en verrassende boodschap. Kijk dus zeker naar

The requirement that a product representation must represent a product that is capable ofbeing manufactured necessitates the en forcement of manufacturing restrictions at

Daarnaast is er een Nederlandstalige samenvatting van boven- genoemde artikelen van acceptatie van technologie door zelfstandig wonende ouderen van bovengenoemde artikelen

Grazing effects on interannual variability The indices of alpha diversity showed in many cases significant increases in interannual variability under heavier grazing intensity in

Furthermore, extending these measurements to solar maximum conditions and reversal of the magnetic field polarity allows to study how drift effects evolve with solar activity and

In summary, this study suggests that the capacity for music to foster resilience in transformative spaces toward improved ecosystem stewardship lies in its proclivity to

Scale, Assen project. Q: Would MaaS be more successful on a regional scale? Instead of just a city scale for somewhere like Assen? So that you include the rural areas.. Table