1
0
Fork 0

downconn GW: fix not comma data are discarded

This commit is contained in:
morgan 2024-09-20 10:51:32 +08:00
parent 47b6dcf973
commit 4df4db5287
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class CXP_DownConn_PHY(Module, AutoCSR):
self.sync.cxp_gtx_rx += [ self.sync.cxp_gtx_rx += [
fifo_out.sink.stb.eq(0), fifo_out.sink.stb.eq(0),
# don't store idle word in fifo # don't store idle word in fifo
If(gtx.rx_ready & fifo_out.sink.ack & (gtx.decoders[0].d != 0xBC), If((gtx.rx_ready & fifo_out.sink.ack & (gtx.decoders[0].d != 0xBC) & (gtx.decoders[0].k != 1)),
fifo_out.sink.stb.eq(1), fifo_out.sink.stb.eq(1),
fifo_out.sink.data[i*8:(i*8)+8].eq(gtx.decoders[i].d), fifo_out.sink.data[i*8:(i*8)+8].eq(gtx.decoders[i].d),
fifo_out.sink.k[i].eq(gtx.decoders[i].k), fifo_out.sink.k[i].eq(gtx.decoders[i].k),