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).
This commit is contained in:
Cary R 2009-08-05 11:38:10 -07:00 committed by Stephen Williams
parent cb5c4299fb
commit 88b18d4212
1 changed files with 7 additions and 0 deletions

View File

@ -648,6 +648,13 @@ static int show_stmt_assign_nb_real(ivl_statement_t net)
assert(word_ix); assert(word_ix);
assert(number_is_immediate(word_ix, IMM_WID, 0)); assert(number_is_immediate(word_ix, IMM_WID, 0));
use_word = get_number_immediate(word_ix); use_word = get_number_immediate(word_ix);
/* This method no longer works since variable arrays do not
* support <variable_id>_<idx> 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)) { if (del && (ivl_expr_type(del) == IVL_EX_DELAY)) {