Forum Discussion
Altera_Forum
Honored Contributor
17 years agoAltera FFT - output scaling. How to do this correctly?
Hi, I do not get correct scaled results if I do everything the FFT user guide recommends. I have instantiated a 1024 points FFT, with single output and burst architecture. The data width...
Altera_Forum
Honored Contributor
17 years agoJust a minor correction on my Matlab scaling:
I divided the 1024 Matlab fft by 512 to get correct output amplitude. In fact it should have been divided by 1024(fft resolution). This was due to the fact that your output was symmetrical two bands. Hence each side should be at 1/2 amplitude. This is an excerpt from one of my recent posts: Matlab scaling Vs altera scaling In the case of Matlab scaling, if you want to get unity gain from its fft then you should divide by the fft resolution. This leads to unity gain of amplitude across positive and negative frequencies. However if the frequency is two sided then Matlab scaling implies that the sum of two sides = input amplitude. In this case the comparison with hardware may not be useful if you want to use full resolution of both the real and imag bitwidth. It follows that we must be clear about our target scaling. We may target unity amplitude gain or target full use of bit resolution of each of real and imaginary widths