From b725594a1dd2025cb0df7cbb943c1c75bd4f38d1 Mon Sep 17 00:00:00 2001 From: morgan Date: Wed, 11 Sep 2024 17:46:57 +0800 Subject: [PATCH] cxp GW: wrap gtxs into downconn interface --- src/gateware/cxp.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/gateware/cxp.py b/src/gateware/cxp.py index bb1e8eb..534a66e 100644 --- a/src/gateware/cxp.py +++ b/src/gateware/cxp.py @@ -10,11 +10,20 @@ class CXP(Module, AutoCSR): def __init__(self, refclk, downconn_pads, upconn_pads, sys_clk_freq, debug_sma, pmod_pads): self.submodules.upconn = UpConn_Interface(upconn_pads, sys_clk_freq, debug_sma, pmod_pads) - self.submodules.downconn = CXP_DownConn_PHY(refclk, downconn_pads, sys_clk_freq, debug_sma, pmod_pads) + self.submodules.downconn = DownConn_Interface(refclk, downconn_pads, sys_clk_freq, debug_sma, pmod_pads) # TODO: support the option high speed upconn # TODO: add link layer +class DownConn_Interface(Module, AutoCSR): + def __init__(self, refclk, downconn_pads, sys_clk_freq, debug_sma, pmod_pads): + + # # # + + self.submodules.phy = phy = CXP_DownConn_PHY(refclk, downconn_pads, sys_clk_freq, debug_sma, pmod_pads) + self.gtxs = phy.gtxs + + class UpConn_Interface(Module, AutoCSR): def __init__(self, upconn_pads, sys_clk_freq, debug_sma, pmod_pads):