Fix verilator_coverage --annotate-min, bug1284.

This commit is contained in:
Tymoteusz Blazejczyk 2018-03-07 19:52:29 -05:00 committed by Wilson Snyder
parent e1410775fb
commit 9f52e23158
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
**** Fix pullup/pulldowns on bit selects, bug1274. [Rob Stoddard]
**** Fix verilator_coverage --annotate-min, bug1284. [Tymoteusz Blazejczyk]
* Verilator 3.920 2018-02-01

View File

@ -77,6 +77,10 @@ void VlcOptions::parseOptsList(int argc, char** argv) {
else if ( onoff (sw, "-rank", flag/*ref*/) ) { m_rank = flag; }
else if ( onoff (sw, "-unlink", flag/*ref*/) ) { m_unlink = flag; }
// Parameterized switches
else if ( !strcmp (sw, "-annotate-min") && (i+1)<argc ) {
shift;
m_annotateMin = atoi(argv[i]);
}
else if ( !strcmp (sw, "-annotate") && (i+1)<argc ) {
shift;
m_annotateOut = argv[i];