EQ Biquads limitation, direct Forms and representation

DSP related issues, mathematics, processing and techniques
Post Reply
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

EQ Biquads limitation, direct Forms and representation

Post by Rocko »

Hi,

Many EQ's and filters use 2p2z (two pole two zero) IIR filters, just like in Flowstone's stock modules.
With the FS implementation I do not see any limitation on the maximum/minimum values of the coefficients.
However, I know that some DSP manufacturers limit their coefficients to (example) +/- 2.0 . So a value of (-2.00001) is not possible. Claim is stability of the filter.

I wonder why is this limitation required in the DSP but not in FS. I tend to think that this limitation is required for "fixed point" presentation (say 20 or 24 bit) and not required for "very wide dynamic range" like in "32 bit floating point".

Also I know that "fixed point" representation uses "direct form 1" while "floating point" uses "direct form 2", as explained here https://www.earlevel.com/main/2003/02/28/biquads/.
But how is that related to coefficients limitation ?
deraudrl
Posts: 239
Joined: Thu Nov 28, 2019 9:12 pm
Location: SoCal

Re: EQ Biquads limitation, direct Forms and representation

Post by deraudrl »

Rocko wrote:Also I know that "fixed point" representation uses "direct form 1" while "floating point" uses "direct form 2", as explained here https://www.earlevel.com/main/2003/02/28/biquads/.
But how is that related to coefficients limitation ?
It may depend on the underlying hardware model. The only time I ever had to implement 2p2z in fixed-point, the most efficient way was direct form 2: the processor pipeline had two 16x16-bit multipliers feeding a three-input 32-point adder. (It was optimized for FFT butterflies.) And yes, it was twitchy if you wanted to minimize quantization noise, but at least there were also shifters at the adder inputs and output to help keep everything within limits.

Thankfully, I was not the poor bastard who had to determine the scaling values. :lol: I mentioned to the analyst doing that job that everything would be a lot easier in FP. His response was, "Using floating-point is like shoveling sand: every time you move it, you get a little less sand and a little more dirt." (Note that this was in the late 1970's.)
I keep a pair of oven mitts next to my computer so I don't get a concussion from slapping my forehead while I'm reading the responses to my questions.
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: EQ Biquads limitation, direct Forms and representation

Post by Rocko »

Appreciated.

Can someone explain why in 'fixed point' one needs to limit the coefficients of the denominator?
While (I believe) that in floating point this is not needed?
deraudrl
Posts: 239
Joined: Thu Nov 28, 2019 9:12 pm
Location: SoCal

Re: EQ Biquads limitation, direct Forms and representation

Post by deraudrl »

Rocko wrote:Can someone explain why in 'fixed point' one needs to limit the coefficients of the denominator?
While (I believe) that in floating point this is not needed?

These may help:

https://dspguru.com/dsp/howtos/implement-iir-filters/
http://www.eas.uccs.edu/~mwickert/ece56 ... fp_IIR.pdf

(Or not. 8-) )
I keep a pair of oven mitts next to my computer so I don't get a concussion from slapping my forehead while I'm reading the responses to my questions.
Post Reply