Skip to content

Commit

Permalink
InterruptBus: Use IntName nodes in from/to
Browse files Browse the repository at this point in the history
  • Loading branch information
rmac-sifive committed Sep 18, 2020
1 parent 1c0fd83 commit ec33e64
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/scala/subsystem/InterruptBus.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ class InterruptBusWrapper(implicit p: Parameters) extends SimpleLazyModule with
val int_bus = LazyModule(new IntXbar)
private val int_in_xing = this.crossIn(int_bus.intnode)
private val int_out_xing = this.crossOut(int_bus.intnode)
def from(xing: ClockCrossingType) = int_in_xing(xing)
def to(xing: ClockCrossingType) = int_out_xing(xing)
def fromAsync: IntInwardNode = from(AsynchronousCrossing(8,3))
def fromRational: IntInwardNode = from(RationalCrossing())
def fromSync: IntInwardNode = from(SynchronousCrossing())
def toPLIC: IntOutwardNode = to(NoCrossing)
def from(name: Option[String])(xing: ClockCrossingType) = int_in_xing(xing) :=* IntNameNode(name)
def to(name: Option[String])(xing: ClockCrossingType) = IntNameNode(name) :*= int_out_xing(xing)
def fromAsync: IntInwardNode = from(None)(AsynchronousCrossing(8,3))
def fromRational: IntInwardNode = from(None)(RationalCrossing())
def fromSync: IntInwardNode = int_bus.intnode
def toPLIC: IntOutwardNode = int_bus.intnode
}

/** Specifies the number of external interrupts */
Expand Down

0 comments on commit ec33e64

Please sign in to comment.