mirror of
https://github.com/verilator/verilator.git
synced 2025-01-10 00:27:35 +00:00
Internals: Disable debug message when no warnings
This commit is contained in:
parent
67d1dad77c
commit
8487d67f00
@ -315,9 +315,11 @@ private:
|
||||
<<(nodep->lsbp()->width()!=nodep->lsbp()->widthMin()
|
||||
?" or "+cvtToStr(nodep->lsbp()->widthMin()):"")
|
||||
<<" bits.");
|
||||
UINFO(1," Related node: "<<nodep<<endl);
|
||||
if (varrp) UINFO(1," Related var: "<<varrp->varp()<<endl);
|
||||
if (varrp) UINFO(1," Related dtype: "<<varrp->varp()->dtypep()<<endl);
|
||||
if (!nodep->fileline()->warnIsOff(V3ErrorCode::WIDTH)) {
|
||||
UINFO(1," Related node: "<<nodep<<endl);
|
||||
if (varrp) UINFO(1," Related var: "<<varrp->varp()<<endl);
|
||||
if (varrp) UINFO(1," Related dtype: "<<varrp->varp()->dtypep()<<endl);
|
||||
}
|
||||
}
|
||||
if (nodep->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: "<<nodep<<endl);
|
||||
if (varrp) UINFO(1," Related var: "<<varrp->varp()<<endl);
|
||||
if (varrp) UINFO(1," Related depth: "<<dimension<<" dtype: "<<ddtypep<<endl);
|
||||
if (!nodep->fileline()->warnIsOff(V3ErrorCode::WIDTH)) {
|
||||
UINFO(1," Related node: "<<nodep<<endl);
|
||||
if (varrp) UINFO(1," Related var: "<<varrp->varp()<<endl);
|
||||
if (varrp) UINFO(1," Related depth: "<<dimension<<" dtype: "<<ddtypep<<endl);
|
||||
}
|
||||
}
|
||||
widthCheck(nodep,"Extract Range",nodep->bitp(),selwidth,selwidth,true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user