From c563175ff009d77b912d62cdbb3a2e4098c11562 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Sun, 5 Nov 2023 16:58:22 +0000 Subject: [PATCH] Fix scheduling of external force signals (#4668) Used to set the wrong public flag on forceEn/forceVal, which means they were not included in ICO as necessary, but V3Gate tended to inline them, so this was hard to hit. Fixes #4577 --- src/V3Force.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3Force.cpp b/src/V3Force.cpp index 93a3d4a08..b446fb432 100644 --- a/src/V3Force.cpp +++ b/src/V3Force.cpp @@ -283,8 +283,8 @@ class ForceConvertVisitor final : public VNVisitor { // If this signal is marked externally forceable, create the public force signals if (nodep->varp()->isForceable()) { const ForceComponentsVarScope& fc = getForceComponents(nodep); - fc.m_enVscp->varp()->sigPublic(true); - fc.m_valVscp->varp()->sigPublic(true); + fc.m_enVscp->varp()->sigUserRWPublic(true); + fc.m_valVscp->varp()->sigUserRWPublic(true); } }