Permalink
Browse files

Give l-value nets their proper type.

L-value nets (i.e. in continuous assignments) that were words in
arrays need to have the data type of their parent array.
  • Loading branch information...
1 parent d3f17f2 commit 4919b70da653d23a844fac25f5b6b961d4227e10 @steveicarus committed Sep 26, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 elab_net.cc
View
@@ -451,6 +451,7 @@ NetNet* PEIdent::elaborate_lnet_common_(Design*des, NetScope*scope,
sig->type(), sig->vector_width());
tmp->set_line(*this);
tmp->local_flag(true);
+ tmp->data_type( sig->data_type() );
connect(sig->pin(widx), tmp->pin(0));
sig = tmp;
}

0 comments on commit 4919b70

Please sign in to comment.