phaser: make sysref input only for timing

This commit is contained in:
Robert Jördens 2016-11-29 15:28:10 +01:00
parent 7816078d6b
commit 27160f5912
1 changed files with 4 additions and 3 deletions

View File

@ -22,7 +22,8 @@ from misoc.targets.kc705 import MiniSoC, soc_kc705_args, soc_kc705_argdict
from misoc.integration.builder import builder_args, builder_argdict from misoc.integration.builder import builder_args, builder_argdict
from artiq.gateware.soc import AMPSoC, build_artiq_soc from artiq.gateware.soc import AMPSoC, build_artiq_soc
from artiq.gateware import rtio, phaser from artiq.gateware import rtio
from artiq.gateware.phaser import fmc_adapter_io
from artiq.gateware.rtio.phy import (ttl_simple, ttl_serdes_7series, from artiq.gateware.rtio.phy import (ttl_simple, ttl_serdes_7series,
sawg) sawg)
from artiq import __version__ as artiq_version from artiq import __version__ as artiq_version
@ -172,7 +173,7 @@ class Phaser(MiniSoC, AMPSoC):
]) ])
platform = self.platform platform = self.platform
platform.add_extension(phaser.fmc_adapter_io) platform.add_extension(fmc_adapter_io)
self.submodules.leds = gpio.GPIOOut(Cat( self.submodules.leds = gpio.GPIOOut(Cat(
platform.request("user_led", 0), platform.request("user_led", 0),
@ -201,7 +202,7 @@ class Phaser(MiniSoC, AMPSoC):
rtio_channels.append(rtio.Channel.from_phy(phy)) rtio_channels.append(rtio.Channel.from_phy(phy))
sysref_pads = platform.request("ad9154_sysref") sysref_pads = platform.request("ad9154_sysref")
phy = ttl_serdes_7series.Inout_8X(sysref_pads.p, sysref_pads.n) phy = ttl_serdes_7series.Input_8X(sysref_pads.p, sysref_pads.n)
self.submodules += phy self.submodules += phy
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=32, rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=32,
ofifo_depth=2)) ofifo_depth=2))