From 4919b70da653d23a844fac25f5b6b961d4227e10 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Thu, 25 Sep 2008 21:21:00 -0700 Subject: [PATCH] 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. --- elab_net.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/elab_net.cc b/elab_net.cc index daa45e64f..a51dd059c 100644 --- a/elab_net.cc +++ b/elab_net.cc @@ -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; }