Fix internal error on unconnected inouts, bug1187.

This commit is contained in:
Wilson Snyder
2017-08-13 18:08:24 -04:00
parent 7b642bcbb4
commit d4595df8a4
4 changed files with 97 additions and 1 deletions
+2 -1
View File
@@ -1074,7 +1074,8 @@ class TristateVisitor : public TristateBaseVisitor {
UINFO(5,"Unconnected pin terminate "<<nodep<<endl);
AstVar* ucVarp = getCreateUnconnVarp(nodep, nodep->modVarp()->dtypep());
nodep->exprp(new AstVarRef(nodep->fileline(), ucVarp,
nodep->modVarp()->isOutput()));
// We converted, so use declaration output state
nodep->modVarp()->isDeclOutput()));
m_tgraph.setTristate(ucVarp);
// We don't need a driver on the wire; the lack of one will default to tristate
} else if (inDeclProcessing) { // Not an input that was a converted tristate