Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

ModelSim design effective reload?

Altera_Forum
Honored Contributor II
6,020 Views

Hi everyone,... 

 

May I ask you a question,.. 

 

How to effectively reload design in ModelSim? 

 

I used Altera Quartus II v 9.1 and ModelSim 6.5b Altera Edition, I created a design in VHDL and I want to simulate it in ModelSim. So far I managed to create test bench for my design by exporting the Quartus Simulator *vwf file to *vht file, and then by clicking Tools -> Run Eda Simulation Tool -> EDA RTL Simulation, ModelSim load my design I it simulate my design... 

 

And my problem is when I changed the VHDL design in Quartus, how to effectively reload my design into ModelSim, so the ModelSim will simulate it like when I click "EDA RTL Simulation" menu. So far, I need to close and then reclick "EDA RTL Simulation" menu so the ModelSim resimulate my design... 

 

Does anyone know the answer? Any kind of help will be appreciated... 

 

Thanks...
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
4,361 Views

I don't run simulations in Modelsim from Quartus, I write my own TCL scripts. But AFAIK, when you click on EDA RTL Simulation, Quartus generates a tcl script (with a .tcl or .do extension) and run Modelsim on it. 

If you can find the name of that srcipt, in the Modelsim console you can just typedo scriptnameto recompile everything and run the simulation.
0 Kudos
Altera_Forum
Honored Contributor II
4,361 Views

restart -f 

 

On the modelsim command line.
0 Kudos
Altera_Forum
Honored Contributor II
4,361 Views

restart -f resets the simulator and allows you to start the simulation again, but doesn't recompile the VHDL files, at least not on my setup... If you modify the design I don't think it will be taken into account with a restart -f.

0 Kudos
Altera_Forum
Honored Contributor II
4,361 Views

Thanks guys... 

 

I found the script, and reexecute the script is a good solution. 

Thanks... 

 

Anyway in ModelSim waveform window there is sampler port, at least in my design, do you know what is that exactly? 

 

Thanks again...
0 Kudos
Altera_Forum
Honored Contributor II
4,361 Views

keep in mind you should be able to reuse the NativeLink .do script as long as you don't add any new HDL files to your project. in this case you'll need to re-run Run RTL Simulation, or directly edit the .do file. 

 

i find it useful to run Run RTL Simulation once to get a .do file, then edit it to my liking and configure NativeLink to use my edited script rather than regenerating each time. again the downside is that you'll need to add new HDL files to the .do yourself or have NativeLink make a new one for you.
0 Kudos
Altera_Forum
Honored Contributor II
4,361 Views

Okay... 

 

Thanks for your answer thepancake. I appreciate that... :)
0 Kudos
Reply