PMP checker size check to avoid spurious warnings

This commit is contained in:
David Harris 2023-02-19 16:08:23 -08:00
parent 342791081a
commit 5b8d1e4134

View File

@ -57,6 +57,7 @@ module pmpchecker (
logic [`PMP_ENTRIES-1:0] L, X, W, R; // PMP matches and has flag set
logic [`PMP_ENTRIES-1:0] PAgePMPAdr; // for TOR PMP matching, PhysicalAddress > PMPAdr[i]
if (`PMP_ENTRIES > 0)
pmpadrdec pmpadrdecs[`PMP_ENTRIES-1:0](
.PhysicalAddress,
.PMPCfg(PMPCFG_ARRAY_REGW),