diff --git a/src/V3Const.cpp b/src/V3Const.cpp index 16391a90d..42348c818 100644 --- a/src/V3Const.cpp +++ b/src/V3Const.cpp @@ -305,8 +305,7 @@ private: return (nodep->lsbp()->castConst() && nodep->widthp()->castConst() && nodep->lsbConst()==0 - && (int)nodep->widthConst()==nodep->fromp()->width() - && 1); + && (int)nodep->widthConst()==nodep->fromp()->width()); } bool operandSelExtend(AstSel* nodep) { // A pattern created by []'s after offsets have been removed diff --git a/src/V3Inst.cpp b/src/V3Inst.cpp index 29a06ce10..70c011f63 100644 --- a/src/V3Inst.cpp +++ b/src/V3Inst.cpp @@ -530,8 +530,7 @@ public: && connBasicp->width() == pinBasicp->width() && connBasicp->lsb() == pinBasicp->lsb() && !connectRefp->varp()->isSc() // Need the signal as a 'shell' to convert types - && connBasicp->width() == pinVarp->width() - && 1) { + && connBasicp->width() == pinVarp->width()) { // Done. One to one interconnect won't need a temporary variable. } else if (!alwaysCvt && !forTristate && pinp->exprp()->castConst()) { // Done. Constant. diff --git a/src/V3PreProc.cpp b/src/V3PreProc.cpp index 73a2bd2a1..54ad0f22c 100644 --- a/src/V3PreProc.cpp +++ b/src/V3PreProc.cpp @@ -1097,7 +1097,7 @@ int V3PreProcImp::getStateToken() { // Value of building argument is data before the lower defref // we'll append it when we push the argument. break; - } else if (tok==VP_SYMBOL || tok==VP_STRING || VP_TEXT || VP_WHITE) { + } else if (tok==VP_SYMBOL || tok==VP_STRING || tok==VP_TEXT || tok==VP_WHITE) { string rtn; rtn.assign(yyourtext(),yyourleng()); refp->nextarg(refp->nextarg()+rtn); goto next_tok;