2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-19 00:16:29 +08:00

phaser: use new jesd clocking

This commit is contained in:
Florent Kermarrec 2016-10-13 11:51:06 +02:00
parent 81511feab8
commit af0e8582a2

View File

@ -466,10 +466,13 @@ class AD9154(Module, AutoCSR):
rtio_freq = 125*1000*1000
jesd_qpll = GTXQuadPLL(
rtio_crg.refclk, jesd_refclk_freq, jesd_linerate)
jesd_phys = [JESD204BPhyTX(
jesd_qpll, platform.request("ad9154_jesd", i),
rtio_freq, i) for i in range(4)]
self.submodules += jesd_qpll, jesd_phys
self.submodules += jesd_qpll
jesd_phys = []
for i in range(4):
jesd_phy = [JESD204BPhyTX(jesd_qpll,
platform.request("ad9154_jesd", i), rtio_freq)
jesd_phys.append(jesd_phy)
setattr(self.submodules, "jesd_phy"+str(i), jesd_phy)
for jesd_phy in jesd_phys:
platform.add_period_constraint(
jesd_phy.gtx.cd_tx.clk,