Add message for unsupported release of part/bit select.

This patch adds a real error message instead of an assert when
someone attempts to release a part or bit select. I plan to work
on the real functionality soon.
This commit is contained in:
Cary R 2008-02-13 09:18:25 -08:00 committed by Stephen Williams
parent 110bc2e6eb
commit 2bab415626
1 changed files with 6 additions and 1 deletions

View File

@ -1172,7 +1172,12 @@ static int show_stmt_release(ivl_statement_t net)
unsigned long use_word = 0;
assert(lsig != 0);
assert(ivl_lval_mux(lval) == 0);
assert(ivl_lval_part_off(lval) == 0);
if (ivl_lval_part_off(lval) != 0) {
fprintf(stderr, "%s:%u: sorry (vvp-tgt): Release of part/"
"bit select is not supported.\n",
ivl_stmt_file(net), ivl_stmt_lineno(net));
exit(1);
}
switch (ivl_signal_type(lsig)) {
case IVL_SIT_REG: