How to restart Verilog simulation in Modelsim

I am trying to debug a Verilog module. I find it tedious to stop the simulation, change the code, and then start the simulation process again. Is there an easier way?

+3
source share
3 answers

It is called restart:-) Simulate โ†’ Run โ†’ Restart

+1
source

Here are my one-time liners for simple iterations:

To start a simulation and create a waveform:

vlog your_file.v; vsim work.your_TB; add wave -position insertpoint sim:/your_TB/*;

When updating the code and testing new iterations:

vcom your_file.v; restart -f; run -A;
+1
source

ModelSim 'restart' , / testbench , .

.

Usually the design has not changed, and you just want to run it against the updated testbench. In this case, you can restart the simulation by executing a custom script that you invoke with the "do {script -name}" command when necessary.

vlog -reportprogress 300 -work work testbench.v
restart -f
run 1us

Assumptions: testbench file = testbench.v; simulation time = 1us

0
source

All Articles