Skip to content

Commit

Permalink
Added synchronous clear for setback during recovery.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvan Tortorella committed Nov 24, 2023
1 parent 498d241 commit 33557d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/cva6.sv
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module cva6 import ariane_pkg::*; #(
) (
input logic clk_i,
input logic rst_ni,
input logic clear_i,
// Core ID, Cluster ID and boot address are considered more or less static
input logic [riscv::VLEN-1:0] boot_addr_i, // reset boot address
input logic [riscv::XLEN-1:0] hart_id_i, // hart id in a multicore environment (reflected in a CSR)
Expand Down Expand Up @@ -301,7 +302,7 @@ module cva6 import ariane_pkg::*; #(
if (~rst_ni) begin
rst_uarch_n <= 1'b0;
end else begin
rst_uarch_n <= rst_uarch_controller_n;
rst_uarch_n <= rst_uarch_controller_n | ~clear_i;
end
end

Expand Down
1 change: 1 addition & 0 deletions corev_apu/tb/ariane.sv
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ module ariane import ariane_pkg::*; #(
) i_cva6 (
.clk_i ( clk_i ),
.rst_ni ( rst_ni ),
.clear_i ( '0 ),
.boot_addr_i ( boot_addr_i ),
.hart_id_i ( hart_id_i ),
.irq_i ( irq_i ),
Expand Down
1 change: 1 addition & 0 deletions corev_apu/tb/ariane_testharness.sv
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ module ariane_testharness #(
) i_ariane (
.clk_i ( clk_i ),
.rst_ni ( ndmreset_n ),
.clear_i ( '0 ),
.boot_addr_i ( ariane_soc::ROMBase ), // start fetching from ROM
.hart_id_i ( {56'h0, 8'(i)} ),
.irq_i ( irqs[i] ),
Expand Down

0 comments on commit 33557d2

Please sign in to comment.