Do not force lossless calculation for index expressions (issue #515)
The standard Verilog expression bit length rules must be used.
This commit is contained in:
parent
cf0bf4d9aa
commit
a040ddc070
|
|
@ -543,7 +543,7 @@ void indices_to_expressions(Design*des, NetScope*scope,
|
|||
}
|
||||
ivl_assert(*loc, cur->msb);
|
||||
|
||||
NetExpr*word_index = elab_and_eval_lossless(des, scope, cur->msb, -2, need_const);
|
||||
NetExpr*word_index = elab_and_eval(des, scope, cur->msb, -1, need_const);
|
||||
|
||||
if (word_index == 0)
|
||||
flags.invalid = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue