From 0f7e995055f84f2fe44b18bb02e65e9daf8ecc8d Mon Sep 17 00:00:00 2001 From: bbracker Date: Thu, 31 Mar 2022 13:46:24 -0700 Subject: [PATCH] simplify plic logic --- pipelined/src/uncore/plic.sv | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pipelined/src/uncore/plic.sv b/pipelined/src/uncore/plic.sv index 4db7e8a0..082664dd 100644 --- a/pipelined/src/uncore/plic.sv +++ b/pipelined/src/uncore/plic.sv @@ -176,11 +176,7 @@ module plic ( end // pending interrupt requests - assign nextIntPending = - (intPending | // existing pending requests - (requests & ~intInProgress)) & // assert new requests (if they aren't already being serviced) - ~({`N{((entry == 24'h200004) & memread)}} << (intClaim[0]-1)) & // deassert requests that just completed - ~({`N{((entry == 24'h201004) & memread)}} << (intClaim[1]-1)); + assign nextIntPending = (intPending | requests) & ~intInProgress; flopr #(`N) intPendingFlop(HCLK,~HRESETn,nextIntPending,intPending); // context-dependent signals