Debug messages.
This commit is contained in:
parent
a79fee39e9
commit
657ac8168e
10
elaborate.cc
10
elaborate.cc
|
|
@ -17,7 +17,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: elaborate.cc,v 1.324 2005/05/24 01:44:27 steve Exp $"
|
||||
#ident "$Id: elaborate.cc,v 1.325 2005/06/17 05:06:47 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "config.h"
|
||||
|
|
@ -1611,6 +1611,11 @@ NetProc* PCondit::elaborate(Design*des, NetScope*scope) const
|
|||
// else_ statement, the use an empty block as a noop.
|
||||
if (NetEConst*ce = dynamic_cast<NetEConst*>(expr)) {
|
||||
verinum val = ce->value();
|
||||
if (debug_elaborate) {
|
||||
cerr << get_line() << ": debug: Condition expression "
|
||||
<< "is a constant " << val << "." << endl;
|
||||
}
|
||||
|
||||
delete expr;
|
||||
if (val[0] == verinum::V1)
|
||||
return if_->elaborate(des, scope);
|
||||
|
|
@ -2971,6 +2976,9 @@ Design* elaborate(list<perm_string>roots)
|
|||
|
||||
/*
|
||||
* $Log: elaborate.cc,v $
|
||||
* Revision 1.325 2005/06/17 05:06:47 steve
|
||||
* Debug messages.
|
||||
*
|
||||
* Revision 1.324 2005/05/24 01:44:27 steve
|
||||
* Do sign extension of structuran nets.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue