From 2d1f1fff7fa9ab6d525f9089135c5282b3a707b6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 8 Jul 2020 18:14:44 +0800 Subject: [PATCH] kasli_generic: do not attempt to use SFP LED for RTIO on 2.0+ --- artiq/gateware/targets/kasli_generic.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/artiq/gateware/targets/kasli_generic.py b/artiq/gateware/targets/kasli_generic.py index a3e03ef7b..bae599ed9 100755 --- a/artiq/gateware/targets/kasli_generic.py +++ b/artiq/gateware/targets/kasli_generic.py @@ -153,12 +153,13 @@ class GenericStandalone(StandaloneBase): self.rtio_channels = [] add_peripherals(self, description["peripherals"]) - for i in (1, 2): - print("SFP LED at RTIO channel 0x{:06x}".format(len(self.rtio_channels))) - sfp_ctl = self.platform.request("sfp_ctl", i) - phy = ttl_simple.Output(sfp_ctl.led) - self.submodules += phy - self.rtio_channels.append(rtio.Channel.from_phy(phy)) + if hw_rev in ("v1.0", "v1.1"): + for i in (1, 2): + print("SFP LED at RTIO channel 0x{:06x}".format(len(self.rtio_channels))) + sfp_ctl = self.platform.request("sfp_ctl", i) + phy = ttl_simple.Output(sfp_ctl.led) + self.submodules += phy + self.rtio_channels.append(rtio.Channel.from_phy(phy)) self.config["HAS_RTIO_LOG"] = None self.config["RTIO_LOG_CHANNEL"] = len(self.rtio_channels)