新主站发送逻辑
This commit is contained in:
29
src/main/scala/backBoard/ebus/Axis8toN.scala.bk
Normal file
29
src/main/scala/backBoard/ebus/Axis8toN.scala.bk
Normal file
@@ -0,0 +1,29 @@
|
||||
package BACK
|
||||
|
||||
import chisel3._
|
||||
import chisel3.util._
|
||||
|
||||
|
||||
class Axis8toNIO_Bundle(dw: Int) extends Bundle{
|
||||
val enq = Flipped(Decoupled(new AxisNto8IO_Bundle(8)))
|
||||
val deq = Decoupled(new AxisNto8IO_Bundle(dw))
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Axis8toN(dw: Int) extends Module{
|
||||
|
||||
require( dw == 16 | dw == 32 | dw == 64 )
|
||||
assert( io.deq.ready === true.B )
|
||||
|
||||
val io: Axis8toNIO_Bundle = IO(new Axis8toNIO_Bundle(dw))
|
||||
|
||||
val cnt = RegInit( 0.U( log2Ceil(dw/8).W ) )
|
||||
|
||||
val fifo = Reg( new AxisNto8IO_Bundle(dw) )
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user