Skip to content

Commit

Permalink
Set that generating of randomize() method is finished at the end of v…
Browse files Browse the repository at this point in the history
…isitor

Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Nov 22, 2023
1 parent 8e3cc73 commit 4f28ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/V3Randomize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ class RandomizeVisitor final : public VNVisitor {
funcp->addStmtsp(new AstAssign{fl, new AstVarRef{fl, fvarp, VAccess::WRITE},
new AstAnd{fl, beginValp, craveCallp}});
}
nodep->user1(false);

for (auto* memberp = nodep->stmtsp(); memberp; memberp = memberp->nextp()) {
AstVar* const memberVarp = VN_CAST(memberp, Var);
Expand Down Expand Up @@ -370,6 +369,7 @@ class RandomizeVisitor final : public VNVisitor {
}
}
addPrePostCall(nodep, funcp, "post_randomize");
nodep->user1(false);
}
void visit(AstConstraint* nodep) override {
auto* newp = VN_AS(m_memberMap.findMember(m_modp, "new"), NodeFTask);
Expand Down

0 comments on commit 4f28ccf

Please sign in to comment.