Skip to content

Commit

Permalink
Update GroundTest to use generic BuildHellaCache key
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Dec 20, 2021
1 parent 330c2b8 commit b858f7e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/scala/groundtest/Tile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Chisel._
import freechips.rocketchip.config._
import freechips.rocketchip.diplomacy._
import freechips.rocketchip.interrupts._
import freechips.rocketchip.rocket.{DCache, ICacheParams, NonBlockingDCache, RocketCoreParams}
import freechips.rocketchip.rocket.{BuildHellaCache, ICacheParams, RocketCoreParams}
import freechips.rocketchip.tile._
import freechips.rocketchip.tilelink._

Expand Down Expand Up @@ -38,10 +38,7 @@ abstract class GroundTestTile(
val slaveNode: TLInwardNode = TLIdentityNode()
val statusNode = BundleBridgeSource(() => new GroundTestStatus)

val dcacheOpt = params.dcache.map { dc => LazyModule(
if (dc.nMSHRs == 0) new DCache(staticIdForMetadataUseOnly, crossing)
else new NonBlockingDCache(staticIdForMetadataUseOnly)
)}
val dcacheOpt = params.dcache.map { dc => LazyModule(p(BuildHellaCache)(this)(p)) }

dcacheOpt.foreach { _.hartIdSinkNodeOpt.foreach { _ := hartIdNexusNode } }

Expand Down

0 comments on commit b858f7e

Please sign in to comment.