Forum Discussion

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

about fft ip core

I'v read the document about the fft ip core(ug_fft.pdf), the document says "For single engine output FFT/IFFTs, there is an additional factor of Q and the shift must be

2-exponent – Q, where Q = 1 for an even power of 2 and Q = 2 for an odd

power of 2."

I don't know how to choose the value of Q for the single engine output FFT

or what's the meaning of "where Q = 1 for an even power of 2 and Q = 2 for an odd

power of 2"

For example ,

1)if I use 1024 point single engine FFT and the output of exponent scaling values is -11.

Should I choose Q=1? and the shift will be 2^10?

2)if I use 512 point single engine FFT and the output of exponent scaling values is -11.

Should I choose Q=2? and the shift will be 2^9?

8 Replies

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

    Sounds like it should be this way...

    512 points = 2^9 exponent points, therefore:

    => exponents = 9

    => Q = 2

    Therefore, shift amount = 2^(-exponent-Q) = 2^-11

    1024 points = 2^10 points, thherefore:

    => exponents = 10

    => Q = 1

    Therefore shift amount is also 2^-11
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Also another good place to check out the scaling scheme is AN Application Note# 404. In fact I was able to use that Application note to create a unity gain example. (The design, built in 6.1, should be up somewhere on the forum.)

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

    Can somebody provide a simple example of how to use Altera's FFT IP core?

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

    Do u have DSP Builder (version 6.1)? If u do... then u simply need to bring up the model and reinstantiate all the megacores. If you don't have DSP Builder v6.1, then I suppose you can just look at the sample test bench. That should give you some hints regarding the FFT core...

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

    Is the DSP builder part of Quartus II or Nios II IDE? I have the Quartus II and Nios II IDE.