Skip to content

Commit

Permalink
tile: BaseTile.traceAuxNode supplied default
Browse files Browse the repository at this point in the history
  • Loading branch information
hcook committed Jun 13, 2020
1 parent f3c02f2 commit bee7db8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/scala/tile/BaseTile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,13 @@ abstract class BaseTile private (val crossing: ClockCrossingType, q: Parameters)
traceNode := traceSourceNode

// Trace sideband signals into core
val traceAuxNode = BundleBridgeNexus[TraceAux]()
val traceAuxNode = BundleBridgeNexus[TraceAux](default = Some({
val aux = Wire(new TraceAux)
aux.stall := false.B
aux.enable := false.B
}))
val traceAuxSinkNode = BundleBridgeSink[TraceAux]()
val traceAuxDefaultNode = BundleBridgeSource(() => new TraceAux)
traceAuxSinkNode := traceAuxNode := traceAuxDefaultNode
traceAuxSinkNode := traceAuxNode

// Node for instruction trace conforming to RISC-V Processor Trace spec V1.0
val traceCoreSourceNode = BundleBridgeSource(() => new TraceCoreInterface(new TraceCoreParams()))
Expand Down Expand Up @@ -296,7 +299,4 @@ abstract class BaseTile private (val crossing: ClockCrossingType, q: Parameters)
this.suggestName(tileParams.name)
}

abstract class BaseTileModuleImp[+L <: BaseTile](val outer: L) extends LazyModuleImp(outer) with HasTileParameters {
outer.traceAuxDefaultNode.bundle.stall := false.B
outer.traceAuxDefaultNode.bundle.enable := false.B
}
abstract class BaseTileModuleImp[+L <: BaseTile](val outer: L) extends LazyModuleImp(outer) with HasTileParameters

0 comments on commit bee7db8

Please sign in to comment.