Forum Discussion

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

Can I Simulate Each Module in the Project

I'm using Quartus II 7.2 Web and ModelSim-Altera Edition.

when i simulate the project, I use Quartus Simulator. But it is inconvinient.

I want to simulate each module without changing top-entity module.

Does anyone know how ? plz helpme.

i don't care whether using quartus simulator or modelsim.

3 Replies

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

    Hello,

    with Modelsim functional simulation, a Testbench can instantiate any module you want as DUT and optionally additional modules to model external hardware, e. g. RAM connected to your system or external data sources.

    Regards,

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

    Thanks FvM. I'll try that.

    I have another question, you said i can simulate any modules in the modelsim functional simulation. So, can i do that in timing simulation?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    timing simulation can only be performed on gate level netlists and are valid for an individual placed and routed design. In a gate level netlist, the module hierarchy visible at the source level doesn't exist any more.

    You have to set a module as top-level entity and recompile the project to perform a ModelSim timing simulation on this module, the same as with Altera simulator. This could be meaningful if the modules internal timing has a significant impact on the designs total timing, or if you want to get typical performance data. But you should be aware, that final designs place and route could change a lot.

    Regards,

    Frank