Forum Discussion
Altera_Forum
Honored Contributor
11 years agoIf you look around, you will find some tutorials (like this one, which is older but still relevant: http://www.altera.com/literature/ug/ug_gs_msa_qii.pdf)
But getting started is quite easy by letting Quartus do much of the work for you: 1) get your project completed to the point that Quartus is able to compile it. 2) if you haven't already, create a testbench HDL file. At a minimum, just have it generate a clock and reset for your system. 3) in Quartus, go to Assignments->Settings.... -> EDA Tool Settings -> Simulation and review the other settings, but go down to the NativeLink section and click on "Compile test bench" and then define your test bench (give it a name, tell it where your testbench HDL file is). This is shown on page 5 of the PDF mentioned above. 4) execute a Quartus compile. During this process, Quartus will write a Modelsim .do TCL script to command Modelsim how to compile your source and simulate it with your testbench. 5) after the compilation completes, click on Tools->Run Simulation Tool-> RTL Simulation.. Quartus will launch Modelsim and have it run the .do script that it just wrote for you. It will compile your HDL files, load your testbench top level into the simulator, add the testbench signals to the wave window, and start it executing. There's much more you can do beyond this, but hopefully this can get you started.