From 852123b42ac99fe2e78328b1acfa5c6ef7c6b2dd Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 30 May 2021 20:40:53 +0800 Subject: [PATCH] kasli-soc: add RTIO LEDs --- src/gateware/kasli_soc.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gateware/kasli_soc.py b/src/gateware/kasli_soc.py index 3169eaed..a5cd3545 100755 --- a/src/gateware/kasli_soc.py +++ b/src/gateware/kasli_soc.py @@ -14,6 +14,7 @@ from misoc.integration import cpu_interface from artiq.coredevice import jsondesc from artiq.gateware import rtio, eem_7series +from artiq.gateware.rtio.phy import ttl_simple import dma import analyzer @@ -111,6 +112,12 @@ class GenericStandalone(SoCCore): if has_grabber: self.grabber_csr_group = [] eem_7series.add_peripherals(self, description["peripherals"], iostandard=eem_iostandard) + for i in (0, 1): + print("USER LED at RTIO channel 0x{:06x}".format(len(self.rtio_channels))) + user_led = self.platform.request("user_led", i) + phy = ttl_simple.Output(user_led) + self.submodules += phy + self.rtio_channels.append(rtio.Channel.from_phy(phy)) self.config["RTIO_LOG_CHANNEL"] = len(self.rtio_channels) self.rtio_channels.append(rtio.LogChannel())