From f87530b81b4a3067657d21c996c5605386a270d3 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)