summaryrefslogtreecommitdiff
path: root/sv/soc/irq
diff options
context:
space:
mode:
Diffstat (limited to 'sv/soc/irq')
-rw-r--r--sv/soc/irq/pimc.sv6
1 files changed, 3 insertions, 3 deletions
diff --git a/sv/soc/irq/pimc.sv b/sv/soc/irq/pimc.sv
index 08733d6..43d7637 100644
--- a/sv/soc/irq/pimc.sv
+++ b/sv/soc/irq/pimc.sv
@@ -66,12 +66,12 @@ 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];
+ irqmask <= irqtab[(i * IRQTAB_ENTSIZE) + IRQTAB_MASK][0];
accept <= (irqmask == 1'b0 && notify == 1'b1);
if (irq_in[i] == 1'b1 && accept == 1'b1) begin
- lineno <= i;
+ lineno <= i[7:0];
notify <= 1'b0;
- processor_id <= irqtab[i * IRQTAB_ENTSIZE];
+ processor_id <= irqtab[i * IRQTAB_ENTSIZE][7:0];
end
end
end