From f756d42b6ea520e4d05593ec591467bcababe50e Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Tue, 3 Dec 2024 15:11:25 +0100 Subject: [PATCH] Change type of argument from input to ref Signed-off-by: Ryszard Rozak --- src/V3Randomize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Randomize.cpp b/src/V3Randomize.cpp index ea242ca841..fbdbff9c94 100644 --- a/src/V3Randomize.cpp +++ b/src/V3Randomize.cpp @@ -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);