forked from M-Labs/artiq-zynq
zc706 GW: update fn args
This commit is contained in:
parent
a5d5471734
commit
52bea11e25
@ -708,17 +708,17 @@ class CXP_FMC():
|
|||||||
cxp_csr_group = []
|
cxp_csr_group = []
|
||||||
cxp_mem_group = []
|
cxp_mem_group = []
|
||||||
cxp_downconns = []
|
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)
|
cxp_name = "cxp" + str(i)
|
||||||
|
|
||||||
if i == 0:
|
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
|
# Add rtlink for Master Connection only
|
||||||
print("CoaXPress at RTIO channel 0x{:06x}".format(len(rtio_channels)))
|
print("CoaXPress at RTIO channel 0x{:06x}".format(len(rtio_channels)))
|
||||||
rtio_channels.append(rtio.Channel.from_phy(cxp_interface))
|
rtio_channels.append(rtio.Channel.from_phy(cxp_interface))
|
||||||
else:
|
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)
|
setattr(self.submodules, cxp_name, cxp_interface)
|
||||||
self.csr_devices.append(cxp_name)
|
self.csr_devices.append(cxp_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user