Download ModelSim SE User`s Manual

Transcript
Verification Management
Saving Coverage Data
Tip: Naming the Test UCDB Files —
By default, the test name given to a test is the same as the UCDB file base name, however
you can explicitly name a test before saving the UCDB using a command such as:
coverage attribute -test mytestname
Naming the Test UCDB Files
By default, the test name given to a test is the same as the UCDB file base name, however you
can name the test before saving the UCDB using a command such as:
coverage attribute -test mytestname
Tip — If you are saving test data for later test-associated merging and ranking, it is
important that the test name for each test be unique. Otherwise, you will not be able to
distinguish between tests when they are reported in per-test analysis.
Saving Data On Demand
Options for saving coverage data - dynamically (during simulation) or in coverage view mode are:
•
GUI: Tools > Coverage Save
This brings up the Coverage Save dialog box, where you can specify coverage types to
save, select the hierarchy, and output UCDB filename.
•
coverage save CLI command
During simulation, the following command saves data from the current simulation into a
UCDB file called myfile1.ucdb:
coverage save myfile1.ucdb
While viewing results in coverage view mode, you can make changes to the data (using
the coverage attribute command, for example). You can then save the changed data to a
new file using the following command:
coverage save myfile2.ucdb
•
$coverage_save system task (not recommended)
This non-standard SystemVerilog system task saves code coverage data only. It is not
recommended for that reason. For more information, see “System Tasks and Functions
Specific to the Tool.”
580
ModelSim SE User’s Manual, v6.3h
July 2008