Skip to content
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

[WIP] Wishbone config #1

Open
wants to merge 2 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
16 changes: 8 additions & 8 deletions src/main/scala/DMAController/DMATop.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ import chisel3.util.Queue

class DMATop extends Module{
val io = IO(new Bundle{
val control = Flipped(new AXI4Lite(DMATop.controlAddrWidth, DMATop.controlDataWidth))
val read = Flipped(new AXIStream(DMATop.readDataWidth))
val write = new AXI4(DMATop.addrWidth, DMATop.writeDataWidth)
val control = new WishboneSlave(DMATop.controlAddrWidth, DMATop.controlDataWidth)
val read = new WishboneMaster(DMATop.addrWidth, DMATop.readDataWidth)
val write = new WishboneMaster(DMATop.addrWidth, DMATop.writeDataWidth)
val irq = new InterruptBundle
val sync = new SyncBundle
})

val csrFrontend = Module(new AXI4LiteCSR(DMATop.addrWidth))
val csrFrontend = Module(new WishboneCSR(DMATop.addrWidth))

val readerFrontend = Module(new AXIStreamSlave(DMATop.addrWidth, DMATop.readDataWidth))
val readerFrontend = Module(new WishboneClassicReader(DMATop.addrWidth, DMATop.readDataWidth))

val writerFrontend = Module(new AXI4Writer(DMATop.addrWidth, DMATop.writeDataWidth))
val writerFrontend = Module(new WishboneClassicWriter(DMATop.addrWidth, DMATop.writeDataWidth))

val csr = Module(new CSR(DMATop.addrWidth))

Expand Down Expand Up @@ -74,9 +74,9 @@ object DMATop {
val readDataWidth = 32
val writeDataWidth = 32
val readMaxBurst = 0
val writeMaxBurst = 256
val writeMaxBurst = 0
val reader4KBarrier = false
val writer4KBarrier = true
val writer4KBarrier = false

val controlDataWidth = 32
val controlAddrWidth = 32
Expand Down