From 82831a85b6a4a27983f19ff73bf60fbf66f9b247 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 7 Mar 2018 18:50:39 +0000 Subject: [PATCH] kasli/opticlock: add eem6 phys --- artiq/gateware/targets/kasli.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/artiq/gateware/targets/kasli.py b/artiq/gateware/targets/kasli.py index 05542e817..920af19fb 100755 --- a/artiq/gateware/targets/kasli.py +++ b/artiq/gateware/targets/kasli.py @@ -305,6 +305,20 @@ class Opticlock(_StandaloneBase): self.submodules += phy rtio_channels.append(rtio.Channel.from_phy(phy)) + phy = spi2.SPIMaster(self.platform.request("eem6_spi_p"), + self.platform.request("eem6_spi_n")) + self.submodules += phy + rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=4)) + + for signal in "io_update".split(): + pads = platform.request("eem6_{}".format(signal)) + phy = ttl_serdes_7series.Output_8X(pads.p, pads.n) + self.submodules += phy + rtio_channels.append(rtio.Channel.from_phy(phy)) + + pads = platform.request("eem6_dds_reset") + self.specials += DifferentialOutput(0, pads.p, pads.n) + self.config["HAS_RTIO_LOG"] = None self.config["RTIO_LOG_CHANNEL"] = len(rtio_channels) rtio_channels.append(rtio.LogChannel())