Forum Discussion

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

Simulation/Testbench files in Quartus-II

Hi All,

In Quartus-II, how the tool distinguish between the RTL (design) and Simulation files?

How should I add the Simulation/Testbench files to Quartus-II project? How should I mark them so that they will not take a part in the implementation flow?

Thank you!

5 Replies

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

    you enter a top level entity for Quartus, this can be done in the project settings. I beleve you can also rightclick a file in the fileslist and select "set as top level entity". as your top level won't include testbenches this is being taken care of automatically.

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

    For RTL simulation files (.v or .vhd), Quartus cannot distinguish between synthesis and simulation files other than when you try to synthesize a simulation file that has commands that can't be synthesized.

    All you need to do in Quartus is add the synthesis files in the project settings, setting one of them as the top-level entity. Any files not in the settings, even if it is in your project directory, will not be used for synthesis.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Quartus is not a simulation tool. You should only include RTL design files.

    Simulation files should only be included in a simulation tool (like modelsim)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Quartus is not a simulation tool. You should only include RTL design files.

    Simulation files should only be included in a simulation tool (like modelsim)

    --- Quote End ---

    I also use Quartus as my editor and for quick access to testbences I also include these in my project. I never had problems with that. I even have some tcl scripts in there. I am not saying itis good practice, only that it doesn't cause problems for me if I do.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I also use Quartus as my editor and for quick access to testbences I also include these in my project. I never had problems with that. I even have some tcl scripts in there. I am not saying itis good practice, only that it doesn't cause problems for me if I do.

    --- Quote End ---

    Thats fine - the OP was asking about adding files to the project.

    I have also edited random stuff in quartus - but if you add them to the project it will try and compile them and fail.