From 88b18d4212c23a008a096642227b6c4ceb38b70c Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 5 Aug 2009 11:38:10 -0700 Subject: [PATCH] Warn that we do not support non-blocking assignment to real array words. A while ago we changed how variable arrays were accessed. This change did not get propagated to the non-blocking assignment for real array words. This patch adds a warning that this is not currently supported. We can add this to development, but not V0.9 (interface change). --- tgt-vvp/vvp_process.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tgt-vvp/vvp_process.c b/tgt-vvp/vvp_process.c index ed35af624..c87634f6e 100644 --- a/tgt-vvp/vvp_process.c +++ b/tgt-vvp/vvp_process.c @@ -648,6 +648,13 @@ static int show_stmt_assign_nb_real(ivl_statement_t net) assert(word_ix); assert(number_is_immediate(word_ix, IMM_WID, 0)); use_word = get_number_immediate(word_ix); + /* This method no longer works since variable arrays do not + * support _ access any more. We need real + * array specific opcodes (%assign/ar, etc.). */ + fprintf(stderr, "%s:%u: vvp-tgt sorry: non-blocking assignment " + "to a real array word is not supported.\n", + ivl_expr_file(rval), ivl_expr_lineno(rval)); + exit(1); } if (del && (ivl_expr_type(del) == IVL_EX_DELAY)) {