Support by ignoring delay2 on UDPs

This commit is contained in:
Wilson Snyder
2025-08-05 17:34:42 -04:00
parent 6467351752
commit c005486acf
3 changed files with 40 additions and 3 deletions
+3 -3
View File
@@ -2889,9 +2889,9 @@ class LinkDotResolveVisitor final : public VNVisitor {
VSymEnt* const foundp = m_pinSymp->findIdFlat(nodep->name());
const char* const whatp = nodep->param() ? "parameter" : "pin";
if (!foundp) {
if (nodep->name() == "__paramNumber1" && m_cellp
&& VN_IS(m_cellp->modp(), Primitive)) {
// Primitive parameter is really a delay we can just ignore
if (m_cellp && VN_IS(m_cellp->modp(), Primitive)
&& (nodep->name() == "__paramNumber1" || nodep->name() == "__paramNumber2")) {
// Primitive parameter is really a delay2 we can just ignore
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
return;
} else {