Skip to content

Commit 2fca3fc

Browse files
committed
Bump inclusive LLC for sbus-cbus clocking fix
See chipsalliance/rocket-chip-inclusive-cache#42.
1 parent 2e88e07 commit 2fca3fc

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

generators/chipyard/src/main/scala/config/fragments/SubsystemFragments.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ class WithInclusiveCacheExteriorBuffer(buffer: InclusiveCachePortParameters = In
3232
case InclusiveCacheKey => up(InclusiveCacheKey).copy(bufInnerExterior=buffer, bufOuterExterior=buffer)
3333
})
3434

35+
// Customize the control crossing of the inclusive LLC. The LLC runs on the sbus domain, and the
36+
// two control ports are driven by the cbus. Defaults to whatever crossing is already configured
37+
// between sbus and cbus.
38+
class WithInclusiveCacheCtrlCrossingType(xType: Option[ClockCrossingType] = None) extends Config((site, here, up) => {
39+
case InclusiveCacheKey => up(InclusiveCacheKey).copy(ctrlXType = xType.getOrElse(site(SbusToCbusXTypeKey)))
40+
})
41+
3542
/** Use asynchronous reset for Rocket Chip's Debug Module. */
3643
class WithAsyncResetRocketSubsystem extends Config((_, _, _) => {
3744
case SubsystemResetSchemeKey => ResetAsynchronous

0 commit comments

Comments
 (0)