Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix core_sleep_o #131

Merged
merged 1 commit into from
Jul 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading