forked from M-Labs/artiq
1
0
Fork 0

phaser: use qpll

This commit is contained in:
Florent Kermarrec 2016-10-10 17:05:42 +02:00
parent 5f7229ef92
commit c08caae171
1 changed files with 6 additions and 4 deletions

View File

@ -14,6 +14,7 @@ from migen.genlib.io import DifferentialInput
from jesd204b.common import (JESD204BTransportSettings, from jesd204b.common import (JESD204BTransportSettings,
JESD204BPhysicalSettings, JESD204BPhysicalSettings,
JESD204BSettings) JESD204BSettings)
from jesd204b.phy.gtx import GTXQuadPLL
from jesd204b.phy import JESD204BPhyTX from jesd204b.phy import JESD204BPhyTX
from jesd204b.core import JESD204BCoreTX from jesd204b.core import JESD204BCoreTX
from jesd204b.core import JESD204BCoreTXControl from jesd204b.core import JESD204BCoreTXControl
@ -460,11 +461,12 @@ class AD9154(Module, AutoCSR):
jesd_linerate = 5e9 jesd_linerate = 5e9
jesd_refclk_freq = 125e6 jesd_refclk_freq = 125e6
rtio_freq = 125*1000*1000 rtio_freq = 125*1000*1000
jesd_qpll = GTXQuadPLL(
rtio_crg.refclk, jesd_refclk_freq, jesd_linerate)
jesd_phys = [JESD204BPhyTX( jesd_phys = [JESD204BPhyTX(
rtio_crg.refclk, jesd_refclk_freq, jesd_qpll, platform.request("ad9154_jesd", i),
platform.request("ad9154_jesd", i), rtio_freq, i) for i in range(4)]
jesd_linerate, rtio_freq, i) for i in range(4)] self.submodules += jesd_qpll, jesd_phys
self.submodules += jesd_phys
for jesd_phy in jesd_phys: for jesd_phy in jesd_phys:
platform.add_period_constraint( platform.add_period_constraint(
jesd_phy.gtx.cd_tx.clk, jesd_phy.gtx.cd_tx.clk,