Skip to content

Commit

Permalink
[FIX] WFI in clic mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico Zelioli committed Jul 4, 2023
1 parent b919c32 commit cad5fb9
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 cad5fb9

Please sign in to comment.