From f5c604bbb554234d65e8dca63c7ecafd8c4a6d04 Mon Sep 17 00:00:00 2001 From: morgan Date: Mon, 3 Jun 2024 17:01:08 +0800 Subject: [PATCH] zc706: add USER LED to allow compilation --- src/gateware/zc706.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/gateware/zc706.py b/src/gateware/zc706.py index 3b304d9..d1ad658 100755 --- a/src/gateware/zc706.py +++ b/src/gateware/zc706.py @@ -656,6 +656,21 @@ class _CXP_FMC_RTIO(): def __init__(self): platform = self.platform platform.add_extension(coaxpress_4r.fmc_adapter_io) + platform.add_extension(leds_fmc33) + + rtio_channels = [] + # FIXME remove this placeholder RTIO channel + # There are too few RTIO channels and cannot be compiled (adr width issue of the lane distributor) + # see https://github.com/m-labs/artiq/pull/2158 for similar issue + print("USER LED at RTIO channel 0x{:06x}".format(len(rtio_channels))) + phy = ttl_simple.Output(self.platform.request("user_led_33", 0)) + self.submodules += phy + rtio_channels.append(rtio.Channel.from_phy(phy)) + self.config["HAS_RTIO_LOG"] = None + rtio_channels.append(rtio.LogChannel()) + + self.config["RTIO_LOG_CHANNEL"] = len(rtio_channels) + self.add_rtio(rtio_channels) class NIST_CLOCK(ZC706, _NIST_CLOCK_RTIO): def __init__(self, acpki, drtio100mhz):