diff --git a/hardware/src/mempool_pkg.sv b/hardware/src/mempool_pkg.sv index 5096c5cb..4f6c43e3 100644 --- a/hardware/src/mempool_pkg.sv +++ b/hardware/src/mempool_pkg.sv @@ -161,7 +161,7 @@ package mempool_pkg; ***********************/ localparam int unsigned ICacheSizeByte = 512 * NumCoresPerCache; // Total Size of instruction cache in bytes - localparam int unsigned ICacheSets = NumCoresPerCache / 2; // Number of sets + localparam int unsigned ICacheSets = (NumCoresPerCache == 2) ? 2 : NumCoresPerCache / 2; // Number of sets localparam int unsigned ICacheLineWidth = 32 * 2 * NumCoresPerCache; // Size of each cache line in bits /*********************