Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


Enabling Code Coverage

To enable code coverage, begin simulation with the -coverage option to the vsim command. With coverage enabled, ModelSim counts how many times each executable line is executed during simulation (number of "hits"). The information is then displayed in the coverage_source and coverage_summary windows. Or, you can save the information in several different text reports (see below for details).


Note: To view the maximum number of lines while doing code coverage, use the
-O0 (capital O zero) argument when you compile your design files. This argument minimizes compiler optimizations.


Model Technology Inc.
Model Technology Incorporated
Voice: (503) 641-1340
Fax: (503)526-5410
www.model.com
sales@model.com
Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase