examples/device_db: add QC2 TTLs

This commit is contained in:
Sebastien Bourdeauducq 2020-07-16 17:58:53 +08:00
parent f69e41af5e
commit 763c314806
1 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# For NIST_QC2
device_db = { device_db = {
"core": { "core": {
"type": "local", "type": "local",
@ -11,6 +13,7 @@ device_db = {
} }
}, },
# led? are common to all variants
"led0": { "led0": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
@ -36,3 +39,11 @@ device_db = {
"arguments": {"channel": 3} "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}
}