Skip to content

Commit

Permalink
decoder/clic: Ignore CLINT interrupts in CLIC mode
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 b919c32 commit 31f6452
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/decoder.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1391,8 +1391,10 @@ module decoder import ariane_pkg::*; #(
// -----------------
// we decode an interrupt the same as an exception, hence it will be taken if the instruction did not
// throw any previous exception.
if (ariane_pkg::RVSCLIC && clic_mode_i && clic_irq_req_i) begin
interrupt_cause = clic_irq_cause_i;
if (ariane_pkg::RVSCLIC && clic_mode_i) begin
if (clic_irq_req_i) begin
interrupt_cause = clic_irq_cause_i;
end
end else begin
// we have three interrupt sources: external interrupts, software interrupts, timer interrupts (order of precedence)
// for two privilege levels: Supervisor and Machine Mode
Expand Down

0 comments on commit 31f6452

Please sign in to comment.