diff --git a/src/gateware/cxp.py b/src/gateware/cxp.py index 053c169..56837ad 100644 --- a/src/gateware/cxp.py +++ b/src/gateware/cxp.py @@ -6,15 +6,15 @@ from cxp_downconn import CXP_DownConn from cxp_upconn import CXP_UpConn class CXP(Module, AutoCSR): - def __init__(self, refclk, pads, sys_clk_freq, debug_sma, pmod_pads): + def __init__(self, refclk, downconn_pads, upconn_pads, sys_clk_freq, debug_sma, pmod_pads): self.submodules.crc = CXP_CRC(8) # FIFOs with transmission priority # 0: Trigger packet # 1: IO acknowledgment for trigger packet # 2: All other packets - self.submodules.upconn = CXP_UpConn(debug_sma, sys_clk_freq, pmod_pads) + self.submodules.upconn = CXP_UpConn(upconn_pads, sys_clk_freq, debug_sma, pmod_pads) - self.submodules.downconn = CXP_DownConn(refclk, pads, sys_clk_freq, debug_sma, pmod_pads) + self.submodules.downconn = CXP_DownConn(refclk, downconn_pads, sys_clk_freq, debug_sma, pmod_pads) class CXP_CRC(Module, AutoCSR):