Technical data
Running a batch-mode simulation
4-42 ModelSim EE/SE Tutorial
7 To run the batch-mode simulation, enter the following command:
vsim -wav saved.wav counter < yourfile
This is what you just did in Step 7:
• invoked the VSIM simulator on a design unit called "counter"
• the -wav switch instructed the simulator to save the simulation results in a log
file named saved.wav
• used the contents of yourfile to specify that values are to be listed in decimal, to
execute a stimulus file called stim.do, and to write the results to a file named
counter.lst, the default for a design named counter
8 Since you saved the simulation results in saved.wav, you can view the simulation
results by starting up VSIM with its -view switch:
vsim -view saved.wav
9 Open these windows with the VIEW menu in the Main window, or the equivalent
command at the ModelSim prompt:
view structure signals list wave
Note: If you open the Process or Variables windows they will be empty. You are looking at a saved
simulation, not examining one interactively; the logfile saved in saved.wav was used to reconstruct the current
windows.
10 Now that you have the windows open, put the signals in them:
add wave *
add list *
11 Use the available VSIM windows to experiment with the saved simulation results and
quit when you are ready:
quit -f
For additional information on the batch and command line modes, please refer to
the ModelSim Reference Manual.