Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- FPGAs and Programmable Solutions
- FPGA Intellectual Property
- FIR II bit growth

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted
##

Altera_Forum

Valued Contributor III

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-26-2018
12:01 PM

964 Views

FIR II bit growth

Good afternoon,

Can I please ask if there is any formula connecting the FIR II filter's performance and bit widths (especially coefficient width). To be more precise I would like to short out (reduce) the output width that as far as I understand is determined by:input width+coefficient width+ log2(coefficient number). I would like that as short as possible,is there any way to relate the attenuation achieved with the coefficient bit width? Bear in mind that I simply import floating point coefficients, fixed point would increase the outoput size dramatically. Thanks in advance, G
4 Replies

Highlighted
##

--- Quote Start --- Good afternoon, Can I please ask if there is any formula connecting the FIR II filter's performance and bit widths (especially coefficient width). To be more precise I would like to short out (reduce) the output width that as far as I understand is determined by:input width+coefficient width+ log2(coefficient number). I would like that as short as possible,is there any way to relate the attenuation achieved with the coefficient bit width? Bear in mind that I simply import floating point coefficients, fixed point would increase the outoput size dramatically. Thanks in advance, G --- Quote End --- for coeffs: convert coeffs to fixed point e.g. coeffs = round(coeffs*2^15)/2^15; then plot freqz(coeffs); you should be able to see response and measure it. for coeffs and signal: use above scaled coeffs on fixec point input (x): y = filter(coeffs,1,x); f = fft(y); plot(20*log10(abs(f)));

Altera_Forum

Valued Contributor III

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-26-2018
12:43 PM

4 Views

Highlighted
##

Altera_Forum

Valued Contributor III

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-26-2018
01:55 PM

4 Views

Kaz,

Thank you very much for your reply, It is very helpful explaining how the conversion works but unfortunately is not what I am after. I would like to know if there is any formula (mathematical relation) between output performance and bit growth. Best Regards George
Highlighted
##

--- Quote Start --- Kaz, Thank you very much for your reply, It is very helpful explaining how the conversion works but unfortunately is not what I am after. I would like to know if there is any formula (mathematical relation) between output performance and bit growth. Best Regards George --- Quote End --- I never heard of any formula for that. But my previous post tests that directly. In practice we have to truncate signals to same width as input (usually). You choose your final ADC or DAC bitwidth and study accordingly. There are formulas for SNR of quantisation noise at ADC/DAC which basically states that SNR = 6*bitwidth in dBs for a clean tone.

Altera_Forum

Valued Contributor III

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-26-2018
03:12 PM

4 Views

Highlighted
##

Altera_Forum

Valued Contributor III

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-26-2018
03:52 PM

4 Views

Thanks a lot!

For more complete information about compiler optimizations, see our Optimization Notice.