Technical data
Basic VHDL simulation
Getting Started with ModelSim PE Tutorial: Using ModelSim PE
-
91
Step 30.
On your own, try setting and deleting breakpoints at different points in the
counter.vhd
source
file, and using the STEP and OVER buttons until you feel comfortable with these commands.
Step 31.
When you are ready, you can record the simulation values by writing the contents of the
Model
Sim
List window to a file (CAUTION, this is optional, this could be a huge file). To do
this, enter the following command in the Transcript window:
write list counter.lst
Alternately you can activate the List window (by clicking anywhere in it) and then choose
File
> Save Listing
. The listing will resemble the illustration below.
ns delta count clk reset
0 +0 00000000 0 0
50 +0 00000000 1 0
55 +0 00000001 1 0
100 +0 00000001 0 0
150 +0 00000001 1 0
155 +0 00000010 1 0
.
.
.
62555 +0 01110010 1 0
62600 +0 01110010 0 0
62650 +0 01110010 1 0
62655 +0 00000000 1 0
62700 +0 00000000 0 0
62750 +0 00000000 1 0
Step 32.
Now quit the simulator. You can type
exit
,
or you can choose
File > Exit
ModelSim
with the
Transcript window active. Model
Sim
then returns a dialog box.