From 763c314806db8bdf17d3f3566ae966a337f9f476 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 16 Jul 2020 17:58:53 +0800 Subject: [PATCH] examples/device_db: add QC2 TTLs --- examples/device_db.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/device_db.py b/examples/device_db.py index 49ab251..b222c6c 100644 --- a/examples/device_db.py +++ b/examples/device_db.py @@ -1,3 +1,5 @@ +# For NIST_QC2 + device_db = { "core": { "type": "local", @@ -11,6 +13,7 @@ device_db = { } }, + # led? are common to all variants "led0": { "type": "local", "module": "artiq.coredevice.ttl", @@ -36,3 +39,11 @@ device_db = { "arguments": {"channel": 3} }, } + +for i in range(40): + device_db["ttl" + str(i)] = { + "type": "local", + "module": "artiq.coredevice.ttl", + "class": "TTLInOut", + "arguments": {"channel": 3+i} + }