接收数据流解耦初步测试成功

This commit is contained in:
RuigeLee
2023-10-18 17:11:56 +08:00
parent 629d9486d1
commit d77c69aa5a
3 changed files with 1359 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ abstract class MacTileLinkBase() extends Module{
rxBuff.io.enq.data.bits := io.RxDataLatched2_rxclk rxBuff.io.enq.data.bits := io.RxDataLatched2_rxclk
rxBuff.io.enq.data.valid := WriteRxDataToFifoSyncPluse rxBuff.io.enq.data.valid := WriteRxDataToFifoSyncPluse
assert( (~rxBuff.io.enq.data.valid & ~rxBuff.io.enq.data.ready), "Assert Failed, rx overrun!" ) assert( ~(rxBuff.io.enq.data.valid & ~rxBuff.io.enq.data.ready), "Assert Failed, rx overrun!" )
@@ -258,6 +258,7 @@ class MacTileLink() extends MacTileLinkBase(){
rxBuff.io.deq.data.ready := false.B rxBuff.io.deq.data.ready := false.B
rxBuff.io.deq.ctrl.ready := false.B rxBuff.io.deq.ctrl.ready := false.B
} }

View File

@@ -46,6 +46,10 @@ class RxBuff extends Module{
val pipoBuff = for( i <- 0 until 2 ) yield { Module(new Queue( UInt(32.W), 2048/4 )) } val pipoBuff = for( i <- 0 until 2 ) yield { Module(new Queue( UInt(32.W), 2048/4 )) }
val pipoInfo = for( i <- 0 until 2 ) yield { Reg(new Packet_Info_Bundle) } val pipoInfo = for( i <- 0 until 2 ) yield { Reg(new Packet_Info_Bundle) }
dontTouch(pipoBuff(0).io.enq)
dontTouch(pipoInfo(0))
dontTouch(pipoBuff(1).io.enq)
dontTouch(pipoInfo(1))
val recCnt = RegInit(0.U(3.W)) val recCnt = RegInit(0.U(3.W))

File diff suppressed because it is too large Load Diff