Skip to content

Commit

Permalink
Merge pull request #2346 from chipsalliance/hierarchical-location
Browse files Browse the repository at this point in the history
Subsystem: Add HierarchicalLocation
  • Loading branch information
rmac-sifive authored Mar 21, 2020
2 parents 0086e6c + fa23fcb commit 19da215
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/scala/subsystem/BaseSubsystem.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ case object BuildSystemBus extends Field[Parameters => SystemBus](p => new Syste
case object SubsystemDriveAsyncClockGroupsKey extends Field[Option[ClockGroupDriverParameters]](Some(ClockGroupDriverParameters(1)))
case object AsyncClockGroupsKey extends Field[ClockGroupEphemeralNode](ClockGroupEphemeralNode()(ValName("async_clock_groups")))

class HierarchicalLocation(override val name: String) extends Location[LazyScope](name)
case object InTile extends HierarchicalLocation("InTile")
case object InSubsystem extends HierarchicalLocation("InSubsystem")
case object InSystem extends HierarchicalLocation("InSystem")

/** BareSubsystem is the root class for creating a subsystem */
abstract class BareSubsystem(implicit p: Parameters) extends LazyModule with BindingScope {
lazy val dts = DTS(bindingTree)
Expand Down

0 comments on commit 19da215

Please sign in to comment.