02.10.2019 Views

UploadFile_6417

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

570 Chapter 10 ROUND-OFF EFFECTS IN DIGITAL FILTERS<br />

0.0313<br />

SAMPLE SIZE N = 100000<br />

PARAMETER a = 0.8999<br />

SNR(THEORY) = 58.26<br />

ROUNDED TO B = 12 BITS<br />

ERROR MEAN = –1.282e–007<br />

SNR(COMPUTED) = 58.134<br />

Distribution of Output Error<br />

0.0234<br />

0.0156<br />

0.0078<br />

0.0<br />

−0.5 −0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5<br />

Normalized Error<br />

FIGURE 10.21 Multiplication quantization effects in the 1st-order IIR filter in<br />

Example 10.11, B =12bits<br />

the two multipliers is shown in Figure 10.22b, where the responses q 1 (n)<br />

and q 2 (n) are due to noise sources e 1 (n) and e 2 (n), respectively. We can<br />

combine two noise sources into one. However, to avoid overflow we have<br />

to scale signals at the input of each adder, which can complicate this<br />

consolidation of sources.<br />

In modern DSP chips, the intermediate results of multiply-add operations<br />

are stored in a multiply-accumulate or MAC unit that has<br />

a double precision register to accumulate sums. The final sum [which<br />

for Figure 10.22b is at the output of the top adder] is quantized to<br />

obtain ŷ(n). This implementation not only reduces the total multiplication<br />

quantization noise but also makes the resulting analysis easier.<br />

Assuming this modern implementation, the resulting simplified model is<br />

shown in Figure 10.22c, where e(n) isthe single noise source that is uniformly<br />

distributed between [−2 −(B+1) , 2 −(B+1) ] and q(n) isthe response<br />

due to e(n). Note that e(n) ≠ e 1 (n)+e 2 (n) and that q(n) ≠ q 1 (n)+q 2 (n).<br />

The only overflow that we have to worry about is at the output of the<br />

top adder, which can be controlled by scaling the input sequence x(n)<br />

as shown in Figure 10.22d. Now the round-off noise analysis can be carried<br />

out in a fashion similar to that of the 1st-order filter. The details,<br />

however, are more involved due to the impulse response in (10.52).<br />

Signal-to-noise ratio Referring to Figure 10.22d, the noise impulse<br />

response h e (n) isequal to h(n). Hence the output round-off noise power<br />

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).<br />

Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!