24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

UM-354 13 - Measuring code coverage<br />

Saving <strong>and</strong> reloading coverage data<br />

From the comm<strong>and</strong> line<br />

From the graphic interface<br />

With the vcover utility<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong><br />

Raw coverage data can be saved <strong>and</strong> then reloaded later. Saved data can also be merged<br />

with coverage statistics from the current simulation. You can perform these operations via<br />

the comm<strong>and</strong> line, the graphic interface, or the $coverage_save Verilog system task (see<br />

"<strong>ModelSim</strong> Verilog system tasks <strong>and</strong> functions" (UM-152)).<br />

The coverage save comm<strong>and</strong> (CR-135) saves current coverage statistics to a file that can be<br />

reloaded later, preserving instance-specific information.<br />

The coverage reload comm<strong>and</strong> (CR-131) seeds the coverage statistics of the current<br />

simulation with the output of a previous coverage save comm<strong>and</strong>. This allows you, for<br />

example, to gather statistics from multiple simulation runs into a single report.<br />

To save raw coverage data, select Tools > Code Coverage > Save.<br />

To reload previously saved coverage data, select Tools > Coverage > Load.<br />

See "Load Coverage Data dialog" (GR-89) for details on this dialog.<br />

The merge utility, vcover merge, allows you to merge sets of coverage data without first<br />

loading a design. It is a st<strong>and</strong>ard <strong>ModelSim</strong> utility that can be invoked from within the GUI<br />

or from the comm<strong>and</strong> line.<br />

See the vcover merge comm<strong>and</strong> (CR-320) in the <strong>ModelSim</strong> Comm<strong>and</strong> Reference for further<br />

details.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!