Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

FFT/IFFT Unity Gain Example

Here is an example that I did a while back when I was playing with the FFT/IFFT core. It was built with DSP Builder 6.1. Also it incorporates the unity gain formula highlighted in the Block floating point Application note.

One thing it highlights is the possibility of using the embedded MATLAB function to generate test vectors for your DSP Builder/ Simulink setup. Hope this helps.

12 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Strange, using the latest Quartus 8.1 I've got correct result by using the original FFT/IFFT unity gain example without introducing any delay.

    Since I'm interested in frequency doamin processing I've purposely added unit delay between FFT source real/imag and IFFT sink real/imag. The result is not very encouraging since don't have the correct result anymore. I've verified this with a RAM module in place of the unit delay and it gives the same error result. Is it something to do with the control flag between FFT and IFFT core? If that the case how can I delay them appropriately to handle the extra processing in the frequency domain?

    I'm attaching the screen shot of the incorrect result.

    Regards,

    Wimax
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If you want to add a delay between the two stages, then you have to make sure to delay all the control signals as well (not just the real and imag data).... judging from your diagram, I suspect that's what you are doing...

    I have updated the 8.0 design to 8.1 and also included unit delay between the two stages as well... Hope this helps...