From e01580519407f9c6c00b22edcc2d7dbc0b3edfd3 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 1 Jul 2025 08:57:08 -0400 Subject: [PATCH] Fix stripping on randomize (#6144 partial) --- src/V3Width.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index d3924d87a..8ebdac773 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -6300,7 +6300,10 @@ class WidthVisitor final : public VNVisitor { } } UASSERT_OBJ(nodep->taskp(), nodep, "Unlinked"); - if (nodep->didWidth()) return; + if (nodep->didWidth()) { + nodep->addPinsp(withp); + return; + } if ((nodep->taskp()->classMethod() && !nodep->taskp()->isStatic()) && !VN_IS(m_procedurep, InitialAutomatic) && (!m_ftaskp || !m_ftaskp->classMethod() || m_ftaskp->isStatic()) && !m_constraintp) {