Forum Discussion
Altera_Forum
Honored Contributor
16 years agoFFT gurus...please help
I've been posting questions regarding design hiccups I've been encountering in my project. Thanks to those who responded in the past. I'm doing a phase correlation calculation in the fpga betw...
Altera_Forum
Honored Contributor
16 years agoI had the same problems when doing an algorithm for logs. Not sure on the number of bits you are using. But what I did was use say 4 bits out of 16 as a fractional decimal. Instead of allowing the value to zero, let it go to the smallest fractional part (1/16). This keeps the answer close to zero, so the results are about right.
I also would recommend simulating the math in software. This way you can try different values for zero, and find an optimum number for your needs.