From 386aa75aaaa1d7813fb3ba688420f5e7eb1b9a74 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 27 Feb 2018 23:18:18 +0800 Subject: [PATCH] kasli: control SFP1 and SFP2 LEDs in DRTIO satellite to match master --- artiq/gateware/targets/kasli.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/artiq/gateware/targets/kasli.py b/artiq/gateware/targets/kasli.py index 9e5aa0281..5855664d3 100755 --- a/artiq/gateware/targets/kasli.py +++ b/artiq/gateware/targets/kasli.py @@ -465,9 +465,10 @@ class Satellite(BaseSoC): phy = ttl_simple.Output(platform.request("user_led", 0)) self.submodules += phy rtio_channels.append(rtio.Channel.from_phy(phy)) - phy = ttl_simple.Output(platform.request("sfp_ctl", 1).led) - self.submodules += phy - rtio_channels.append(rtio.Channel.from_phy(phy)) + for i in range(1, 3): + phy = ttl_simple.Output(platform.request("sfp_ctl", i).led) + self.submodules += phy + rtio_channels.append(rtio.Channel.from_phy(phy)) self.submodules.rtio_moninj = rtio.MonInj(rtio_channels) self.csr_devices.append("rtio_moninj")