1
0
Fork 0

zc706: add USER LED to allow compilation

This commit is contained in:
morgan 2024-06-03 17:01:08 +08:00
parent d61d7a5a95
commit f5c604bbb5
1 changed files with 15 additions and 0 deletions

View File

@ -656,6 +656,21 @@ class _CXP_FMC_RTIO():
def __init__(self): def __init__(self):
platform = self.platform platform = self.platform
platform.add_extension(coaxpress_4r.fmc_adapter_io) 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): class NIST_CLOCK(ZC706, _NIST_CLOCK_RTIO):
def __init__(self, acpki, drtio100mhz): def __init__(self, acpki, drtio100mhz):