Altera_Forum
Honored Contributor
14 years agoFloating Point atan Megafunction
Hi everyone,
I'm building a range finding system and i'm trying to build an I/Q demodulator in order to get the phase of an input signal. I'm using an Cyclone III FPGA on a developement Kit. In order to get the phase, the I- and Q-components have to be divided and I want to use the floating point atan Megafunction (altfp_atan) to calculate the arctan of the Q/I quotient. Which is way more convenient than using a large LUT with interpolation or CORDIC... Unfortunately the output of the atan megafunction is always ZERO no matter what input signal I apply to the atan megafunction block. I've tried already a lot of things, but nothing worked. Still zero at the output at all times. :confused: Does anybody know what i'm doing wrong or has the same problem? Really appreciate your help!