From 233863c888e3e128d609960b4b18b85ba3fefddc Mon Sep 17 00:00:00 2001 From: Lorenzo Leone Date: Wed, 6 Nov 2024 08:22:57 +0100 Subject: [PATCH] [TB]: Extend testbench to improve debugging (#53) --- target/sim/src/vip_chimera_soc.sv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/sim/src/vip_chimera_soc.sv b/target/sim/src/vip_chimera_soc.sv index d08d4ca..973c618 100644 --- a/target/sim/src/vip_chimera_soc.sv +++ b/target/sim/src/vip_chimera_soc.sv @@ -329,7 +329,7 @@ module vip_chimera_soc // Wait for termination signal and get return code task automatic jtag_wait_for_eoc(output word_bt exit_code); - jtag_poll_bit0(AmRegs + cheshire_reg_pkg::CHESHIRE_SCRATCH_2_OFFSET, exit_code, 800); + jtag_poll_bit0(AmRegs + cheshire_reg_pkg::CHESHIRE_SCRATCH_2_OFFSET, exit_code, 4000); exit_code >>= 1; if (exit_code) $error("[JTAG] FAILED: return code %0d", exit_code); else $display("[JTAG] SUCCESS"); @@ -426,6 +426,7 @@ module vip_chimera_soc uart_boot_eoc = 1; end else begin uart_read_buf.push_back(bite); + $display("Read Byte: %s", bite); end end end