From a033c331b671f686f20c56b973ccfa21cb2456f2 Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 27 Jun 2001 18:34:43 +0000 Subject: [PATCH] Report line of unsupported cassign. --- elaborate.cc | 6 +++++- target.cc | 15 ++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/elaborate.cc b/elaborate.cc index c6bfdc79d..221676717 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: elaborate.cc,v 1.214 2001/05/17 03:35:22 steve Exp $" +#ident "$Id: elaborate.cc,v 1.215 2001/06/27 18:34:43 steve Exp $" #endif /* @@ -1452,6 +1452,7 @@ NetCAssign* PCAssign::elaborate(Design*des, const string&path) const rval = pad_to_width(des, rval, lval->pin_count()); NetCAssign* dev = new NetCAssign(des->local_symbol(path), lval); + dev->set_line(*this); des->add_node(dev); for (unsigned idx = 0 ; idx < dev->pin_count() ; idx += 1) @@ -2320,6 +2321,9 @@ Design* elaborate(const map&modules, /* * $Log: elaborate.cc,v $ + * Revision 1.215 2001/06/27 18:34:43 steve + * Report line of unsupported cassign. + * * Revision 1.214 2001/05/17 03:35:22 steve * do not assert if memory reference is invalid. * diff --git a/target.cc b/target.cc index 13add81bb..537893b3e 100644 --- a/target.cc +++ b/target.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: target.cc,v 1.53 2001/04/22 23:09:46 steve Exp $" +#ident "$Id: target.cc,v 1.54 2001/06/27 18:34:43 steve Exp $" #endif # include "target.h" @@ -140,8 +140,9 @@ void target_t::net_case_cmp(const NetCaseCmp*) bool target_t::net_cassign(const NetCAssign*dev) { - cerr << "target (" << typeid(*this).name() << "): " - "Unhandled NetCAssign node." << endl; + cerr << "target (" << typeid(*this).name() << "): "; + cerr << dev->get_line(); + cerr << ": Target does not support procedural continous assignment." << endl; return false; } @@ -211,8 +212,9 @@ void target_t::proc_case(const NetCase*cur) bool target_t::proc_cassign(const NetCAssign*dev) { - cerr << "target (" << typeid(*this).name() << "): " - "Unhandled proc_cassign." << endl; + cerr << "target (" << typeid(*this).name() << "): "; + cerr << dev->get_line(); + cerr << ": Target does not support procedural continous assignment." << endl; return false; } @@ -383,6 +385,9 @@ void expr_scan_t::expr_binary(const NetEBinary*ex) /* * $Log: target.cc,v $ + * Revision 1.54 2001/06/27 18:34:43 steve + * Report line of unsupported cassign. + * * Revision 1.53 2001/04/22 23:09:46 steve * More UDP consolidation from Stephan Boettcher. *