From 1eb22b7e14cee3f64a240d0ffaa53c2fd760c812 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sat, 1 Jan 2022 10:30:30 +0100 Subject: [PATCH] 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 --- tgt-vvp/stmt_assign.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tgt-vvp/stmt_assign.c b/tgt-vvp/stmt_assign.c index 7eb98d7de..ac604db73 100644 --- a/tgt-vvp/stmt_assign.c +++ b/tgt-vvp/stmt_assign.c @@ -756,9 +756,6 @@ static void store_real_to_lval(ivl_lval_t lval) return; } - // For now, only support 1-dimensional arrays. - assert(ivl_signal_dimensions(var) == 1); - ivl_expr_t word_ex = ivl_lval_idx(lval); int word_ix = allocate_word();