Forum Discussion
Altera_Forum
Honored Contributor
16 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