From 9ce623392697b45a75e168b782699128fc892740 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 7 Aug 2018 19:28:40 +0800 Subject: [PATCH] kasli: fix SYSU TTL directions --- artiq/examples/kasli_basic/device_db_sysu.py | 2 +- artiq/gateware/targets/kasli.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/artiq/examples/kasli_basic/device_db_sysu.py b/artiq/examples/kasli_basic/device_db_sysu.py index bd1de2c82..e5e71b9d9 100644 --- a/artiq/examples/kasli_basic/device_db_sysu.py +++ b/artiq/examples/kasli_basic/device_db_sysu.py @@ -42,7 +42,7 @@ for i in range(40): device_db["ttl" + str(i)] = { "type": "local", "module": "artiq.coredevice.ttl", - "class": "TTLInOut" if i < 4 else "TTLOut", + "class": "TTLInOut" if i < 16 else "TTLOut", "arguments": {"channel": i}, } diff --git a/artiq/gateware/targets/kasli.py b/artiq/gateware/targets/kasli.py index 091ed573d..883997f9f 100755 --- a/artiq/gateware/targets/kasli.py +++ b/artiq/gateware/targets/kasli.py @@ -246,8 +246,10 @@ class SYSU(_StandaloneBase): self.rtio_channels = [] eem.DIO.add_std(self, 2, - ttl_serdes_7series.InOut_8X, ttl_serdes_7series.Output_8X) - for i in range(3, 7): + ttl_serdes_7series.InOut_8X, ttl_serdes_7series.InOut_8X) + eem.DIO.add_std(self, 3, + ttl_serdes_7series.InOut_8X, ttl_serdes_7series.InOut_8X) + for i in range(4, 7): eem.DIO.add_std(self, i, ttl_serdes_7series.Output_8X, ttl_serdes_7series.Output_8X) eem.Urukul.add_std(self, 1, 0, ttl_serdes_7series.Output_8X)