From 60d3bc63a75805b69f8a030fedde57864ef9b348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Thu, 1 Nov 2018 11:55:11 +0000 Subject: [PATCH] ptb: back out urukul-sync MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... for backwards compatibility. Signed-off-by: Robert Jördens --- artiq/examples/kasli_basic/device_db_ptb.py | 37 +++++++-------------- artiq/gateware/targets/kasli.py | 6 ++-- 2 files changed, 14 insertions(+), 29 deletions(-) diff --git a/artiq/examples/kasli_basic/device_db_ptb.py b/artiq/examples/kasli_basic/device_db_ptb.py index a3c64bba7..cc04d1090 100644 --- a/artiq/examples/kasli_basic/device_db_ptb.py +++ b/artiq/examples/kasli_basic/device_db_ptb.py @@ -87,41 +87,35 @@ device_db.update({ "class": "SPIMaster", "arguments": {"channel": 27} }, - "ttl_urukul0_sync": { - "type": "local", - "module": "artiq.coredevice.ttl", - "class": "TTLClockGen", - "arguments": {"channel": 28, "acc_width": 4} - }, "ttl_urukul0_io_update": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 29} + "arguments": {"channel": 28} }, "ttl_urukul0_sw0": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 30} + "arguments": {"channel": 29} }, "ttl_urukul0_sw1": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 31} + "arguments": {"channel": 30} }, "ttl_urukul0_sw2": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 32} + "arguments": {"channel": 31} }, "ttl_urukul0_sw3": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 33} + "arguments": {"channel": 32} }, "urukul0_cpld": { "type": "local", @@ -130,7 +124,6 @@ device_db.update({ "arguments": { "spi_device": "spi_urukul0", "io_update_device": "ttl_urukul0_io_update", - "sync_device": "ttl_urukul0_sync", "refclk": 100e6, "clk_sel": 0 } @@ -157,19 +150,13 @@ device_db.update({ "type": "local", "module": "artiq.coredevice.spi2", "class": "SPIMaster", - "arguments": {"channel": 34} - }, - "ttl_urukul1_sync": { - "type": "local", - "module": "artiq.coredevice.ttl", - "class": "TTLClockGen", - "arguments": {"channel": 35, "acc_width": 4} + "arguments": {"channel": 33} }, "ttl_urukul1_io_update": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 36} + "arguments": {"channel": 34} }, "urukul1_cpld": { "type": "local", @@ -203,13 +190,13 @@ device_db.update({ "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 37} + "arguments": {"channel": 35} }, "led1": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 38} + "arguments": {"channel": 36} } }) @@ -219,19 +206,19 @@ device_db.update({ "type": "local", "module": "artiq.coredevice.spi2", "class": "SPIMaster", - "arguments": {"channel": 39} + "arguments": {"channel": 37} }, "ttl_zotino0_ldac": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 40} + "arguments": {"channel": 38} }, "ttl_zotino0_clr": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 41} + "arguments": {"channel": 39} }, "zotino0": { "type": "local", diff --git a/artiq/gateware/targets/kasli.py b/artiq/gateware/targets/kasli.py index b061ef648..79c93dfcc 100755 --- a/artiq/gateware/targets/kasli.py +++ b/artiq/gateware/targets/kasli.py @@ -516,10 +516,8 @@ class PTB(_StandaloneBase): eem.DIO.add_std(self, 2, ttl_serdes_7series.Output_8X, ttl_serdes_7series.Output_8X) eem.Sampler.add_std(self, 3, None, ttl_serdes_7series.Output_8X) - eem.Urukul.add_std(self, 5, 4, ttl_serdes_7series.Output_8X, - ttl_simple.ClockGen) - eem.Urukul.add_std(self, 6, None, ttl_serdes_7series.Output_8X, - ttl_simple.ClockGen) + eem.Urukul.add_std(self, 5, 4, ttl_serdes_7series.Output_8X) + eem.Urukul.add_std(self, 6, None, ttl_serdes_7series.Output_8X) for i in (1, 2): sfp_ctl = self.platform.request("sfp_ctl", i)