Beruflich Dokumente
Kultur Dokumente
|H(w)| (dB)
-40
-100
Advantages of IIR filters
-60 IIR filters are useful for high-speed
-150 designs because they typically require a
-80
lower number of multiplies compared to
-100
0 0.1 0.2 0.3 0.4 0.5
-200
0 0.1 0.2 0.3 0.4 0.5
FIR filters. IIR filters can also be
Digital Frequency (Hz) Digital Frequency (Hz) designed to have a frequency response
Pole-Zero Plot Of Floating Point FIR Filter Pole-Zero Plot Of Floating Point IIR Filter that is a discrete version of the frequen-
1.5 1.5 cy response of an analog filter.
1 1 Unfortunately, IIR filters do not have
Imaginary Axis
Imaginary Axis
1
Poles and zeros
|H(w)| (dB)
1
tion will be given here.
|H(w)| (dB)
0
Suppose that a filter has the follow-
-50
Float ing transfer function
10 Bit
-100
-1
H( z ) =
( z − z )( z − z )( z − z )
1 2 3
0 0.1 0.2 0.3 0.4
Digital Frequency (Hz)
0.5 -1 0
Real Axis
1
( z − p )( z − p )( z − p )
1 2 3 (5)
0
Imaginary Axis
Imaginary Axis
1 levels. The location of the poles and
|H(w)| (dB)
-50
zeros of the filter are also quantized.
-100 0
Float This is because they depend on the
-150 10 Bit value of the filter coefficients.
-1
-200
0 0.1 0.2 0.3 0.4 0.5 1 0 1
The quantization of the pole and zero
Digital Frequency (Hz) Real Axis locations will typically move the poles
0 and zeros of the filter to locations that
Imaginary Axis
1
|H(w)| (dB)
-50
to be moved to a location that is at a dis-
-100 0
Float
tance of 1 from the origin (since
-150 20 Bit -1 Q{0.999} = 1 for certain bit precisions
-200 where Q{.} denotes quantization). Since
0 0.1 0.2 0.3 0.4 0.5 -1 0 1
Digital Frequency (Hz) Real Axis filters with poles on the unit circle are
unstable, quantization can cause stable
Fig. 3 Results for bit accurate IIR filters filter designs to become unstable when
actually implemented. Because of the
effects of filter coefficient quantization,
Magnitude Responses Of Bit Pole-Zero Plots Of Bit
Accurate Cascaded IIR Filters Accurate Cascaded IIR Filters
the number of bits to assign to the filter
0
coefficients (and for the data as well)
1 must be carefully chosen.
Imaginary Axis
-50
|H(w)| (dB)
-100 0
Fixed point arithmetic
Float Fixed point arithmetic is a typical for-
-150 10 Bit mat used to implement digital filters on
-1
-200 both DSP processors and in VLSI imple-
0 0.1 0.2 0.3 0.4 0.5 -1 0 1
Digital Frequency (Hz) Real Axis
mentations. (Another popular format is
0 floating point arithmetic in which num-
1 bers are represented using two parts:
Imaginary Axis
-50
mantissa and exponent.) A very popular
|H(w)| (dB)
-50
|H(w)| (dB)
30 IEEE POTENTIALS
Simulation results Table 1 Output of example IIR filter Table 2 Two’s complement fixed
for an input of δ(n) point format for 3 bit numbers
Two ninth-order lowpass filters were
Discrete time Filter input Filter output Decimal format Fixed point format
designed to demonstrate the effects of instance x(n) y(n) 0 000
using finite bit precisions to represent 1 001
digital filter coefficients. The first filter 0 1 1
2 010
is a FIR filter, and the second one is an 1 0 α 3 011
IIR filter. Both were designed by plac- 2 0 α2 -4 100
ing the poles and zeros to get a filter -3 101
3 0 α3
with a lowpass response. -2 110
Figure 1 shows the frequency n 0 αn -1 111
response and the pole-zero plots for
these filters. These filters are referred to
as the floating point filters: The coeffi- shifted upward even more. can be reduced using the IIR filter with
cients for these filters are represented in Note that the bit accurate FIR filter’s a cascaded structure.
floating point format with the full preci- response matches the floating point
sion of the computer. The frequency response when using 16 bits. Also, there Acknowledgments
responses shown in Fig. 1 represent the is only a slight degradation in the per- The author would like to thank Dr.
desired response. The other figures show formance when using 10 bits. However, Tom “Fear & Loathing” Endres and Dr.
how using a reduced precision adversely for the IIR filter, 20 bits matches the Samir Hulyalkar (Sarnoff Digital Com-
affects the filter’s response. These filters floating point response, but dropping munications) for first getting the author
are referred to as bit accurate. the precision to 15 bits causes the fre- interested in the wonderful world of
The coefficients for these filters are quency response to change. finite bit precisions. Thanks also to
represented using the two’s complement These plots demonstrate that IIR fil- Tom Krauss (Purdue University) for
fixed point format with a finite number ters are particularly susceptible to finite numerous discussions on finite bit pre-
of bits. Three different bit precisions are bit precision effects. This is due to the cisions, cascaded filters, and the finan-
used for each bit accurate filter to show feedback nature of the IIR structure. It cial implications of the Year 2000 bug.
the performance for different precisions. causes the filter quantization effects to
Figure 2 shows the results for the bit magnify. One way to reduce this sensi- Read more about it
accurate FIR filters. The three plots on tivity is to implement the IIR filter as a • Ifeachor, E., and Jervis, B., Digital
the left show the frequency response for cascaded series of lower-order filters Signal Processing: A Practical
the floating point filter in blue and for instead of one higher-order filter. Approach, Addison-Wesley, 1995.
the bit accurate filters in red. The bit For the plots shown in Fig. 3, the IIR • Litwin, L., Endres, T., Hulyalkar,
precisions for each bit accurate filter are filter was implemented as one ninth- S., and Zoltowski, M., “The Effects Of
shown on the plot’s legend. order filter. Figure 4 shows the results Finite Bit Precision For A Fixed Point
The three plots on the right show the from implementing the same filter (same VLSI Implementation Of The Constant
pole-zero plots for the various FIR fil- zero and pole locations) as a cascade of Modulus Algorithm,” International
ters. Again, the blue corresponds to the four second-order filters and one first- Conference on Acoustics, Speech, and
locations for the floating point filter and order filter. The bit accurate frequency Signal Processing, Phoenix, AZ, Vol. 4,
the red corresponds to the locations for responses match the response of the pp. 2013-2016, March 1999.
the bit accurate filters. floating point filter at precisions of 20 • Lyons, R., Understanding Digital
At 16 bits, the bit accurate response and 15 bits (contrast this to the plots in Signal Processing, Addison-Wesley, ’97.
matches that of the floating point filter. Fig. 3). Dropping the precision to 10 bits • Proakis, J., and Manolakis, D., Digital
When the precision drops to 10 bits, the shows a slight movement in the location Signal Processing: Principles, Algorithms,
location of the zeros changes. The fre- of some poles and zeros. But the effect and Applications, Prentice-Hall, ’96.
quency response is altered slightly. on the frequency response is negligible.
Using only 4 bits for the filter coeffi- From these results, we see that the About the author
cients has a drastic effect on the loca- cascaded implementation requires a Louis Litwin is a Member of the Tech-
tion of the zeros. (Some are moved into lower bit precision when compared with nical Staff in the Corporate Research
different quadrants and even outside of the precision needed for implementing department at Thomson Multimedia where
the unit circle.) The frequency response the IIR filter as a single ninth-order fil- he works on wireless digital home net-
flattens out considerably. ter. The differences in the results shown working technology. Mr. Litwin received
The results for the IIR filters are in Figs. 3 and 4 highlight the effect that his M.S. degree in Electrical Engineering
shown in Fig. 3. As the bottom plot implementing a filter with different from Purdue University in ’99 and his B.S.
shows, 20 bits gives a frequency structures can have on its performance. degree in Electrical Engineering with dis-
response that matches the floating point tinction from Drexel University in ’97. He
filter’s response. At 15 bits there is a Conclusions was named by Eta Kappa Nu as the Alton
change in the position of some of the The simulation results presented B. Zerby and Carl T. Koerner Outstanding
poles. The frequency response is shifted show how finite bit precisions can affect Electrical Engineering Student for ’97. His
upward. Using 10 bits leads to a slight the performance of a digital filter. IIR interests include digital signal processing
change in the position of a few zeros filters were shown to be even more sus- and digital VLSI design. He often annoys
and significant changes in the positions ceptible to finite bit precision effects the IRS by computing his income taxes
of the poles. The frequency response is than FIR filters. However, these effects using only 3 bits of precision.
OCTOBER/NOVEMBER 2000 31