File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ class Difftest2AXIs(val difftest_width: Int, val axis_width: Int) extends Module
7070 val rd_occupancy = wr_cnt_sync - rd_cnt // Calculate occupancy in read clock domain
7171
7272 val inTransfer = RegInit (false .B )
73- val packetBeats = RegInit (VecInit (Seq .fill(axis_send_len)(0 .U (axis_width.W ))))
7473 val sendCnt = RegInit (0 .U (log2Ceil(axis_send_len).W ))
7574 val sendLast = sendCnt === (axis_send_len - 1 ).U
7675 val counter = RegInit (0 .U (3 .W )) // 0 to 7
@@ -90,7 +89,6 @@ class Difftest2AXIs(val difftest_width: Int, val axis_width: Int) extends Module
9089
9190 // Start transfer when we have data available
9291 when(loadNextPacket) {
93- packetBeats := packetPayloadBeats
9492 rd_ptr := rd_ptr + 1 .U
9593 rd_cnt := rd_cnt + 1 .U // Increment read counter
9694 }
@@ -118,7 +116,7 @@ class Difftest2AXIs(val difftest_width: Int, val axis_width: Int) extends Module
118116
119117 // AXI output
120118 io.axis.valid := inTransfer
121- io.axis.bits.data := packetBeats (sendCnt)
119+ io.axis.bits.data := packetPayloadBeats (sendCnt)
122120 io.axis.bits.last := inTransfer && sendLast && sendPacketEnd
123121 }
124122}
You can’t perform that action at this time.
0 commit comments