From 930e5137aca7dae3bb4a403c46a90d2814b700ba Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 30 Oct 2003 04:31:34 +0000 Subject: [PATCH] Catch real variables in net expressions. --- elab_net.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/elab_net.cc b/elab_net.cc index 90b183c00..6c1cab176 100644 --- a/elab_net.cc +++ b/elab_net.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: elab_net.cc,v 1.121 2003/10/20 01:44:28 steve Exp $" +#ident "$Id: elab_net.cc,v 1.122 2003/10/30 04:31:34 steve Exp $" #endif # include "config.h" @@ -1358,6 +1358,13 @@ NetNet* PEIdent::elaborate_net(Design*des, NetScope*scope, connect(sig->pin(idx), cp->pin(idx)); } + if (var != 0) { + cerr << get_line() << ": sorry: " << path_ + << " is a real in a net/wire context." << endl; + des->errors += 1; + return 0; + } + /* Fallback, this may be an implicitly declared net. */ if (sig == 0) { @@ -2396,6 +2403,9 @@ NetNet* PEUnary::elaborate_net(Design*des, NetScope*scope, /* * $Log: elab_net.cc,v $ + * Revision 1.122 2003/10/30 04:31:34 steve + * Catch real variables in net expressions. + * * Revision 1.121 2003/10/20 01:44:28 steve * memory index need not be self determined width. *