<< Chapter < Page Chapter >> Page >
Digital filters must be properly scaled to prevent overflow in fixed-point implementations. Scaling by the sum of the absolute value of the impulse response of a filter prevents overflow. However, this is sometimes too conservative in practice, so less stringent rules are often used.

Overflow is clearly a serious problem, since the errors it introduces are very large. As we shall see, it is also responsiblefor large-scale limit cycles, which cannot be tolerated. One way to prevent overflow, or to render it acceptably unlikely, is to scale the input to a filter such that overflow cannot (or is sufficiently unlikely to) occur.

In a fixed-point system, the range of the input signal is limited by the fractional fixed-point number representation to x n 1 . If we scale the input by multiplying it by a value , 0 1 , then x n .

Another option is to incorporate the scaling directly into the filter coefficients.

Fir filter scaling

What value of is required so that the output of an FIR filter cannot overflow( n y n 1 , n x n 1 )? y n k 0 M 1 h k x n k k 0 M 1 h k x n k k M 1 0 h k 1 k M 1 0 h k Alternatively, we can incorporate the scaling directly into the filter, and require that k M 1 0 h k 1 to prevent overflow.

Iir filter scaling

To prevent the output from overflowing in an IIR filter, the condition above still holds:( M ) y n k 0 h k so an initial scaling factor 1 k 0 h k can be used, or the filter itself can be scaled.

However, it is also necessary to prevent the states from overflowing, and to prevent overflow at any point in the signal flow graph where the arithmetic hardware wouldthereby produce errors. To prevent the states from overflowing, we determine the transfer function from the input to all states i , and scale the filter such that i k 0 h i k 1

Although this method of scaling guarantees no overflows, it is often too conservative. Note that a worst-case signal is x n sign h n ; this input may be extremely unlikely. In the relatively common situation in which the input is expected tobe mainly a single-frequency sinusoid of unknown frequency and amplitude less than 1, a scaling condition of w H w 1 is sufficient to guarantee no overflow. This scaling condition is often used. If there are several potential overflowlocations i in the digital filter structure, the scaling conditions are i w H i w 1 where H i w is the frequency response from the input to location i in the filter.

Even this condition may be excessively conservative, for example if the input is more-or-less random, or if occasionaloverflow can be tolerated. In practice, experimentation and simulation are often the bestways to optimize the scaling factors in a given application.

For filters implemented in the cascade form, rather than scaling for the entire filter at the beginning, (whichintroduces lots of quantization of the input) the filter is usually scaled so that each stage is just preventedfrom overflowing. This is best in terms of reducing the quantization noise. The scaling factors are incorporatedeither into the previous or the next stage, whichever is most convenient.

Some heurisitc rules for grouping poles and zeros in a cascade implementation are:

  • Order the poles in terms of decreasing radius. Take the pole pair closest to the unit circle and group it withthe zero pair closest to that pole pair (to minimize the gain in that section). Keep doing this with all remainingpoles and zeros.
  • Order the section with those with highest gain ( H i w ) in the middle, and those with lower gain on the ends.

Leland B. Jackson has an excellent intuitive discussion of finite-precision problems in digitalfilters. The book by Roberts and Mullis is one of the most thorough in terms of detail.

Questions & Answers

how to create a software using Android phone
Wiseman Reply
how
basra
what is the difference between C and C++.
Yan Reply
what is software
Sami Reply
software is a instructions like programs
Shambhu
what is the difference between C and C++.
Yan
yes, how?
Hayder
what is software engineering
Ahmad
software engineering is a the branch of computer science deals with the design,development, testing and maintenance of software applications.
Hayder
who is best bw software engineering and cyber security
Ahmad
Both software engineering and cybersecurity offer exciting career prospects, but your choice ultimately depends on your interests and skills. If you enjoy problem-solving, programming, and designing software syste
Hayder
what's software processes
Ntege Reply
I haven't started reading yet. by device (hardware) or for improving design Lol? Here. Requirement, Design, Implementation, Verification, Maintenance.
Vernon
I can give you a more valid answer by 5:00 By the way gm.
Vernon
it is all about designing,developing, testing, implementing and maintaining of software systems.
Ehenew
hello assalamualaikum
Sami
My name M Sami I m 2nd year student
Sami
what is the specific IDE for flutter programs?
Mwami Reply
jegudgdtgd my Name my Name is M and I have been talking about iey my papa john's university of washington post I tagged I will be in
Mwaqas Reply
yes
usman
how disign photo
atul Reply
hlo
Navya
hi
Michael
yes
Subhan
Show the necessary steps with description in resource monitoring process (CPU,memory,disk and network)
samuel Reply
What is software engineering
Tafadzwa Reply
Software engineering is a branch of computer science directed to writing programs to develop Softwares that can drive or enable the functionality of some hardwares like phone , automobile and others
kelvin
if any requirement engineer is gathering requirements from client and after getting he/she Analyze them this process is called
Alqa Reply
The following text is encoded in base 64. Ik5ldmVyIHRydXN0IGEgY29tcHV0ZXIgeW91IGNhbid0IHRocm93IG91dCBhIHdpbmRvdyIgLSBTdGV2ZSBXb3puaWFr Decode it, and paste the decoded text here
Julian Reply
what to do you mean
Vincent
hello
ALI
how are you ?
ALI
What is the command to list the contents of a directory in Unix and Unix-like operating systems
George Reply
how can i make my own software free of cost
Faizan Reply
like how
usman
hi
Hayder
The name of the author of our software engineering book is Ian Sommerville.
Doha Reply
what is software
Sampson Reply
the set of intruction given to the computer to perform a task
Noor
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Digital filter structures and quantization error analysis. OpenStax CNX. Jan 02, 2005 Download for free at http://cnx.org/content/col10259/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Digital filter structures and quantization error analysis' conversation and receive update notifications?

Ask