Skip to content

Commit

Permalink
fix core_sleep_o
Browse files Browse the repository at this point in the history
  • Loading branch information
davideschiavone committed Jul 20, 2023
1 parent 066ff47 commit 0eea8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtl/cve2_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ module cve2_top import cve2_pkg::*; #(
end
end

assign clock_en = core_busy_q | debug_req_i | irq_pending | irq_nm_i;
assign core_sleep_o = ~clock_en;
assign clock_en = fetch_enable_q & (core_busy_q | debug_req_i | irq_pending | irq_nm_i);
assign core_sleep_o = fetch_enable_q & !clock_en;
assign fetch_enable_d = fetch_enable_i ? 1'b1 : fetch_enable_q;

cve2_clock_gate core_clock_gate_i (
Expand Down

0 comments on commit 0eea8e2

Please sign in to comment.