Forum Discussion

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

Unable to simulate more than one module per project

I am unable to simulate more than one module in one project. I created a Quartus project and added a Megawizard core, wrote a testbench for the core and simulated it. I am adding another core and wrote a testbench for it. However when I try to run the Modelsim simulation through Nativelink I get the error in Modelsim:

Module 'divunitfunc' is not defined.

divunitfunc is the name I gave to the core when created through Megawizard.

I defined all the settings for this simulation in the Nativelink simulation settings dialog box appropriately.

Also, in the Nativelinks settings for testbenches, for the testbench not running properly, I have defined the toplevel module as the name of the module I used in the testbench file.

Can anyone help?

2 Replies

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

    whichever core you are trying to simulated in NativeLink has to be set as the top level entity of your Quartus project, then you have to run (at least) Analysis and Elaboration for an RTL simulation

    to switch quickly between top level entities, you can use Quartus II Revisions, which will create separate qsf files for each revision where you could set different top entities in each