Skip to content

Commit

Permalink
Relax master parameter of RocketCrossingParams
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmithsf committed Sep 10, 2020
1 parent 09c2455 commit 86e5fa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/scala/subsystem/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ class WithBufferlessBroadcastHub extends Config((site, here, up) => {
*/
class WithIncoherentTiles extends Config((site, here, up) => {
case RocketCrossingKey => up(RocketCrossingKey, site) map { r =>
r.copy(master = r.master.copy(cork = Some(true)))
r.copy(master = r.master match {
case x: TileMasterPortParams => x.copy(cork = Some(true))
case _ => r.master
})
}
case BankedL2Key => up(BankedL2Key, site).copy(
coherenceManager = CoherenceManagerWrapper.incoherentManager
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/subsystem/RocketSubsystem.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import freechips.rocketchip.tile._

case class RocketCrossingParams(
crossingType: ClockCrossingType = SynchronousCrossing(),
master: TileMasterPortParams = TileMasterPortParams(),
master: TilePortParamsLike = TileMasterPortParams(),
slave: TileSlavePortParams = TileSlavePortParams(),
mmioBaseAddressPrefixWhere: TLBusWrapperLocation = CBUS,
stretchResetCycles: Option[Int] = None
Expand Down

0 comments on commit 86e5fa8

Please sign in to comment.