Altera_Forum
Honored Contributor
15 years agofft code in c
hello everyone, I am working on speech recognition projet using nios 2. I need simple fft code in c to run on the nios. did anyone know where can i found one?
I have a question regarding the software fft funtion.
Can someone explain what exactly are they doing here:
InputData = InData >> FFT_SIZE;
It looks like they are shifting the input to the right by 8 bits, but won't that simply discard the lower 2 digits of the number? Or are they trying to divide each input number by 256? Another thing, if I have only the real values as input data, then do I have to add a 0 after each number to account for the missing imaginary data?