diff --git a/artiq/frontend/artiq_flash.py b/artiq/frontend/artiq_flash.py index 82cb27939..00e217bcf 100755 --- a/artiq/frontend/artiq_flash.py +++ b/artiq/frontend/artiq_flash.py @@ -37,7 +37,7 @@ Prerequisites: """) parser.add_argument("-t", "--target", default="kc705", help="target board, default: %(default)s") - parser.add_argument("-m", "--adapter", default="qc2", + parser.add_argument("-m", "--adapter", default="clock", help="target adapter, default: %(default)s") parser.add_argument("-f", "--storage", help="write file to storage area") parser.add_argument("-d", "--dir", help="look for files in this directory") diff --git a/artiq/gateware/targets/kc705.py b/artiq/gateware/targets/kc705.py index 719876220..6d2367cc4 100755 --- a/artiq/gateware/targets/kc705.py +++ b/artiq/gateware/targets/kc705.py @@ -315,7 +315,7 @@ def main(): "+ NIST Ions QC1/CLOCK/QC2 hardware adapters") builder_args(parser) soc_kc705_args(parser) - parser.add_argument("-H", "--hw-adapter", default="qc1", + parser.add_argument("-H", "--hw-adapter", default="clock", help="hardware adapter type: qc1/clock/qc2 " "(default: %(default)s)") args = parser.parse_args() diff --git a/artiq/runtime/main.c b/artiq/runtime/main.c index 372176732..5897b1eef 100644 --- a/artiq/runtime/main.c +++ b/artiq/runtime/main.c @@ -137,9 +137,9 @@ static void network_init(void) struct ip4_addr gateway_ip; init_macadr(); - fsip_or_default(&local_ip, "ip", 192, 168, 0, 42); + fsip_or_default(&local_ip, "ip", 192, 168, 1, 50); fsip_or_default(&netmask, "netmask", 255, 255, 255, 0); - fsip_or_default(&gateway_ip, "gateway", 192, 168, 0, 1); + fsip_or_default(&gateway_ip, "gateway", 192, 168, 1, 1); lwip_init(); diff --git a/examples/master/device_db.pyon b/examples/master/device_db.pyon index 59b32de2f..da3417e9c 100644 --- a/examples/master/device_db.pyon +++ b/examples/master/device_db.pyon @@ -1,12 +1,12 @@ # This is an example device database that needs to be adapted to your setup. -# The RTIO channel numbers here are for NIST QC1 on KC705. +# The RTIO channel numbers here are for NIST CLOCK on KC705. { "comm": { "type": "local", "module": "artiq.coredevice.comm_tcp", "class": "Comm", - "arguments": {"host": "192.168.0.42"} + "arguments": {"host": "kc705.lab.m-labs.hk"} }, "core": { "type": "local", @@ -15,73 +15,70 @@ "arguments": {"ref_period": 1e-9} }, - "pmt0": { - "type": "local", - "module": "artiq.coredevice.ttl", - "class": "TTLInOut", - "arguments": {"channel": 0} - }, - "pmt1": { - "type": "local", - "module": "artiq.coredevice.ttl", - "class": "TTLInOut", - "arguments": {"channel": 1} - }, - "ttl0": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 2}, + "arguments": {"channel": 0}, "comment": "This is a fairly long comment to test word wrapping in GUI." }, "ttl1": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 3}, + "arguments": {"channel": 1}, "comment": "Hello World" }, "ttl2": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 4} + "arguments": {"channel": 2} }, "ttl3": { "type": "local", "module": "artiq.coredevice.ttl", - "class": "TTLOut", - "arguments": {"channel": 5} + "class": "TTLInOut", + "arguments": {"channel": 3} }, + "ttl4": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 6} + "arguments": {"channel": 4} }, "ttl5": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", + "arguments": {"channel": 5} + }, + "ttl6": { + "type": "local", + "module": "artiq.coredevice.ttl", + "class": "TTLOut", + "arguments": {"channel": 6} + }, + "ttl7": { + "type": "local", + "module": "artiq.coredevice.ttl", + "class": "TTLInOut", "arguments": {"channel": 7} }, + + "ttl_sma": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLInOut", - "arguments": {"channel": 17} + "arguments": {"channel": 18} }, + "led": { "type": "local", "module": "artiq.coredevice.ttl", "class": "TTLOut", - "arguments": {"channel": 18} - }, - "ttl15": { - "type": "local", - "module": "artiq.coredevice.ttl", - "class": "TTLClockGen", "arguments": {"channel": 19} }, @@ -94,21 +91,21 @@ "dds0": { "type": "local", "module": "artiq.coredevice.dds", - "class": "AD9858", - "arguments": {"sysclk": 1e9, "channel": 0}, + "class": "AD9914", + "arguments": {"sysclk": 3e9, "channel": 0}, "comment": "Comments work in DDS panel as well" }, "dds1": { "type": "local", "module": "artiq.coredevice.dds", - "class": "AD9858", - "arguments": {"sysclk": 1e9, "channel": 1} + "class": "AD9914", + "arguments": {"sysclk": 3e9, "channel": 1} }, "dds2": { "type": "local", "module": "artiq.coredevice.dds", - "class": "AD9858", - "arguments": {"sysclk": 1e9, "channel": 2} + "class": "AD9914", + "arguments": {"sysclk": 3e9, "channel": 2} }, "qc_q1_0": { @@ -160,7 +157,12 @@ "ttl_out": "ttl0", "ttl_out_serdes": "ttl0", - "pmt": "pmt0", + "loop_out": "ttl0", + "loop_in": "ttl3", + #"loop_clock_out": "TODO", + "loop_clock_in": "ttl7", + + "pmt": "ttl3", "bd_dds": "dds0", "bd_sw": "ttl0", "bdd_dds": "dds1",