From 49299c00a91258f2eae7e3289e06702308160299 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 10 Feb 2021 15:31:25 +0800 Subject: [PATCH] eem: enable DCI for LVDS TTL --- artiq/gateware/eem.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/eem.py b/artiq/gateware/eem.py index 5615ff928..9a020c6ac 100644 --- a/artiq/gateware/eem.py +++ b/artiq/gateware/eem.py @@ -47,15 +47,16 @@ class DIO(_EEM): cls.add_extension(target, eem, iostandard=iostandard) phys = [] + dci = iostandard(eem).name == "LVDS" for i in range(4): pads = target.platform.request("dio{}".format(eem), i) - phy = ttl03_cls(pads.p, pads.n) + phy = ttl03_cls(pads.p, pads.n, dci=dci) phys.append(phy) target.submodules += phy target.rtio_channels.append(rtio.Channel.from_phy(phy)) for i in range(4): pads = target.platform.request("dio{}".format(eem), 4+i) - phy = ttl47_cls(pads.p, pads.n) + phy = ttl47_cls(pads.p, pads.n, dci=dci) phys.append(phy) target.submodules += phy target.rtio_channels.append(rtio.Channel.from_phy(phy))