Skip to content

Commit

Permalink
[TB]: Extend testbench to improve debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Lore0599 committed Nov 5, 2024
1 parent 314e947 commit 5f5a5a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions target/sim/src/vip_chimera_soc.sv
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module vip_chimera_soc
// Timing
parameter time ClkPeriodClu = 2ns,
parameter time ClkPeriodSys = 5ns,
parameter time ClkPeriodJtag = 20ns,
parameter time ClkPeriodJtag = 100ns,
parameter time ClkPeriodRtc = 30518ns,
parameter int unsigned RstCycles = 5,
parameter real TAppl = 0.1,
Expand Down Expand Up @@ -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, 8000);
exit_code >>= 1;
if (exit_code) $error("[JTAG] FAILED: return code %0d", exit_code);
else $display("[JTAG] SUCCESS");
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5f5a5a5

Please sign in to comment.