Fix coverage documentation, bug954.

This commit is contained in:
Wilson Snyder 2015-08-12 19:18:58 -04:00
parent 5e41350588
commit 60b48a6830
3 changed files with 8 additions and 3 deletions

View File

@ -23,6 +23,8 @@ indicates the contributor was also the author of the fix; Thanks!
**** Fix makefile with --coverage, bug953. [Eivind Liland]
**** Fix coverage documentation, bug954. [Thomas J Whatson]
* Verilator 3.874 2015-06-06

View File

@ -3573,7 +3573,10 @@ First, run verilator with the --coverage option. If you're using your own
makefile, compile the model with the GCC flag -DVM_COVERAGE (if using
Verilator's, it will do this for you.)
Run your tests in different directories. Each test will create a
At the end of your test, call VerilatedCov::write passing the name of the
coverage data file (typically "logs/coverage.dat").
Run each of your tests in different directories. Each test will create a
logs/coverage.pl file.
After running all of your tests, verilator_coverage is executed.

View File

@ -140,8 +140,8 @@ int sc_main(int argc, char* argv[]) {
// Coverage analysis (since test passed)
mkdir("logs", 0777);
#if VM_COVERAGE
SpCoverage::write(); // Writes logs/coverage.pl
#endif
VerilatedCov::write("logs/coverage.dat");
#endif // VM_COVERAGE
//==========
// Close LogFiles