diff --git a/src/V3Width.cpp b/src/V3Width.cpp index b4cb428d7..84c725466 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -315,9 +315,11 @@ private: <<(nodep->lsbp()->width()!=nodep->lsbp()->widthMin() ?" or "+cvtToStr(nodep->lsbp()->widthMin()):"") <<" bits."); - UINFO(1," Related node: "<varp()<varp()->dtypep()<fileline()->warnIsOff(V3ErrorCode::WIDTH)) { + UINFO(1," Related node: "<varp()<varp()->dtypep()<lsbp()->castConst() && nodep->msbConst() > frommsb) { // See also warning in V3Const @@ -370,9 +372,11 @@ private: <<(nodep->bitp()->width()!=nodep->bitp()->widthMin() ?" or "+cvtToStr(nodep->bitp()->widthMin()):"") <<" bits."); - UINFO(1," Related node: "<varp()<fileline()->warnIsOff(V3ErrorCode::WIDTH)) { + UINFO(1," Related node: "<varp()<bitp(),selwidth,selwidth,true); }