
EFFECTS OF QUANTIZATION NOISE IN DIGITAL FILTERS Bernard Gold and Charles M. Rader Lincoln Laboratory * Massachusetts Institute of Technology Lexington, Massachusetts GENERAL EXPRESSIONS FOR ably less precision. If the digitized or rounded QUANTIZATION NOISE quantity is allowed to occupy the nearest of a large number of levels whose smallest separation is E0, If a discrete time linear system, hereafter called a then, provided that the original quantity is large digital filter, is programmed on a digital computer compared to E0 and is reasonably well behaved, the or realized with digital elements, computational effect of the quantization or rounding may be errors due to finite word length are unavoidable. treated as additive random noise. Bennett3 has These errors may be subdivided into three classes, shown that such additive noise is nearly white, with namely, the error caused by discretization of the mean squared value of El/12. Furthermore the system parameters, the error caused by analog to noise is reasonably assumed to be independent from digital conversion of the input analog signal, and sample to sample, and roundoff noises occurring the error caused by roundoff of the results which are due to different multiplications should be inde­ needed in further computations. The first type of pendent. It is possible to show pathological ex­ error results in a fixed deviation in system param­ amples which disprove each of these assumptions, eters and is akin to a slightly wrong value of (say) but they are reasonable for the great majority of an inductance in an analog filter. We shall not treat cases. Ultimately our results must rest on experi­ this problem here; it has been treated in some detail mental verification, of course. 1 by Kaiser. The other two sources of error are more Since the noise of A-D conversion is assumed complicated but if reasonable simplifying assump­ independent of the noise created by roundoff, we tions are made they can be treated by the techniques can compute the output of any filter due to either 2 of linear system noise theory. It is our aim to set up excitation alone, or due to the signal alone, and a model of a digital filter which includes these two combine them to get the true filter output (of course latter sources of error and, through analysis of the the noise terms are known only statistically); there­ model, to relate the desired system performance to fore, we will begin by finding an expression for the the required length of computer registers. mean squared output of an arbitrary filter excited Both analog to digital conversion and roundoff by a single noise source. Let the filter function be may be considered as noise introducing processes, H(z); it is understood that H(z) is the transfer func­ very similar in nature. In each case a quantity tion between the output of the filter and the node known to great precision is expressed with consider- where noise is injected; H(z) may thus be different from the transfer function between the filter's * Operated with support from the U.S. Air Force. normal input and output. Let us thus consider the 213 214 PROCEEDINGS—SPRING JOINT COMPUTER CONFERENCE, 1966 Either the right- or left-hand side of (5) may be e(nT) f(nT) used to evaluate the steady state mean squared value oif(nT). EXAMPLE—FIRST ORDER SYSTEM Figure 1. Random noise applied to a filter. As an example, consider the first order system of Fig. 2. Let the analog-digital conversion noise situation of Fig. 1, where a given noise sequence ex(nT) have variance a\ and the roundoff noise 2 e(nT) is applied to H(z), resulting in an output e2(nT) have variance a - The system function H(z) noise sequence/(«7'). of Fig. 2 is given by 1/(1 - Kz~l) and h(mT) = We can conveniently examine this model using Km. The output y(nT) can be expressed as the sum the convolution sum. Thus, of a signal term y0(nT), caused by x(nT), and a noise term/(«r), whose mean squared value can be f(nT) = £ h(mT)e(nT - mT) 0) written, from (3), as m = 0 m where h(mT) is the inverse z transform of H(z). E[f(nT)] = (<r?+ a\) £ (K )' (6) The input noise e(nT) is presumed to be zero for m < 0 and the system is initially at rest. Squaring from which the steady state Value can be instantly Eq. (1) yields written as 2 (o\ + a\) a n = lim E(f(nT)) = (7) f\nT)= £ £ h(mT)h(lT) 1 - K2 m = 0 / =0 The implications of Eq. (7) are tricky. The mean x e(nT - mT)e(nT - IT) (2) squared value of the noise clearly increases as K ap­ Now, if e(nT) is a random variable with zero proaches unity. The maximum gain of the filter also mean and variance a2, and recalling our assumption increases (the gain of the system of Fig. 2 at dc is that e(nT) is independent from sample to sample, (1/(1 - K)). For this filter with low frequency the statistical mean of Eq. (2) reduces to input the signal power to noise power ratio (S2/N2) is proportional to (1 + K)/(l - K) which ap­ proaches infinity as the pole of the filter approaches E[f\nT)] = a2 £ h2(mT) (3) w = 0 the unit circle. This is a general result. However, with a finite word length, the input signal must be For a system for which the right side of (3) con­ kept small enough that it does not cause overflow verges, the steady state mean squared value of f(nT) can be obtained by letting n approach infinity. For this case, a formula which is usually more con­ e.(nT) venient can be obtained in terms of the system func­ tion H(z). Noting the definition. H(z) = £ h(mT)z (4) w = 0 of the z transform, we can form the product H(z) H(—]z_1 and, by performing a closed contour inte­ gration in the z plane within the region of conver- i \ gence of both H(z) and Hi—I, arrive at the identity X h2(mT) = ±-&Hiz)Hl^\z-ldz (5) Figure 2. Noise mode for first order system. EFFECTS OF QUANTIZATION NOISE IN DIGITAL FILTERS 215 in the computation. Thus, the obtainable signal- e,(nT) •r cos bT to-noise ratio decreases as K approaches unity. Clearly, each case deserves its own considerations, as the signal-to-noise ratio in the filter depends very much on the actual conditions of the use of the filter. Finally, we comment that the cases K = 0, K = 1, in Eq. (7) are unique because <J2 becomes zero • y(nT) since no multiplications are performed. EFFECT OF DIFFERENT REALIZATIONS -rfc -H x OF THE SAME FILTER There are a variety of ways of programming a second order digital filter (or in general a filter with more than two singularities). Suppose a particular Figure 3a. Noise model for second order system—direct system function H(z) is desired. If quantization is realization. ignored, then only the relative speed and memory requirements of the different methods are of interest ei1 (nT) in deciding which way to use. However, Kaiser's . e_(nT) work shows that the truncation of system constants affects different realizations differently, and may in (+)—•y(nT) fact lead to instability in some realizations. The noise effects described here also yield different re­ sults for different programming configurations. The - r cos bT point is illustrated through the examination of the two systems of Fig. 3. Fig. 3a represents a noisy programmed realization of the difference equation: y{nT) = 2r cos bTyinT - T) - r2y(nT - IT) + x(nT) - r cos bTx(nT - T) (8) and Fig. 3b represents the pair of simultaneous dif­ ference equations: w(nT) = x(nT) + 2r cos bTw(nT - T) Figure 3b. Noise model for second order system—canonical - r2w(nT - IT) )• (9) realization. y(nT) = w(nT) - r cos bTw(nT - T) plications. It is simpler to program the latter, but Both systems have the transfer function more noise is created. Note that, while in the realization of Fig. 3b the noise terms e (nT) and 1 - r cos bTz~l x H l ei(nT) are injected into the filter at the same place ^ 1 - 2r cos bTz~ + rz' as the input X(nT) and thus see the same transfer By examination of the poles and zeros of H(z) in function H(z), in Fig. 3a the noise term e2(nT) is Fig. 4, we see that our network behaves as a reson­ injected in a different part of the filter and sees a ator tuned to the radian center frequency b for the different transfer function: sampling interval T. BM - ~, ~, L l-1 . 2-2 22 (10) In Figs. 3a and 3b, X(nT) represents the noise­ 1 2rcos bTz~ + r z~ less input to the filter, e\(nT) represents the noise Thus we can expect that the noise due to e (nT) due to A-D conversion of the input, and e (nT) 2 2 will be different for the filters of Figs. 3a and 3b. represents the noise added by rounding. The Considering first the realization of Fig. 3a, we roundoff noise can be caused either by a single can, after some manipulation, obtain the result, roundoff after all products are summed, or by the sum of the roundoff error due to each of the multi- a\ = a]ui(r,bT) + o\u2{r,bT) (H) 216 PROCEEDINGS—SPRING JOINT COMPUTER CONFERENCE, 1966 the poles of the filter, so that at low frequencies, the complex conjugate poles interact to form a low pass filter.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages8 Page
-
File Size-