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.

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

Solution<br />

The following MATLAB script illustrates calculations for r =0.9, which implements<br />

exact as well as approximate approaches.<br />

% Filter Parameters<br />

N = 8; r = 0.9; b = 1; pl = r*exp(j*2*pi*[0:N-1]/N); a = real(poly(pl));<br />

% Variance-gain (Exact)<br />

Vg = VarGain(b,a)<br />

Vg =<br />

1.02896272593178<br />

% Variance-Gain (approximate)<br />

x = [1,zeros(1,10000)]; % Unit sample sequence<br />

h = filter(b,a,x); % Impulse response<br />

VgCheck = sum(h.*h)<br />

VgCheck =<br />

1.02896272593178<br />

Clearly, both approaches give the same variance-gain, which for r =0.9 isabout<br />

3% above unity. For r =0.99 the calculations are:<br />

% Filter Parameters<br />

N = 8; r = 0.99; b = 1; pl = r*exp(j*2*pi*[0:N-1]/N); a = real(poly(pl));<br />

% Variance-gain (Exact)<br />

Vg = VarGain(b,a)<br />

Vg =<br />

6.73209233071894<br />

The variance-gain is more than 673%, which means that when poles are close<br />

to the unit circle, the filter output can be very noisy.<br />

□<br />

10.2 ROUND-OFF EFFECTS IN IIR DIGITAL FILTERS<br />

With our insight into the quantizer operation and its simpler statistical<br />

model, we are now ready to delve into the analysis of finite word-length<br />

effects in both IIR and FIR digital filters. We have already studied the<br />

effects of input signal quantization and filter coefficient quantization on<br />

filter behavior. We will now turn our attention to the effects of arithmetic<br />

operation quantization on filter output responses (in terms of signal-tonoise<br />

ratios). For this study we will consider both fixed-point and floatingpoint<br />

arithmetic. We first consider the effects on IIR filters since, due to<br />

feedback paths, the results are more complicated—yet more interesting—<br />

than those in FIR filters. The effects on FIR filters are studied in the next<br />

section.<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!