chisel3-axi icon indicating copy to clipboard operation
chisel3-axi copied to clipboard

how to run this program

Open shengbintai opened this issue 5 years ago • 2 comments

Hello, how to run this program?

shengbintai avatar Jun 10 '19 04:06 shengbintai

It's a library, so you'll want to include "edu.berkeley.cs" %% "chisel3-axi" % "0.1.0-SNAPSHOT" in your libraryDepednenncies. Then you can use some of the classes in your io. For instance,

  val io = IO(new Bundle {
    val ctrl = AxiLiteSlave(log2Ceil(NumCtrlRegs * CtrlBusBytes), CtrlBusWidth)
    val m = AxiMaster(dmaAddrWidth, dmaDataWidth)
    val sm = AxiStreamMaster(dmaDataWidth)
    val ss = AxiStreamSlave(dmaDataWidth)
  })

  // these will assign the AXI default values to the optional signals
  io.m.initDefault
  io.sm.bits.initDefault

You can connect up the other inputs/outputs as per usual.

nhynes avatar Jun 10 '19 05:06 nhynes