From e66fc7e5cc9d9b936e4174eba8100d21c79c0099 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Mon, 10 Feb 2014 17:19:52 -0800 Subject: [PATCH] Port UWIRE assignments to vec4 branch. --- tgt-vvp/stmt_assign.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tgt-vvp/stmt_assign.c b/tgt-vvp/stmt_assign.c index e93640ef6..77f3d737d 100644 --- a/tgt-vvp/stmt_assign.c +++ b/tgt-vvp/stmt_assign.c @@ -590,8 +590,13 @@ static void store_vec4_to_lval(ivl_statement_t net) int offset_index = allocate_word(); draw_eval_expr_into_integer(part_off_ex, offset_index); /* Note that flag4 is set by the eval above. */ - fprintf(vvp_out, " %%store/vec4 v%p_0, %d, %u;\n", - lsig, offset_index, lwid); + if (ivl_signal_type(lsig)==IVL_SIT_UWIRE) { + fprintf(vvp_out, " %%force/vec4/off v%p_0, %u;\n", + lsig, offset_index); + } else { + fprintf(vvp_out, " %%store/vec4 v%p_0, %d, %u;\n", + lsig, offset_index, lwid); + } clr_word(offset_index); } else {