Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- You didn't show what you're doing, so how should we know what you did wrong? I don't expect, that you're I/Q values are floating point. --- Quote End --- That's right, I and Q are Integer values. In order to get the I and Q values I built a digital signal processing which multiplicates the input signal once with a sine-signal and once with a cosine-signal. The values for the sine and cosine are stored in lookup tables. Afterwards the two products that you get are low passed filtered with a CIC filter. In this way the system generates the I and Q values. To get the phase value the I and Q values have to be divided by each other and the arctan-function has to be applied to the quotient. before dividing the two values they are converted to floating point values. For the devision I use the division floating point megafunction. Until here everything works fine. The result of the divider is also correct. I tried to apply various values to the input of the atan megafunction but the result remains zero. For a better understanding I attached a block diagram of my IQ demodulator (the mathematical function is shown in blue) it almost seems like the atan megafunction just doesn't work. So i'm just curious if someone else faces the same problems? As this megafunction is still fairly new I could not find any design examples so far:(