Beruflich Dokumente
Kultur Dokumente
College of Engineering
Electrical Department
Filter Design
1
FINITE WORD-LENGTH EFFECTS
The registers are the basic storage devices in digital systems. The
maximum size of the binary information (or data) that can be stored in a
register is called register word length. Digital signal processing (DSP)
algorithms are realized either with special purpose digital hardware or as
programs for a general purpose digital computer. In both cases, the
numbers and coefficients are stored in unite-length registers.
Therefore, the coefficients and numbers which are usually of larger length
are quantized by truncation or rounding off when they are stored. Various
problems can arise in the digital implementation of the arithmetic
operations involving the binary data due to the finite word
length limitations of the registers storing the numbers and the results of
arithmetic operations. In general, the effects due to finite precision
representation of numbers in a digital system are commonly referred to as
finite word length effects.
In implementing a discrete-time system in hardware or software, it is
important to consider the finite word-length effects. For example, if a filter
is to be implemented on a fixed-point processor, the filter coefficients must
be quantized to a finite number of bits. This will change the frequency
response characteristics of the filter. In this section, we look at the finite
precision effects in digital filter implementations
2
the filter coefficients in a direct form realization are
Fig.1. The set of allowable pole locations in the first quadrant of the z-plane for a
second-order IIR filter implemented in direct form using a 4-bit processor
3
A general sensitivity analysis of a pth-order polynomial
then the sensitivity of the location of the i th pole to changes ∆a(k) in the
coefficients a(k) is approximately
Thus, if the poles are tightly clustered, |𝜶𝒊 - 𝛼𝑗 | is small, and small changes
in a(k) will result in large changes in the pole locations.
The movement of the poles may be minimized by maximizing the distance
between the poles, |𝛼𝒊 - 𝛼𝑗 |. This may be accomplished by implementing a
high-order filter as a combination of first- or second order systems. For
example, with a cascade of second-order sections. Each pair of complex
conjugate poles and zeros may be realized separately, thereby localizing
the coefficient quantization errors to each section.
For an FIR filter
4
Thus, the quantization errors may be modeled as H ( z ) in parallel with
∆H(z) as shown in Fig.2. If we assume that the coefficients h(n) are less
than 1 in magnitude, and that the coefficients are rounded to B + 1
bits,
As with IIR filters, if the zeros are tightly clustered, the zero locations
will be sensitive to coefficient quantization errors. However, FIR filters
are commonly implemented in direct form for two reasons:
1. The zeros of FIR filters are not generally tightly clustered.
2. In direct form, linear phase is easily preserved.
5
EXAMPLE: Consider the following implementation of a second-order
filter:
(a) This filter structure is called the coupled form realization. The
system function for this filter may be found as follows. The
difference equations relating x (n), v (n). and y(n) are
6
7
8
Filter Design
INTRODUCTION
The design process begins with the filter specifications, which may include
constraints on the magnitude and/or phase of the frequency response,
constraints on the unit sample response or step response of the filter,
specification of the type of filter (e.g., FIR or IIR), and the filter order.
Once the specifications have been defined, the next step is to find a set of
filter coefficients that produce an acceptable filter. After the filter has been
designed, the last step is to implement the system in hardware or software,
quantizing the filter coefficients if necessary.
FILTER SPECIFICATIONS
Before a filter can be designed, a set of filter specifications must be
defined. For example, suppose that we would like to design a low-pass
filter with a cutoff frequency 𝝎𝒄 .The frequency response of an ideal low-
pass filter with linear phase and a cutoff frequency 𝝎𝒄 is
10
The interval [𝜔𝑝 , 𝝎𝒔 ] is called the transition band.
Once the filter specifications have been defined, the next step is to design
a filter that meets these specifications.
FIR FILTER DESIGN
The frequency response of an N th-order causal FIR filter is
And the design of an FIR filter involves finding the coefficients h(n) that
result in a frequency response that satisfies a given set of filter
specifications. FIR filters have two important advantages over 1IR filters.
First, they are guaranteed to be stable, even after the filter coefficients have
been quantized. Second, they may be easily constrained to have
(generalized) linear phase. Because FIR filters are generally designed to
have linear phase, in the following we consider the design of linear phase
FIR filters.
11