From 2c15bd3e44086de30e5a5f5fe1db9780fc1c12c2 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 18 Aug 2015 15:20:42 +0800 Subject: [PATCH] kc705: add TTL channel on SMA GPIO N --- examples/master/ddb.pyon | 8 +++++++- soc/targets/artiq_kc705.py | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/examples/master/ddb.pyon b/examples/master/ddb.pyon index df172f272..00e823a28 100644 --- a/examples/master/ddb.pyon +++ b/examples/master/ddb.pyon @@ -49,11 +49,17 @@ "class": "TTLOut", "arguments": {"channel": 5} }, + "ttl_sma": { + "type": "local", + "module": "artiq.coredevice.ttl", + "class": "TTLInOut", + "arguments": {"channel": 17} + }, "led": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 17} + "arguments": {"channel": 18} }, "dds_bus": { diff --git a/soc/targets/artiq_kc705.py b/soc/targets/artiq_kc705.py index a768e2f07..1ffc83aea 100644 --- a/soc/targets/artiq_kc705.py +++ b/soc/targets/artiq_kc705.py @@ -148,6 +148,9 @@ class NIST_QC1(_NIST_QCx): self.submodules += phy rtio_channels.append(rtio.Channel.from_phy(phy)) + phy = ttl_simple.Inout(platform.request("user_sma_gpio_n")) + self.submodules += phy + rtio_channels.append(rtio.Channel.from_phy(phy)) phy = ttl_simple.Output(platform.request("user_led", 2)) self.submodules += phy rtio_channels.append(rtio.Channel.from_phy(phy)) @@ -187,6 +190,9 @@ class NIST_QC2(_NIST_QCx): self.submodules += phy rtio_channels.append(rtio.Channel.from_phy(phy)) + phy = ttl_simple.Inout(platform.request("user_sma_gpio_n")) + self.submodules += phy + rtio_channels.append(rtio.Channel.from_phy(phy)) phy = ttl_simple.Output(platform.request("user_led", 2)) self.submodules += phy rtio_channels.append(rtio.Channel.from_phy(phy))