From 83c86735bb4f1c67419f22dd68e96654610716e7 Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 17 Jul 2020 02:18:09 -0700 Subject: [PATCH] Update vlog95 to not crash with queue maximum index --- tgt-vlog95/stmt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tgt-vlog95/stmt.c b/tgt-vlog95/stmt.c index 3107baffa..9bbee81d6 100644 --- a/tgt-vlog95/stmt.c +++ b/tgt-vlog95/stmt.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2019 Cary R. (cygcary@yahoo.com) + * Copyright (C) 2011-2020 Cary R. (cygcary@yahoo.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -266,7 +266,8 @@ static void emit_stmt_lval_piece(ivl_scope_t scope, ivl_lval_t lval) /* If there are no selects then just print the name. */ sel_expr = ivl_lval_part_off(lval); - if (! sel_expr && (width == ivl_signal_width(sig))) { + if (! sel_expr && ((width == ivl_signal_width(sig)) || + (ivl_signal_data_type(sig) == IVL_VT_QUEUE))) { emit_stmt_lval_name(scope, lval, sig); return; }