From 67f25f500aff78e4e83745dafb79555ac95c5c7b Mon Sep 17 00:00:00 2001 From: morgan Date: Fri, 20 Sep 2024 12:26:57 +0800 Subject: [PATCH] downconn GW: fix no k code into fifo --- src/gateware/cxp_downconn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gateware/cxp_downconn.py b/src/gateware/cxp_downconn.py index d0d26ef..3405b51 100644 --- a/src/gateware/cxp_downconn.py +++ b/src/gateware/cxp_downconn.py @@ -114,7 +114,7 @@ class CXP_DownConn_PHY(Module, AutoCSR): self.sync.cxp_gtx_rx += [ fifo_out.sink.stb.eq(0), # don't store idle word in fifo - If((gtx.rx_ready & fifo_out.sink.ack & (gtx.decoders[0].d != 0xBC) & (gtx.decoders[0].k != 1)), + 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.data[i*8:(i*8)+8].eq(gtx.decoders[i].d), fifo_out.sink.k[i].eq(gtx.decoders[i].k),