From 97b940fb0a3ef337ddc66c7d57d5a08fe38bbc42 Mon Sep 17 00:00:00 2001 From: morgan Date: Mon, 16 Sep 2024 12:58:58 +0800 Subject: [PATCH] cxp GW: add debug pipeline for downconn --- src/gateware/cxp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gateware/cxp.py b/src/gateware/cxp.py index fa324e5..5adf5cd 100644 --- a/src/gateware/cxp.py +++ b/src/gateware/cxp.py @@ -30,8 +30,11 @@ class DownConn_Interface(Module, AutoCSR): self.submodules.conv = conv = stream.StrideConverter(upconn_layout, downconn_layout, reverse=True) self.submodules.debug_out = debug_out = RX_Debug_Buffer() - rx_pipeline = [debug_src, conv, debug_out] + tx_pipeline = [debug_src, conv, phy.sinks[0]] + for s, d in zip(tx_pipeline, tx_pipeline[1:]): + self.comb += s.source.connect(d.sink) + rx_pipeline = [phy.sources[0], debug_out] for s, d in zip(rx_pipeline, rx_pipeline[1:]): self.comb += s.source.connect(d.sink)