mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Support assignment patterns as children of pins (#3041)
Signed-off-by: Krzysztof Bieganski <[email protected]>
This commit is contained in:
@@ -4152,6 +4152,9 @@ private:
|
||||
// TOP LEVEL NODE
|
||||
if (nodep->modVarp() && nodep->modVarp()->isGParam()) {
|
||||
// Widthing handled as special init() case
|
||||
if (auto* patternp = VN_CAST(nodep->exprp(), Pattern))
|
||||
if (auto* modVarp = nodep->modVarp())
|
||||
patternp->childDTypep(modVarp->childDTypep()->cloneTree(false));
|
||||
userIterateChildren(nodep, WidthVP(SELF, BOTH).p());
|
||||
} else if (!m_paramsOnly) {
|
||||
if (!nodep->modVarp()->didWidth()) {
|
||||
|
||||
Reference in New Issue
Block a user