Resize vector before assigning to a dynamic array word.

Failing to do this leads to an assertion failure in vvp.
This commit is contained in:
Martin Whitaker 2019-09-16 20:39:19 +01:00
parent 02ee1c65d0
commit d6391490e3
1 changed files with 1 additions and 0 deletions

View File

@ -1020,6 +1020,7 @@ static int show_stmt_assign_sig_darray(ivl_statement_t net)
} else if (mux) {
draw_eval_vec4(rval);
resize_vec4_wid(rval, ivl_stmt_lwidth(net));
/* The %store/dar/vec4 expects the array index to be in index
register 3. Calculate the index in place. */