summaryrefslogtreecommitdiff
path: root/sv/soc/irq/pimc.sv
diff options
context:
space:
mode:
Diffstat (limited to 'sv/soc/irq/pimc.sv')
-rw-r--r--sv/soc/irq/pimc.sv7
1 files changed, 2 insertions, 5 deletions
diff --git a/sv/soc/irq/pimc.sv b/sv/soc/irq/pimc.sv
index a41a941..6ad4c43 100644
--- a/sv/soc/irq/pimc.sv
+++ b/sv/soc/irq/pimc.sv
@@ -35,10 +35,7 @@
module pimc #(
parameter IRQ_PIN_COUNT = 16,
parameter IRQTAB_ENTSIZE = 32,
- parameter IRQTAB_MMIOBASE = 48'h1000,
-
- /* irqtab indices */
- parameter IRQTAB_MASK = 1
+ parameter IRQTAB_MMIOBASE = 48'h1000
) (
input wire clk, /* 50 MHz */
input logic [IRQ_PIN_COUNT-1:0] irq_in,
@@ -97,7 +94,7 @@ module pimc #(
end else begin
for (i = 0; i < IRQ_PIN_COUNT; i = i + 1) begin
/* IRQ should be dropped if masked */
- irqmask <= irqtab[(i * IRQTAB_ENTSIZE) + IRQTAB_MASK][0];
+ irqmask <= irqtab[i * IRQTAB_ENTSIZE][8];
accept <= (irqmask == 1'b0 && notify == 1'b1);
if (irq_in[i] == 1'b1 && accept == 1'b1) begin
lineno <= i[7:0];