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.

250 Chapter 6 IMPLEMENTATION OF DISCRETE-TIME FILTERS<br />

Finally, we note that the SP toolbox also provides functions similar to<br />

the ones discussed in this section—the complementary functions, tf2latc<br />

and latc2tf, compute all-pole lattice, all-zero lattice, and lattice-ladder<br />

structure coefficients, and vice versa. Similarly, the function latcfilt<br />

(the same name as the book function) implements the all-zero lattice<br />

structure. The SP toolbox does not provide a function to implement the<br />

lattice-ladder structure.<br />

6.5 OVERVIEW OF FINITE-PRECISION NUMERICAL EFFECTS<br />

Until now we have considered digital filter designs and implementations<br />

in which both the filter coefficients and the filter operations such as additions<br />

and multiplications were expressed using infinite-precision numbers.<br />

When discrete-time systems are implemented in hardware or in software,<br />

all parameters and arithmetic operations are implemented using finiteprecision<br />

numbers and hence their effect is unavoidable.<br />

Consider a typical digital filter implemented as a direct-form II structure,<br />

which is shown in Figure 6.24a. When finite-precision representation<br />

is used in its implementation, there are three possible considerations that<br />

affect the overall quality of its output. We have to<br />

1. quantize filter coefficients, {a k ,b k },toobtain their finite word-length<br />

representations, {â k , ˆb k },<br />

2. quantize the input sequence, x(n) toobtain ˆx(n), and<br />

3. consider all internal arithmetic that must be converted to their next<br />

best representations.<br />

Thus, the output, y(n), is also a quantized value ŷ(n). This gives us a new<br />

filter realization, Ĥ(z), which is shown in Figure 6.24b. We hope that this<br />

x(n)<br />

H(z)<br />

y(n)<br />

x(n) ˆ<br />

H(z) ˆ<br />

y(n) ˆ<br />

x(n)<br />

b 0 y(n) x(n) ˆ<br />

bˆ 0 y(n) ˆ<br />

z −1<br />

z −1<br />

a 1 b 1<br />

aˆ<br />

bˆ<br />

1<br />

1<br />

z −1<br />

z −1<br />

a 2 b 2<br />

aˆ<br />

2 bˆ<br />

2<br />

z −1<br />

z −1<br />

a 3 b 3<br />

ˆ<br />

ˆ<br />

a 3<br />

b 3<br />

(a)<br />

(b)<br />

FIGURE 6.24 Direct-form II digital filter implementation: (a) Infinite precision,<br />

(b) Finite precision<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!