Skip to content
This repository
Browse code

Set some missing local flags.

  • Loading branch information...
commit 326329d497c240cc46d0c76c82abd122a898a9e4 1 parent d958a4a
steve authored

Showing 2 changed files with 18 additions and 2 deletions. Show diff stats Hide diff stats

  1. +10 1 elab_net.cc
  2. +8 1 expr_synth.cc
11 elab_net.cc
@@ -17,7 +17,7 @@
17 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18 18 */
19 19 #ifdef HAVE_CVS_IDENT
20   -#ident "$Id: elab_net.cc,v 1.197 2007/02/01 19:06:06 steve Exp $"
  20 +#ident "$Id: elab_net.cc,v 1.198 2007/02/05 01:42:31 steve Exp $"
21 21 #endif
22 22
23 23 # include "config.h"
@@ -1097,6 +1097,8 @@ NetNet* PEBinary::elaborate_net_shift_(Design*des, NetScope*scope,
1097 1097 NetNet*tmp = new NetNet(scope, scope->local_symbol(),
1098 1098 NetNet::WIRE, 1);
1099 1099 tmp->data_type( data_type );
  1100 + tmp->local_flag(true);
  1101 + tmp->set_line(*this);
1100 1102 connect(sign_bit->pin(0), tmp->pin(0));
1101 1103 connect(sign_bit->pin(0), sign_pad->pin(1));
1102 1104
@@ -1893,6 +1895,8 @@ NetNet* PEConcat::elaborate_lnet_common_(Design*des, NetScope*scope,
1893 1895 /* Assume that the data types of the nets are all the same, so
1894 1896 we can take the data type of any, the first will do. */
1895 1897 osig->data_type(nets[0]->data_type());
  1898 + osig->local_flag(true);
  1899 + osig->set_line(*this);
1896 1900
1897 1901 if (debug_elaborate) {
1898 1902 cerr << get_line() << ": debug: Generating part selects "
@@ -2270,6 +2274,8 @@ NetNet* PEIdent::elaborate_lnet_common_(Design*des, NetScope*scope,
2270 2274 sig->scope()->local_symbol(),
2271 2275 NetNet::WIRE, subnet_wid);
2272 2276 subsig->data_type( sig->data_type() );
  2277 + subsig->local_flag(true);
  2278 + subsig->set_line(*this);
2273 2279
2274 2280 NetPartSelect*sub = new NetPartSelect(sig, lidx, subnet_wid,
2275 2281 part_dir);
@@ -2903,6 +2909,9 @@ NetNet* PEUnary::elaborate_net(Design*des, NetScope*scope,
2903 2909
2904 2910 /*
2905 2911 * $Log: elab_net.cc,v $
  2912 + * Revision 1.198 2007/02/05 01:42:31 steve
  2913 + * Set some missing local flags.
  2914 + *
2906 2915 * Revision 1.197 2007/02/01 19:06:06 steve
2907 2916 * Ternary output node is local.
2908 2917 *
9 expr_synth.cc
@@ -17,7 +17,7 @@
17 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18 18 */
19 19 #ifdef HAVE_CVS_IDENT
20   -#ident "$Id: expr_synth.cc,v 1.82 2007/01/20 02:10:45 steve Exp $"
  20 +#ident "$Id: expr_synth.cc,v 1.83 2007/02/05 01:42:31 steve Exp $"
21 21 #endif
22 22
23 23 # include "config.h"
@@ -473,6 +473,8 @@ NetNet* NetEBShift::synthesize(Design*des)
473 473 NetNet*zsig = new NetNet(scope, scope->local_symbol(),
474 474 NetNet::WIRE, znum.len());
475 475 zsig->data_type(osig->data_type());
  476 + zsig->local_flag(true);
  477 + zsig->set_line(*this);
476 478 connect(zcon->pin(0), zsig->pin(0));
477 479
478 480 /* Create a part select to reduce the width of the lsig
@@ -793,6 +795,8 @@ NetNet* NetESelect::synthesize(Design *des)
793 795 NetNet*net = new NetNet(scope, scope->local_symbol(),
794 796 NetNet::IMPLICIT, expr_width());
795 797 net->data_type(expr_type());
  798 + net->local_flag(true);
  799 + net->set_line(*this);
796 800 if (has_sign()) {
797 801 NetSignExtend*pad = new NetSignExtend(scope,
798 802 scope->local_symbol(),
@@ -910,6 +914,9 @@ NetNet* NetESignal::synthesize(Design*des)
910 914
911 915 /*
912 916 * $Log: expr_synth.cc,v $
  917 + * Revision 1.83 2007/02/05 01:42:31 steve
  918 + * Set some missing local flags.
  919 + *
913 920 * Revision 1.82 2007/01/20 02:10:45 steve
914 921 * Get argument widths right for shift results.
915 922 *

0 comments on commit 326329d

Please sign in to comment.
Something went wrong with that request. Please try again.