Skip to content

Commit

Permalink
csr_regfile/clic: Leave wfi on CLIC interrupt
Browse files Browse the repository at this point in the history
Co-authored-by: Enrico Zelioli <[email protected]>
  • Loading branch information
ezelioli and Enrico Zelioli authored Jul 23, 2023
1 parent 31f6452 commit d4a71fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/csr_regfile.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ module csr_regfile import ariane_pkg::*; #(
wfi_d = wfi_q;
// if there is any (enabled) interrupt pending un-stall the core
// also un-stall if we want to enter debug mode
if (|(mip_q & mie_q) || debug_req_i || irq_i[1]) begin
if (debug_req_i || (!clic_mode_o && (|(mip_q & mie_q) || irq_i[1])) || clic_irq_ready_o) begin
wfi_d = 1'b0;
// or alternatively if there is no exception pending and we are not in debug mode wait here
// for the interrupt
Expand Down

0 comments on commit d4a71fa

Please sign in to comment.