Skip to content

[WIP] device clocks are driven from clockNodes #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/main/scala/shell/UARTOverlay.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import chisel3._
import chisel3.experimental.Analog
import freechips.rocketchip.config._
import freechips.rocketchip.diplomacy._
import freechips.rocketchip.subsystem.Attachable
import sifive.blocks.devices.uart._
import freechips.rocketchip.subsystem.{BaseSubsystem, PeripheryBus, PeripheryBusKey}
import freechips.rocketchip.tilelink.TLBusWrapper
import freechips.rocketchip.interrupts.IntInwardNode

//dont make the controller here
//move flowcontrol to shell input??
case class UARTShellInput()
case class UARTDesignInput(uartParams: UARTParams, divInit: Int, controlBus: TLBusWrapper, intNode: IntInwardNode)(implicit val p: Parameters)
case class UARTDesignInput(uartParams: UARTAttachParams, where: Attachable)(implicit val p: Parameters)
case class UARTOverlayOutput(uart: TLUART)
case object UARTOverlayKey extends Field[Seq[DesignPlacer[UARTDesignInput, UARTShellInput, UARTOverlayOutput]]](Nil)
trait UARTShellPlacer[Shell] extends ShellPlacer[UARTDesignInput, UARTShellInput, UARTOverlayOutput]
Expand All @@ -37,7 +35,7 @@ abstract class UARTPlacedOverlay(

def ioFactory = new ShellUARTPortIO(flowControl)

val tluart = UART.attach(UARTAttachParams(di.uartParams, di.divInit, di.controlBus, di.intNode))
val tluart = di.uartParams.attachTo(di.where)
val tluartSink = tluart.ioNode.makeSink
val uartSource = BundleBridgeSource(() => new UARTPortIO())
val uartSink = shell { uartSource.makeSink }
Expand Down