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.
This commit is contained in:
Stephen Williams 2008-09-25 21:21:00 -07:00
parent d3f17f27c1
commit 4919b70da6
1 changed files with 1 additions and 0 deletions

View File

@ -451,6 +451,7 @@ NetNet* PEIdent::elaborate_lnet_common_(Design*des, NetScope*scope,
sig->type(), sig->vector_width()); sig->type(), sig->vector_width());
tmp->set_line(*this); tmp->set_line(*this);
tmp->local_flag(true); tmp->local_flag(true);
tmp->data_type( sig->data_type() );
connect(sig->pin(widx), tmp->pin(0)); connect(sig->pin(widx), tmp->pin(0));
sig = tmp; sig = tmp;
} }