Skip to content

Commit

Permalink
Change type of argument from input to ref
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Dec 3, 2024
1 parent 7e204ee commit f756d42
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 @@ -881,7 +881,7 @@ class ConstraintExprVisitor final : public VNVisitor {
m_genp = new AstVar{nodep->fileline(), VVarType::VAR, "constraint",
nodep->findBasicDType(VBasicDTypeKwd::RANDOM_GENERATOR)};
m_genp->funcLocal(true);
m_genp->direction(VDirection::INPUT);
m_genp->direction(VDirection::REF);
m_genp->lifetime(VLifetime::AUTOMATIC);
m_taskp = new AstTask{nodep->fileline(), name + "_setup_constraint", m_genp};
nodep->user2p(m_taskp);
Expand Down

0 comments on commit f756d42

Please sign in to comment.