Technical data
Basic Verilog simulation
114
-
Tutorial: Using ModelSim PE Getting Started with ModelSim PE
Instead of clicking the RUN
button you could also type the
run
command.
To try it now, type:
run 500
Now the simulation has run for a total of 600ns (the default 100ns plus the 500 you just asked
for). See the status bar at the bottom of the Model
Sim
window. It should show something like
this illustration.
If your status bar is different it is because the status bar changes depending upon the active
Model
Sim
window. Try selecting a different window and look at the status bar again.
Step 17.
The last command you typed (
run
500) caused the simulation to advance for 500ns. You can
also advance simulation to a specific time. Type:
run @ 3000
This advances the simulation to time 3000ns. Note that the simulation actually ran for
2400ns (3000 - 600). Also note that the Transcript window echoes the results specified in the
test_counter module; the time echoed is not intended to match the time shown on the Model
Sim
status bar.
Step 18.
If you wish, you can also use the
run
command to simply run, with no predetermined stop time.
Pull down
Run > Run Forever
from the menu.
Step 19.
You may stop the simulator while it is running by a simple click. Do so now by clicking the
BREAK
button on the toolbar.
This halts the simulation and updates the Source window, which now features a
>
(greater-than
sign) next to the line of source code about to be executed. See the illustration.