Skip to content

Commit

Permalink
Add always only if inside module
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
  • Loading branch information
RRozak committed Jan 30, 2025
1 parent a8dcfca commit 9867c7e
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 @@ -423,7 +423,7 @@ class CoverageVisitor final : public VNVisitor {
}

if (m_inProcedure) {
} else {
} else if (VN_IS(m_modp, Module)) {
AstIf* const fakeIfp = new AstIf(nodep->fileline(), nodep->condp()->cloneTree(true));
FileLine* const newFl = new FileLine{nodep->fileline()};
AstAlways* const alwaysp = new AstAlways{newFl, VAlwaysKwd::ALWAYS, nullptr, fakeIfp};
Expand Down

0 comments on commit 9867c7e

Please sign in to comment.