Skip to content

Commit c237782

Browse files
committed
uart: UARTDesignInput has clockNode
1 parent 14749cb commit c237782

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/scala/shell/UARTOverlay.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ import freechips.rocketchip.config._
77
import freechips.rocketchip.diplomacy._
88
import sifive.blocks.devices.uart._
99
import freechips.rocketchip.subsystem.{BaseSubsystem, PeripheryBus, PeripheryBusKey}
10+
import freechips.rocketchip.prci._
1011
import freechips.rocketchip.tilelink.TLBusWrapper
1112
import freechips.rocketchip.interrupts.IntInwardNode
1213

1314
//dont make the controller here
1415
//move flowcontrol to shell input??
1516
case class UARTShellInput()
16-
case class UARTDesignInput(uartParams: UARTParams, divInit: Int, controlBus: TLBusWrapper, intNode: IntInwardNode)(implicit val p: Parameters)
17+
case class UARTDesignInput(uartParams: UARTParams, divInit: Int, controlBus: TLBusWrapper, intNode: IntInwardNode, clockNode: ClockGroupBroadcastNode)(implicit val p: Parameters)
1718
case class UARTOverlayOutput(uart: TLUART)
1819
case object UARTOverlayKey extends Field[Seq[DesignPlacer[UARTDesignInput, UARTShellInput, UARTOverlayOutput]]](Nil)
1920
trait UARTShellPlacer[Shell] extends ShellPlacer[UARTDesignInput, UARTShellInput, UARTOverlayOutput]
@@ -37,7 +38,7 @@ abstract class UARTPlacedOverlay(
3738

3839
def ioFactory = new ShellUARTPortIO(flowControl)
3940

40-
val tluart = UART.attach(UARTAttachParams(di.uartParams, di.divInit, di.controlBus, di.intNode))
41+
val tluart = UART.attach(UARTAttachParams(di.uartParams, di.divInit, di.controlBus, di.intNode, di.clockNode))
4142
val tluartSink = tluart.ioNode.makeSink
4243
val uartSource = BundleBridgeSource(() => new UARTPortIO())
4344
val uartSink = shell { uartSource.makeSink }

0 commit comments

Comments
 (0)