tgt-vvp: Allow multi-dimensional real arrays
There is currently a restriction in the vvp code generator backend that throws an assertion when generating wire access for a multi-dimensional real array. But there is nothing special about multi-dimensional arrays. In vvp arrays are in canonical form. Meaning they only have a single dimension and the conversion form multi to single dimension is done in the higher layers. Remove the assert to allow multi-dimensional real arrays. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
parent
0a86773c5e
commit
1eb22b7e14
|
|
@ -756,9 +756,6 @@ static void store_real_to_lval(ivl_lval_t lval)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// For now, only support 1-dimensional arrays.
|
|
||||||
assert(ivl_signal_dimensions(var) == 1);
|
|
||||||
|
|
||||||
ivl_expr_t word_ex = ivl_lval_idx(lval);
|
ivl_expr_t word_ex = ivl_lval_idx(lval);
|
||||||
int word_ix = allocate_word();
|
int word_ix = allocate_word();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue