Support parameterized virtual interaces (#4047) (#4743)

This commit is contained in:
Ryszard Rozak
2023-12-06 08:02:04 -05:00
committed by GitHub
parent ca5a7d7656
commit eb2cfe1d19
5 changed files with 195 additions and 0 deletions
+5
View File
@@ -239,6 +239,11 @@ class LinkCellsVisitor final : public VNVisitor {
nodep->v3error("Non-interface used as an interface: " << nodep->prettyNameQ());
}
}
iterateChildren(nodep);
for (AstPin* pinp = nodep->paramsp(); pinp; pinp = VN_AS(pinp->nextp(), Pin)) {
pinp->param(true);
if (pinp->name() == "") pinp->name("__paramNumber" + cvtToStr(pinp->pinNum()));
}
// Note cannot do modport resolution here; modports are allowed underneath generates
}