zc706 GW: update fn args

This commit is contained in:
morgan 2025-01-14 12:18:16 +08:00
parent a5d5471734
commit 52bea11e25

View File

@ -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)