Skip to content

Commit

Permalink
Add coverpoint declaration to global scope
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Jan 10, 2025
1 parent bb87172 commit db1a839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/V3Coverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class CoverageVisitor final : public VNVisitor {

AstCoverDecl* const declp = new AstCoverDecl{fl, page, comment, linescov, offset};
declp->hier(hier);
m_modp->addStmtsp(declp);
v3Global.rootp()->dollarUnitPkgAddp()->addStmtsp(declp);
UINFO(9, "new " << declp << endl);

AstCoverInc* const incp = new AstCoverInc{fl, declp};
Expand Down

0 comments on commit db1a839

Please sign in to comment.