chisel3-axi
chisel3-axi copied to clipboard
how to run this program
Hello, how to run this program?
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.