Loading files
package fpgatidbits.axi
import Chisel._
// Define simple extensions of the Chisel Decoupled interfaces,
// with signal renaming to support auto inference of AXI stream interfaces in Vivado
class AXIStreamMasterIF[T <: Data](gen: T) extends DecoupledIO(gen) {
def renameSignals(ifName: String) {
ready.setName(ifName + "_TREADY")
valid.setName(ifName + "_TVALID")
bits.setName(ifName + "_TDATA")
}
override def clone: this.type = { new AXIStreamMasterIF(gen).asInstanceOf[this.type]; }
}
class AXIStreamSlaveIF[T <: Data](gen: T) extends DecoupledIO(gen) {
flip()
def renameSignals(ifName: String) {
ready.setName(ifName + "_TREADY")
valid.setName(ifName + "_TVALID")
bits.setName(ifName + "_TDATA")
}
override def clone: this.type = { new AXIStreamSlaveIF(gen).asInstanceOf[this.type]; }
}
64b1747fdThis file is pinned to the selected release. Download the original to open it in your design tool.