From 21af0dbe3f3dcf25f71696fe765c9ca7a5ca3ad3 Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 19 Sep 2005 15:21:09 +0000 Subject: [PATCH] Fix data type of parameters to logic. --- elab_net.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/elab_net.cc b/elab_net.cc index e267b7f7f..79cee806a 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.174 2005/09/15 23:04:09 steve Exp $" +#ident "$Id: elab_net.cc,v 1.175 2005/09/19 15:21:09 steve Exp $" #endif # include "config.h" @@ -1557,8 +1557,11 @@ NetNet* PEIdent::elaborate_net(Design*des, NetScope*scope, sig = new NetNet(scope, lex_strings.make(path_.peek_name(0)), NetNet::IMPLICIT, pvalue.len()); + sig->set_line(*this); + sig->data_type(IVL_VT_LOGIC); NetConst*cp = new NetConst(scope, scope->local_symbol(), pvalue); + cp->set_line(*this); des->add_node(cp); for (unsigned idx = 0; idx < sig->pin_count(); idx += 1) connect(sig->pin(idx), cp->pin(idx)); @@ -2641,6 +2644,9 @@ NetNet* PEUnary::elaborate_net(Design*des, NetScope*scope, /* * $Log: elab_net.cc,v $ + * Revision 1.175 2005/09/19 15:21:09 steve + * Fix data type of parameters to logic. + * * Revision 1.174 2005/09/15 23:04:09 steve * Make sure div, mod and mult nodes have line number info. *