Fix per-bit array output connection error, bug414.

This commit is contained in:
Wilson Snyder
2013-02-02 18:33:10 -05:00
parent 5dd3221759
commit 6e6f1045b8
3 changed files with 12 additions and 4 deletions
+1
View File
@@ -198,6 +198,7 @@ private:
AstNode* exprp = nodep->exprp()->unlinkFrBack();
bool inputPin = nodep->modVarp()->isInput();
if (!inputPin && !exprp->castVarRef()
&& !exprp->castConcat() // V3Const will collapse the SEL with the one we're about to make
&& !exprp->castSel()) { // V3Const will collapse the SEL with the one we're about to make
nodep->v3error("Unsupported: Per-bit array instantiations with output connections to non-wires.");
// Note spec allows more complicated matches such as slices and such