Throw UNUSED/UNDRIVEN only once per net in a parametrized module.

This commit is contained in:
Wilson Snyder
2011-01-18 21:28:51 -05:00
parent 481b261458
commit a435ae98f9
7 changed files with 88 additions and 2 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ private:
m_ifDepth = -1;
} else if (++m_ifDepth > v3Global.opt.ifDepth()) {
nodep->v3warn(IFDEPTH,"Deep 'if' statement; suggest unique/priority to avoid slow logic");
nodep->fileline()->warnOn(V3ErrorCode::IFDEPTH, false); // Warn only once
nodep->fileline()->modifyWarnOff(V3ErrorCode::IFDEPTH, true); // Warn only once
m_ifDepth = -1;
}
nodep->iterateChildren(*this);