artiq/examples/master/device_db.pyon

210 lines
5.5 KiB
Plaintext
Raw Normal View History

# This is an example device database that needs to be adapted to your setup.
2016-02-29 21:35:23 +08:00
# The RTIO channel numbers here are for NIST CLOCK on KC705.
2014-12-03 18:20:30 +08:00
{
"comm": {
2015-02-05 22:53:31 +08:00
"type": "local",
"module": "artiq.coredevice.comm_tcp",
2014-12-03 18:20:30 +08:00
"class": "Comm",
2016-02-29 21:35:23 +08:00
"arguments": {"host": "kc705.lab.m-labs.hk"}
2014-12-03 18:20:30 +08:00
},
"core": {
2015-02-05 22:53:31 +08:00
"type": "local",
2014-12-03 18:20:30 +08:00
"module": "artiq.coredevice.core",
"class": "Core",
2015-07-27 20:12:17 +08:00
"arguments": {"ref_period": 1e-9}
2014-12-03 18:20:30 +08:00
},
2016-03-05 19:00:38 +08:00
"i2c_switch": {
"type": "local",
"module": "artiq.coredevice.i2c",
"class": "PCA9548"
},
2014-12-03 18:20:30 +08:00
"ttl0": {
2015-02-05 22:53:31 +08:00
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
2016-02-29 21:35:23 +08:00
"arguments": {"channel": 0},
2015-09-02 04:25:20 +08:00
"comment": "This is a fairly long comment to test word wrapping in GUI."
2014-12-03 18:20:30 +08:00
},
"ttl1": {
2015-02-05 22:53:31 +08:00
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
2016-02-29 21:35:23 +08:00
"arguments": {"channel": 1},
2015-09-02 04:25:20 +08:00
"comment": "Hello World"
2014-12-03 18:20:30 +08:00
},
"ttl2": {
2015-02-05 22:53:31 +08:00
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
2016-02-29 21:35:23 +08:00
"arguments": {"channel": 2}
2014-12-03 18:20:30 +08:00
},
2015-07-02 04:22:53 +08:00
"ttl3": {
"type": "local",
"module": "artiq.coredevice.ttl",
2016-02-29 21:35:23 +08:00
"class": "TTLInOut",
"arguments": {"channel": 3}
2015-07-02 04:22:53 +08:00
},
2016-02-29 21:35:23 +08:00
"ttl4": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
2016-02-29 21:35:23 +08:00
"arguments": {"channel": 4}
},
"ttl5": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
2016-02-29 21:35:23 +08:00
"arguments": {"channel": 5}
},
2016-02-29 21:35:23 +08:00
"ttl6": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 6}
},
"ttl7": {
2015-08-18 15:20:42 +08:00
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLInOut",
2016-02-29 21:35:23 +08:00
"arguments": {"channel": 7}
2015-08-18 15:20:42 +08:00
},
2016-02-29 21:35:23 +08:00
"ttl_sma": {
2015-04-04 22:07:23 +08:00
"type": "local",
"module": "artiq.coredevice.ttl",
2016-02-29 21:35:23 +08:00
"class": "TTLInOut",
2015-08-18 15:20:42 +08:00
"arguments": {"channel": 18}
2015-04-04 22:07:23 +08:00
},
"led": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 19}
},
2016-03-05 01:12:30 +08:00
"ttl_ams101_ldac": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 20}
},
"ttl_clock_la32_p": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLClockGen",
"arguments": {"channel": 21}
},
2016-03-05 01:12:30 +08:00
"spi_ams101": {
"type": "local",
"module": "artiq.coredevice.spi",
"class": "SPIMaster",
"arguments": {"channel": 22}
},
2016-02-29 21:35:23 +08:00
"spi0": {
2015-12-26 21:50:48 +08:00
"type": "local",
"module": "artiq.coredevice.spi",
"class": "SPIMaster",
2016-03-01 08:52:46 +08:00
"arguments": {"channel": 23}
2015-12-26 21:50:48 +08:00
},
2014-12-03 18:20:30 +08:00
2016-03-05 01:12:30 +08:00
"dac0": {
"type": "local",
"module": "artiq.coredevice.ad5360",
"class": "AD5360",
"arguments": {"spi_device": "spi0", "ldac_device": "ttl0"}
},
2015-05-08 22:17:06 +08:00
"dds_bus": {
"type": "local",
"module": "artiq.coredevice.dds",
"class": "DDSBus",
"arguments": {}
},
2014-12-03 18:20:30 +08:00
"dds0": {
2015-02-05 22:53:31 +08:00
"type": "local",
2014-12-03 18:20:30 +08:00
"module": "artiq.coredevice.dds",
2016-02-29 21:35:23 +08:00
"class": "AD9914",
"arguments": {"sysclk": 3e9, "channel": 0},
2015-09-02 04:25:20 +08:00
"comment": "Comments work in DDS panel as well"
2014-12-03 18:20:30 +08:00
},
"dds1": {
2015-02-05 22:53:31 +08:00
"type": "local",
2014-12-03 18:20:30 +08:00
"module": "artiq.coredevice.dds",
2016-02-29 21:35:23 +08:00
"class": "AD9914",
"arguments": {"sysclk": 3e9, "channel": 1}
2014-12-03 18:20:30 +08:00
},
"dds2": {
2015-02-05 22:53:31 +08:00
"type": "local",
2014-12-03 18:20:30 +08:00
"module": "artiq.coredevice.dds",
2016-02-29 21:35:23 +08:00
"class": "AD9914",
"arguments": {"sysclk": 3e9, "channel": 2}
2014-12-03 18:20:30 +08:00
},
"qc_q1_0": {
"type": "controller",
# ::1 is the IPv6 localhost address. If this controller is running on a remote machine,
# replace it with the IP or hostname of the machine. If using the hostname, make sure
# that it always resolves to a network-visible IP address (see documentation).
"host": "::1",
"port": 4000,
"command": "pdq2_controller -p {port} --bind {bind} --simulation --dump qc_q1_0.bin"
},
"qc_q1_1": {
"type": "controller",
"host": "::1",
"port": 4001,
"command": "pdq2_controller -p {port} --bind {bind} --simulation --dump qc_q1_1.bin"
},
"qc_q1_2": {
"type": "controller",
"host": "::1",
"port": 4002,
"command": "pdq2_controller -p {port} --bind {bind} --simulation --dump qc_q1_2.bin"
},
"qc_q1_3": {
"type": "controller",
"host": "::1",
"port": 4003,
"command": "pdq2_controller -p {port} --bind {bind} --simulation --dump qc_q1_3.bin"
},
2014-12-03 18:20:30 +08:00
"electrodes": {
2015-02-05 22:53:31 +08:00
"type": "local",
2014-12-03 18:20:30 +08:00
"module": "artiq.devices.pdq2",
"class": "CompoundPDQ2",
"arguments": {
"pdq2_devices": ["qc_q1_0", "qc_q1_1", "qc_q1_2", "qc_q1_3"],
"trigger_device": "ttl2",
"frame_devices": ["ttl3", "ttl4", "ttl5"]
2015-07-02 04:22:53 +08:00
}
2014-12-03 18:20:30 +08:00
},
2015-02-05 22:53:31 +08:00
"lda": {
"type": "controller",
"best_effort": true,
2015-02-05 22:53:31 +08:00
"host": "::1",
"port": 3253,
"command": "lda_controller -p {port} --bind {bind} --simulation"
2015-02-05 22:53:31 +08:00
},
"ttl_out": "ttl0",
2015-07-29 19:43:35 +08:00
"ttl_out_serdes": "ttl0",
2016-02-29 21:35:23 +08:00
"loop_out": "ttl0",
"loop_in": "ttl3",
"loop_clock_out": "ttl_clock_la32_p",
2016-02-29 21:35:23 +08:00
"loop_clock_in": "ttl7",
"pmt": "ttl3",
2015-05-08 22:17:06 +08:00
"bd_dds": "dds0",
"bd_sw": "ttl0",
"bdd_dds": "dds1",
"bdd_sw": "ttl1"
2014-12-03 18:20:30 +08:00
}