02.10.2019 Views

UploadFile_6417

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Round-off Effects in IIR Digital Filters 569<br />

0.0313<br />

SAMPLE SIZE N = 100000<br />

PARAMETER a = 0.90625<br />

SNR(THEORY) = 22.14<br />

ROUNDED T0 B = 6 BITS<br />

ERROR MEAN = –3.2612e–005<br />

SNR(COMPUTED) = 22.2105<br />

Distribution of Output Error<br />

0.0234<br />

0.0156<br />

0.0078<br />

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.20 Multiplication quantization effects in the first-order IIR filter in<br />

Example 10.11, B =6bits<br />

The part of the script not shown above also computes and plots the normalized<br />

histogram of the output error and prints the statistical values in the plot,<br />

as shown in Figure 10.20. The error appears to have a Gaussian distribution,<br />

which is to be expected. The exact value of the output SNR is 22.14 dB, which<br />

agrees with the computed value of 22.21 dB. Similar results done for B =12<br />

bits are shown in Figure 10.21. Again, the simulation results agree with the<br />

model results.<br />

□<br />

2nd-order filter Similar analysis can be done for 2nd-order filters with<br />

poles near the unit circle. Let the two poles be at complex locations re jθ<br />

and re −jθ . Then the system function of the filter is given by<br />

1<br />

H(z) =<br />

(1 − re jθ z −1 )(1 − re −jθ z −1 ) = 1<br />

1 − 2r cos(θ) z −1 + r 2 z −2<br />

with impulse response<br />

(10.51)<br />

h(n) = rn sin{(n +1)θ}<br />

u(n) (10.52)<br />

sin(θ)<br />

The difference equation from (10.51) is given by<br />

y(n) =x(n)−a 1 y(n−1)−a 2 y(n−2); a 1 = −2r cos(θ), a 2 = r 2 (10.53)<br />

which requires two multiplications and two additions, as shown in<br />

Figure 10.22a. Thus, there are two noise sources and two possible locations<br />

for overflow. The round-off noise model for quantization following<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!