Support elaboration assertions, bug973.

This commit is contained in:
Wilson Snyder
2015-10-23 18:13:25 -04:00
parent 040b1b06d5
commit 4fde6ee7af
8 changed files with 152 additions and 8 deletions
-7
View File
@@ -343,13 +343,6 @@ private:
virtual void visit(AstDisplay* nodep, AstNUser* vup) {
nodep->iterateChildren(*this);
if (nodep->filep()) expectDescriptor(nodep, nodep->filep()->castNodeVarRef());
if (!m_assertp
&& (nodep->displayType() == AstDisplayType::DT_INFO
|| nodep->displayType() == AstDisplayType::DT_WARNING
|| nodep->displayType() == AstDisplayType::DT_ERROR
|| nodep->displayType() == AstDisplayType::DT_FATAL)) {
nodep->v3error(nodep->verilogKwd()+" only allowed under an assertion.");
}
}
virtual void visit(AstUdpTable* nodep, AstNUser*) {