Arrays can have bit selects of individual words.

The l-value code was not handling the case of a bit select for
an individual array word.
This commit is contained in:
Cary R 2009-03-30 18:52:25 -07:00 committed by Stephen Williams
parent 3d449f60a2
commit ad39445eed
1 changed files with 3 additions and 0 deletions

View File

@ -289,6 +289,9 @@ NetAssign_* PEIdent::elaborate_lval_net_word_(Design*des,
if (name_tail.index.size() > 1) if (name_tail.index.size() > 1)
use_sel = name_tail.index.back().sel; use_sel = name_tail.index.back().sel;
if (use_sel == index_component_t::SEL_BIT)
elaborate_lval_net_bit_(des, scope, lv);
if (use_sel == index_component_t::SEL_PART) if (use_sel == index_component_t::SEL_PART)
elaborate_lval_net_part_(des, scope, lv); elaborate_lval_net_part_(des, scope, lv);