Technical data

Simulating with Code Coverage
ModelSim EE/SE Tutorial 10-95
Note that both testring.vhd and control.vhd are below 90% and, therefore, shown
in red in the Coverage bar graph. 90% is the default coverage threshold. All
coverage values below 90% will be shown red. The default coverage threshold can
be changed with the Tcl control variable $PrefCoverage(cutoff).
8 Double-click on the control.vhd pathname to display the source code for control.vhd
in the Source window. With Code Coverage enabled, the Source window is displayed
with an extra column that details the number of times each line has been executed.
Scroll the Source window to view the executable lines. As you can see some lines
have red zeros next to them. This indicates a line that was not executed.
9 Save the line coverage information to a text file.
coverage report -file cover.dat -lines
Open the file cover.dat to see how the data is stored. Such report files can be used
to help document simulation runs. Notepad works well to check text files such as
this.
notepad cover.dat