From f4c018a11f9c25f89179af81871aa9b512fab0d5 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 3 Aug 2024 12:31:48 -0400 Subject: soc: pimc: Silence warnings Signed-off-by: Ian Moffett --- sv/soc/irq/pimc.sv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sv/soc/irq') 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 -- cgit v1.2.3