Altera_Forum
Honored Contributor
16 years agoinput to IIR filter in Verilog
Just a quick question regarding implementing an IIR filter in Verilog...
At the moment, I am using the Wolfson ADC on the DE2-70 to convert analogue sound input from Line In to digital bits - that's all working perfectly (with a sample rate of 8000 kHz and 24-bit resolution). I understand that these 24-bit values from the ADC are in two's complement form - i.e. each sample is represented by a number between -2^23 and (2^23)-1. My question is, can this two's complement value be fed directly into a fixed-point IIR filter designed in Matlab's FDAtool? Looking at FDAtool, there are options to set the "Input Word Length" & "Input Fraction Length"... This leads me to believe that I have to convert my 24-bit two's complement value from the ADC to a fixed point value that will be 24 + no. of fraction bits long... Is this reasoning correct? It would be much appreciated if someone could point me in the right direction on this one! Cheers