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:
Martin Whitaker 2021-05-16 17:19:13 +01:00
parent cf0bf4d9aa
commit a040ddc070
1 changed files with 1 additions and 1 deletions

View File

@ -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;