Technical data
Debugging a VHDL design
Getting Started with ModelSim PE Tutorial: Using ModelSim PE
-
103
Step 28.
Select
Restart
from the
File
menu. Restart resets the values to those that were set when you
first entered the simulator. Click
OK
.
Step 29.
Now we can change the value of the sum record; type:
change test_patterns(6).sum 00000111
Note that this is a temporary edit, you must use your text editor to permanently change the
source code.
Step 30.
Select
RUN
on the tool bar. At this point, the simulation will run without any errors.
Step 31.
Your next action will be to add a, b, and sum to the List window and specify that their values
are to be displayed using the decimal radix. To do this, enter the following command:
list -decimal a b sum
Now you should have a List window with contents like the illustration.