forked from M-Labs/artiq
1
0
Fork 0

examples/device_db: update DAC entry for Zotino, add sections

This commit is contained in:
Sebastien Bourdeauducq 2017-10-26 02:26:19 +08:00
parent 6bdeddd201
commit bb6e7618bb
1 changed files with 33 additions and 20 deletions

View File

@ -5,6 +5,7 @@
core_addr = "kc705.lab.m-labs.hk" core_addr = "kc705.lab.m-labs.hk"
device_db = { device_db = {
# Core device
"core": { "core": {
"type": "local", "type": "local",
"module": "artiq.coredevice.core", "module": "artiq.coredevice.core",
@ -45,6 +46,7 @@ device_db = {
"class": "PCA9548" "class": "PCA9548"
}, },
# Generic TTL
"ttl0": { "ttl0": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
@ -96,8 +98,6 @@ device_db = {
"class": "TTLInOut", "class": "TTLInOut",
"arguments": {"channel": 7} "arguments": {"channel": 7}
}, },
"ttl_sma": { "ttl_sma": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
@ -110,13 +110,6 @@ device_db = {
"class": "TTLOut", "class": "TTLOut",
"arguments": {"channel": 19} "arguments": {"channel": 19}
}, },
"ttl_ams101_ldac": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 20}
},
"ttl_clock_la32_p": { "ttl_clock_la32_p": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
@ -124,20 +117,13 @@ device_db = {
"arguments": {"channel": 21} "arguments": {"channel": 21}
}, },
"spi_ams101": { # Generic SPI
"type": "local",
"module": "artiq.coredevice.spi",
"class": "SPIMaster",
"arguments": {"channel": 22}
},
"spi0": { "spi0": {
"type": "local", "type": "local",
"module": "artiq.coredevice.spi", "module": "artiq.coredevice.spi",
"class": "SPIMaster", "class": "SPIMaster",
"arguments": {"channel": 23} "arguments": {"channel": 23}
}, },
"spi_mmc": { "spi_mmc": {
"type": "local", "type": "local",
"module": "artiq.coredevice.spi", "module": "artiq.coredevice.spi",
@ -145,13 +131,39 @@ device_db = {
"arguments": {"channel": 26} "arguments": {"channel": 26}
}, },
"dac0": { # DAC
"spi_ams101": {
"type": "local",
"module": "artiq.coredevice.spi",
"class": "SPIMaster",
"arguments": {"channel": 22}
},
"ttl_ams101_ldac": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 20}
},
"spi_zotino": {
"type": "local",
"module": "artiq.coredevice.spi",
"class": "SPIMaster",
"arguments": {"channel": 27}
},
"ttl_zotino_ldac": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 28}
},
"dac_zotino": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ad5360", "module": "artiq.coredevice.ad5360",
"class": "AD5360", "class": "AD5360",
"arguments": {"spi_device": "spi0", "ldac_device": "ttl0"} "arguments": {"spi_device": "spi_zotino", "ldac_device": "ttl_zotino_ldac"}
}, },
# AD9914 DDS
"dds0": { "dds0": {
"type": "local", "type": "local",
"module": "artiq.coredevice.dds", "module": "artiq.coredevice.dds",
@ -172,6 +184,7 @@ device_db = {
"arguments": {"bus_channel": 29, "channel": 2} "arguments": {"bus_channel": 29, "channel": 2}
}, },
# Controllers
"lda": { "lda": {
"type": "controller", "type": "controller",
"best_effort": True, "best_effort": True,
@ -193,7 +206,7 @@ device_db = {
"target_name": "camera_sim_rexec" "target_name": "camera_sim_rexec"
}, },
# Aliases
"ttl_out": "ttl0", "ttl_out": "ttl0",
"ttl_out_serdes": "ttl0", "ttl_out_serdes": "ttl0",