From f8375eea5011aed858b5c3950c3c9740ec5502c8 Mon Sep 17 00:00:00 2001 From: Jiuyang Liu Date: Fri, 26 Jul 2024 14:12:32 +0800 Subject: [PATCH] fix tlb --- rocketv/src/TLB.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rocketv/src/TLB.scala b/rocketv/src/TLB.scala index b00b1de7d..3ea02f4f9 100644 --- a/rocketv/src/TLB.scala +++ b/rocketv/src/TLB.scala @@ -33,8 +33,7 @@ case class TLBParameter( paddrBits: Int, isITLB: Boolean ) extends SerializableModuleParameter { - - require(nWays != nSectors, "some random limitation to be figure out.") + require(nWays > nSectors, s"nWays: ${nWays} > nSectors: ${nSectors}") // D$: log2Ceil(coreDataBytes), I$: log2Ceil(fetchBytes) def lgMaxSize = log2Ceil(xLen / 8)