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 42ba76a
Showing 1 changed file with 2 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

0 comments on commit 42ba76a

Please sign in to comment.