Technical data

Debugging a VHDL design
108
-
ModelSim EE Lessons ModelSim EE Tutorial
17
Expand the variable named
test_patterns
by clicking the [+]. (You may need to resize
the window for a better view.)
18
Also expand the sixth record in the array, that is,
test_patterns(6)
, by clicking the [+].
The Variables window should be similar to the one below.
The assertion shows that the signal
sum
does not equal the
sum
field in
test_patterns(6)
. Note that the sum of the inputs
a
,
b
, and
cin
should be equal to
the output
sum
. But there is an error in the test vectors. To correct this error, you
need to restart the simulation and modify the initial value of the test vectors.
19
In the Main window, type:
restart -f
The
-f
option causes VSIM to restart without popping up the confirmation dialog.