From d2a42f4001a10d001b5c0a8d95cfd39a12d7a5cf 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 b00b1de7dd..3ea02f4f91 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)