summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-08-03 12:31:48 -0400
committerIan Moffett <ian@osmora.org>2024-08-03 12:31:48 -0400
commitf4c018a11f9c25f89179af81871aa9b512fab0d5 (patch)
tree58b16193ebcfbee94b06dded86b635081f30940b
parent499997a1619635de9e27e8a9455347f39028c923 (diff)
soc: pimc: Silence warnings
Signed-off-by: Ian Moffett <ian@osmora.org>
-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