From 91e142d55a31ad5fb67604defff3501c75e72590 Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Fri, 18 Oct 2024 13:01:58 +0200 Subject: [PATCH] Compilation error: queue select as output arg Signed-off-by: Ryszard Rozak --- src/riscv_instr_stream.sv | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/riscv_instr_stream.sv b/src/riscv_instr_stream.sv index 9e980da8..2932e3c5 100644 --- a/src/riscv_instr_stream.sv +++ b/src/riscv_instr_stream.sv @@ -218,7 +218,9 @@ class riscv_rand_instr_stream extends riscv_instr_stream; bit is_debug_program = 1'b0); setup_allowed_instr(no_branch, no_load_store); foreach(instr_list[i]) begin - randomize_instr(instr_list[i], is_debug_program); + riscv_instr instr; + randomize_instr(instr, is_debug_program); + instr_list[i] = instr; end // Do not allow branch instruction as the last instruction because there's no // forward branch target