diff --git a/src/main/scala/rocket/ICache.scala b/src/main/scala/rocket/ICache.scala index c5b5cdd8..a922280a 100644 --- a/src/main/scala/rocket/ICache.scala +++ b/src/main/scala/rocket/ICache.scala @@ -294,7 +294,7 @@ class ICacheModule(outer: ICache) extends LazyModuleImp(outer) val enable = scratchpadWayValid(scratchpadWay(a.address)) when (!lineInScratchpad(scratchpadLine(a.address))) { scratchpadMax.get := scratchpadLine(a.address) - when (enable) { invalidate := true } + invalidate := true } scratchpadOn := enable }