From 52bea11e256f0a1f8ceed3d5a31613f879c68c0a Mon Sep 17 00:00:00 2001 From: morgan Date: Tue, 14 Jan 2025 12:18:16 +0800 Subject: [PATCH] zc706 GW: update fn args --- src/gateware/zc706.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gateware/zc706.py b/src/gateware/zc706.py index a6429fd..9d6b983 100755 --- a/src/gateware/zc706.py +++ b/src/gateware/zc706.py @@ -708,17 +708,17 @@ class CXP_FMC(): cxp_csr_group = [] cxp_mem_group = [] cxp_downconns = [] - for i, (tx, rx) in enumerate(zip(cxp_phys.upconn.tx_phys, cxp_phys.downconn.rx_phys)): + for i, phy in enumerate(cxp_phys.phys): cxp_name = "cxp" + str(i) if i == 0: - cxp_interface = cxp.CXP_Master(tx, rx, debug_sma_pad, pmod_pads) + cxp_interface = cxp.CXP_Master(phy, debug_sma_pad, pmod_pads) # Add rtlink for Master Connection only print("CoaXPress at RTIO channel 0x{:06x}".format(len(rtio_channels))) rtio_channels.append(rtio.Channel.from_phy(cxp_interface)) else: - cxp_interface = cxp.CXP_Extension(tx, rx, debug_sma_pad, pmod_pads) + cxp_interface = cxp.CXP_Extension(phy, debug_sma_pad, pmod_pads) setattr(self.submodules, cxp_name, cxp_interface) self.csr_devices.append(cxp_name)