mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Internals: Pass unconnected pins through structures. No functional change intended.
This commit is contained in:
+5
-1
@@ -1097,11 +1097,15 @@ private:
|
||||
if (nodep->modVarp() && nodep->modVarp()->isGParam()) {
|
||||
// Widthing handled as special init() case
|
||||
nodep->iterateChildren(*this,WidthVP(ANYSIZE,0,BOTH).p());
|
||||
} else if (!m_paramsOnly){
|
||||
} else if (!m_paramsOnly) {
|
||||
if (nodep->modVarp()->width()==0) {
|
||||
// Var hasn't been widthed, so make it so.
|
||||
nodep->modVarp()->iterate(*this);
|
||||
}
|
||||
if (!nodep->exprp()) { // No-connect
|
||||
nodep->widthSignedFrom(nodep->modVarp());
|
||||
return;
|
||||
}
|
||||
// Very much like like an assignment, but which side is LH/RHS
|
||||
// depends on pin being a in/output/inout.
|
||||
nodep->exprp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,PRELIM).p());
|
||||
|
||||
Reference in New Issue
Block a user