Skip to content

Commit

Permalink
Merge pull request #3693 from chipsalliance/rocket-rational-cdcs
Browse files Browse the repository at this point in the history
Support either rational direction for rocket rational CDCs
  • Loading branch information
jerryz123 authored Oct 30, 2024
2 parents 0a9a921 + f882674 commit ea7bb3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/rocket/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.chipsalliance.diplomacy.lazymodule._
import freechips.rocketchip.prci.{SynchronousCrossing, AsynchronousCrossing, RationalCrossing, ClockCrossingType}
import freechips.rocketchip.subsystem.{TilesLocated, NumTiles, HierarchicalLocation, RocketCrossingParams, SystemBusKey, CacheBlockBytes, RocketTileAttachParams, InSubsystem, InCluster, HierarchicalElementMasterPortParams, HierarchicalElementSlavePortParams, CBUS, CCBUS, ClustersLocated, TileAttachConfig, CloneTileAttachParams}
import freechips.rocketchip.tile.{RocketTileParams, RocketTileBoundaryBufferParams, FPUParams}
import freechips.rocketchip.util.{RationalDirection, Flexible}
import scala.reflect.ClassTag

// All the user-level bells and whistles
Expand Down Expand Up @@ -308,7 +309,7 @@ class WithCDC(crossingType: ClockCrossingType = SynchronousCrossing()) extends R
class WithSeperateClockReset extends RocketCrossingConfig(_.copy(forceSeparateClockReset = true))
class WithSynchronousCDCs extends WithCDC(SynchronousCrossing())
class WithAsynchronousCDCs(depth: Int, sync: Int) extends WithCDC(AsynchronousCrossing(depth, sync))
class WithRationalCDCs extends WithCDC(RationalCrossing())
class WithRationalCDCs(direction: RationalDirection = Flexible) extends WithCDC(RationalCrossing(direction))



Expand Down

0 comments on commit ea7bb3a

Please sign in to comment.