Reword some error messages for clarity.

This commit is contained in:
steve 2002-12-06 03:08:19 +00:00
parent b89e138404
commit c032186133
1 changed files with 10 additions and 8 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CVS_IDENT #ifdef HAVE_CVS_IDENT
#ident "$Id: elab_net.cc,v 1.102 2002/11/09 19:20:48 steve Exp $" #ident "$Id: elab_net.cc,v 1.103 2002/12/06 03:08:19 steve Exp $"
#endif #endif
# include "config.h" # include "config.h"
@ -1538,18 +1538,17 @@ NetNet* PEIdent::elaborate_lnet(Design*des, NetScope*scope,
/* Don't allow registers as assign l-values. */ /* Don't allow registers as assign l-values. */
if (sig->type() == NetNet::REG) { if (sig->type() == NetNet::REG) {
cerr << get_line() << ": error: registers (" << sig->name() cerr << get_line() << ": error: reg " << sig->name()
<< ") cannot be l-values in continuous" << "; cannot be an L-value in continuous"
<< " assignments." << endl; << " assignments." << endl;
return 0; return 0;
} }
if (sig->port_type() == NetNet::PINPUT) { if (sig->port_type() == NetNet::PINPUT) {
cerr << get_line() << ": warning: assign l-value ``" cerr << get_line() << ": warning: L-value ``"
<< sig->name() << "'' is also an input to " << sig->name() << "'' is also an input port." << endl;
<< sig->scope()->name() << "." << endl; cerr << sig->get_line() << ": warning: input "
cerr << sig->get_line() << ": warning: input ``" << sig->name() << "; is coerced to inout." << endl;
<< sig->name() << "'' is coerced to inout." << endl;
sig->port_type(NetNet::PINOUT); sig->port_type(NetNet::PINOUT);
} }
@ -2279,6 +2278,9 @@ NetNet* PEUnary::elaborate_net(Design*des, NetScope*scope,
/* /*
* $Log: elab_net.cc,v $ * $Log: elab_net.cc,v $
* Revision 1.103 2002/12/06 03:08:19 steve
* Reword some error messages for clarity.
*
* Revision 1.102 2002/11/09 19:20:48 steve * Revision 1.102 2002/11/09 19:20:48 steve
* Port expressions for output ports are lnets, not nets. * Port expressions for output ports are lnets, not nets.
* *