Forum Discussion

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

simulation of FFT megacore in modelsim

Hi all,

I am trying to simulate the FFT megacore using modelsim. I compile the project and open modelsim separately. I add my design files to a created work directory, including the .vo file. It is not working and i'm a bit stuck on where to go from here, even after reading the tutorials and documentation. Can anyone give a step by step guide on how to simulate the FFT core after compilation in quartus?

Thank you,

Gabriella.

8 Replies

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

    --- Quote Start ---

    Hi all,

    I am trying to simulate the FFT megacore using modelsim. I compile the project and open modelsim separately. I add my design files to a created work directory, including the .vo file. It is not working and i'm a bit stuck on where to go from here, even after reading the tutorials and documentation. Can anyone give a step by step guide on how to simulate the FFT core after compilation in quartus?

    Thank you,

    Gabriella.

    --- Quote End ---

    Hi,

    you would like to run simulation after P&R ? Did you get a functional mishaviour or do have a problem with the flow ( e.g. Modelsim compile error ) ?

    Kind regards

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

    I wish to first do a standalone simulation of the FFT megacore within modelsim. I first compile fft.v, fft.vo, fft_syn and the automatically generated testbench into the work folder. The simulations runs but it seems that the input_real.txt and input_imag.txt files aren't bein read into the simulation because sink_real and sink_imag remain empty. Do I need to include any additional libraries to get it to work?

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

    I suggest to try with the post syntesis simulation.

    The HDL models of the megafunctions are often not behavioural and need full P&R in orer to be simulated.

    Hope this helps.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I'm still struglling to determine what is wrong. After instantiating the FFT megacore (with clock enable), I perform A&E. In modelsim, I compile the relevant files successfully, but still the core does not respond. I thought the only requirement for functional simulation was the generation of the .vo and synthesis files when the core is generated.

    I don't know how to do full P&R without violating the license.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Apologies, I've finally got it working. It was a nativelink problem. Thank you all for helping.

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

    just to clarify, all you need is the 3rd party EDA simulation model .vo/.vho which you have to enable in the MegaWizard

    glad its working now
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    i have a problem in simulating fft megacore in quartus

    i performed following steps

    1. added all file generated by megacore wizard (ip toolbench) of FFT in quartus and compiled it successfully.(including .vho $_tb.vhd)

    2. created a vector wave form file and added all signal using node finder.

    3. Exported .vwf to .vht

    4. Assignment>>EDA tool setting>>Simulation

    5. in nativelink setting

    >> Compile test bench (clicked test bench)

    >> new

    >>in top level module in test bench (<name>_vhd_vec_tst)

    >> added .vwf(from step 2) file in testbench file

    6. TOOLs>>EDA simulation tool

    i am not getting any signal only straight lines in all input and output

    i think i have problem in native link setting

    plz guide me where i am wrong .
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    >> added .vwf(from step 2) file in testbench file

    shouldn't you add the .vht you created from the .vwf?