Internals: Use elementsConst for AstRange width.

This commit is contained in:
Wilson Snyder
2011-11-30 07:51:05 -05:00
parent 7618133298
commit da13ba6c67
3 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ private:
int expwidth = nodep->exprp()->width();
if (expwidth == pinwidth) {
// NOP: Arrayed instants: widths match so connect to each instance
} else if (expwidth == pinwidth*m_cellRangep->width()) {
} else if (expwidth == pinwidth*m_cellRangep->elementsConst()) {
// Arrayed instants: one bit for each of the instants (each assign is 1 pinwidth wide)
AstNode* exprp = nodep->exprp()->unlinkFrBack();
bool inputPin = nodep->modVarp()->isInput();