mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Use width when widthMin is the same. No functional change intended
This commit is contained in:
+1
-1
@@ -284,7 +284,7 @@ void V3Inst::pinReconnectSimple(AstPin* pinp, AstCell* cellp, AstNodeModule* mod
|
||||
rhsp = new AstExtend (pinp->fileline(), rhsp);
|
||||
}
|
||||
} else if (pinp->width() < rhsp->width()) {
|
||||
rhsp = new AstSel (pinp->fileline(), rhsp, 0, pinp->widthMin());
|
||||
rhsp = new AstSel (pinp->fileline(), rhsp, 0, pinp->width());
|
||||
}
|
||||
rhsp->widthSignedFrom(pinp);
|
||||
assignp = new AstAssignW (pinp->fileline(), pinexprp, rhsp);
|
||||
|
||||
Reference in New Issue
Block a user