Forum Discussion

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

megacore fft sumulation help

Hello to all.

i want simulate the fft megacore with modelsim.

I use the fft_tb.v generated from megacore.

the output alwas stay at fixed value (see picture).

i do not understand....

Now the simulation works in RTL mode only.

In gate level not working.

The outputs are always at HIz.

I attach the modelsim projects. just edit the runme.tcl with correct quartus path.

8 Replies

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

    Is it SIMU_GATE or SIMU_RTL you are simulating?

    SIMU_GATE produces output with Quartus 14.0 + Modelsim 10.1e
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    TNX James.

    I attach my simulation of SIMU_GATE with modelsim 64bit 10.2c.

    have you only launched the runme.tcl in the modelsim software, or have you used qartusII 14 for compilation?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I ran your script in modelsim. I shall attach a picture of the output in a mo. Ahh sorry it was the RTL I simulated, which worked fine. So it is the gate level that fails? Sorry misread your initial post.

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

    I get the same result as the last pic you posted (running script only). Only bottom bit of the output active all others tri-state :-(. Very odd!

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

    --- Quote Start ---

    I get the same result as the last pic you posted (running script only). Only bottom bit of the output active all others tri-state :-(. Very odd!

    --- Quote End ---

    Yes.. rtl simulation have outputs ok..

    gate simulation have output high impedance :(
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    OK now i resolved the problem.

    I assigned incorrectly the size bus in my top level module.

    Now gate simulation works fine.

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

    Hi

    I am new to megacore.

    I need to have FFT worked for my OFDM. I generated FFT code with the megacore.

    How can I stimulate the output with the Modelsim.

    I attached th tb_fft.vhd fft.vhd and fft.vho files to the project but it didnt work.

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

    In my first post i attach in a zip file (fft.zip)

    You can view those files, in particular file "runme.tcl".