Tests: Use context coverage write

This commit is contained in:
Wilson Snyder 2024-01-20 11:19:42 -05:00
parent d595d4c7ac
commit a38fea1f9e
1 changed files with 1 additions and 1 deletions

View File

@ -2031,7 +2031,7 @@ sub _make_main {
if ($self->{coverage}) { if ($self->{coverage}) {
$fh->print("#if VM_COVERAGE\n"); $fh->print("#if VM_COVERAGE\n");
$fh->print(" VerilatedCov::write(\"", $self->{coverage_filename}, "\");\n"); $fh->print(" contextp->coveragep()->write(\"", $self->{coverage_filename}, "\");\n");
$fh->print("#endif // VM_COVERAGE\n"); $fh->print("#endif // VM_COVERAGE\n");
} }
if ($self->{trace}) { if ($self->{trace}) {