Skip to content

Commit

Permalink
Interrupt logic improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Herrmann committed Nov 6, 2023
1 parent 1b5fbac commit e4ae80a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions verilog/rtl/include/clam-defs.svh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ typedef enum logic {
`define SOC_NUM_INTER 52
// `include "Peripheral_Unit_Defs"

`define CARAVEL_INTR_ADDR 32'hF0000000

`endif // CLAM_DEFS_SVH
2 changes: 2 additions & 0 deletions verilog/rtl/rtl/soc/clam-defs.svh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ typedef enum logic {
`define SOC_NUM_INTER 52
// `include "Peripheral_Unit_Defs"

`define CARAVEL_INTR_ADDR 32'hF0000000

`endif // CLAM_DEFS_SVH
2 changes: 2 additions & 0 deletions verilog/rtl/rtl/soc/modules/clam-defs.svh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ typedef enum logic {
`define SOC_NUM_INTER 52
// `include "Peripheral_Unit_Defs"

`define CARAVEL_INTR_ADDR 32'hF0000000

`endif // CLAM_DEFS_SVH
6 changes: 3 additions & 3 deletions verilog/rtl/rtl/soc/soc.sv
Original file line number Diff line number Diff line change
Expand Up @@ -742,9 +742,9 @@ module soc (

end

assign caravel_interrupt_o = illegal_access;


always_comb begin: caravel_interrupt_assignment
caravel_interrupt_o = ((dmem_addr == `CARAVEL_INTR_ADDR) & dmem_we) ? {dmem_wdata[1:0],1'b0} : {2'b0, illegal_access};
end
////////////////////////////////
// Unused Signal Terminations //
////////////////////////////////
Expand Down

0 comments on commit e4ae80a

Please sign in to comment.