use m-labs setup for defaults

This commit is contained in:
Sebastien Bourdeauducq 2016-02-29 21:35:23 +08:00
parent 785691ab98
commit 572c49f475
4 changed files with 41 additions and 39 deletions

View File

@ -37,7 +37,7 @@ Prerequisites:
""") """)
parser.add_argument("-t", "--target", default="kc705", parser.add_argument("-t", "--target", default="kc705",
help="target board, default: %(default)s") 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") help="target adapter, default: %(default)s")
parser.add_argument("-f", "--storage", help="write file to storage area") parser.add_argument("-f", "--storage", help="write file to storage area")
parser.add_argument("-d", "--dir", help="look for files in this directory") parser.add_argument("-d", "--dir", help="look for files in this directory")

View File

@ -315,7 +315,7 @@ def main():
"+ NIST Ions QC1/CLOCK/QC2 hardware adapters") "+ NIST Ions QC1/CLOCK/QC2 hardware adapters")
builder_args(parser) builder_args(parser)
soc_kc705_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 " help="hardware adapter type: qc1/clock/qc2 "
"(default: %(default)s)") "(default: %(default)s)")
args = parser.parse_args() args = parser.parse_args()

View File

@ -137,9 +137,9 @@ static void network_init(void)
struct ip4_addr gateway_ip; struct ip4_addr gateway_ip;
init_macadr(); 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(&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(); lwip_init();

View File

@ -1,12 +1,12 @@
# This is an example device database that needs to be adapted to your setup. # 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": { "comm": {
"type": "local", "type": "local",
"module": "artiq.coredevice.comm_tcp", "module": "artiq.coredevice.comm_tcp",
"class": "Comm", "class": "Comm",
"arguments": {"host": "192.168.0.42"} "arguments": {"host": "kc705.lab.m-labs.hk"}
}, },
"core": { "core": {
"type": "local", "type": "local",
@ -15,73 +15,70 @@
"arguments": {"ref_period": 1e-9} "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": { "ttl0": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
"class": "TTLOut", "class": "TTLOut",
"arguments": {"channel": 2}, "arguments": {"channel": 0},
"comment": "This is a fairly long comment to test word wrapping in GUI." "comment": "This is a fairly long comment to test word wrapping in GUI."
}, },
"ttl1": { "ttl1": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
"class": "TTLOut", "class": "TTLOut",
"arguments": {"channel": 3}, "arguments": {"channel": 1},
"comment": "Hello World" "comment": "Hello World"
}, },
"ttl2": { "ttl2": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
"class": "TTLOut", "class": "TTLOut",
"arguments": {"channel": 4} "arguments": {"channel": 2}
}, },
"ttl3": { "ttl3": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
"class": "TTLOut", "class": "TTLInOut",
"arguments": {"channel": 5} "arguments": {"channel": 3}
}, },
"ttl4": { "ttl4": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
"class": "TTLOut", "class": "TTLOut",
"arguments": {"channel": 6} "arguments": {"channel": 4}
}, },
"ttl5": { "ttl5": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
"class": "TTLOut", "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} "arguments": {"channel": 7}
}, },
"ttl_sma": { "ttl_sma": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
"class": "TTLInOut", "class": "TTLInOut",
"arguments": {"channel": 17} "arguments": {"channel": 18}
}, },
"led": { "led": {
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
"class": "TTLOut", "class": "TTLOut",
"arguments": {"channel": 18}
},
"ttl15": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLClockGen",
"arguments": {"channel": 19} "arguments": {"channel": 19}
}, },
@ -94,21 +91,21 @@
"dds0": { "dds0": {
"type": "local", "type": "local",
"module": "artiq.coredevice.dds", "module": "artiq.coredevice.dds",
"class": "AD9858", "class": "AD9914",
"arguments": {"sysclk": 1e9, "channel": 0}, "arguments": {"sysclk": 3e9, "channel": 0},
"comment": "Comments work in DDS panel as well" "comment": "Comments work in DDS panel as well"
}, },
"dds1": { "dds1": {
"type": "local", "type": "local",
"module": "artiq.coredevice.dds", "module": "artiq.coredevice.dds",
"class": "AD9858", "class": "AD9914",
"arguments": {"sysclk": 1e9, "channel": 1} "arguments": {"sysclk": 3e9, "channel": 1}
}, },
"dds2": { "dds2": {
"type": "local", "type": "local",
"module": "artiq.coredevice.dds", "module": "artiq.coredevice.dds",
"class": "AD9858", "class": "AD9914",
"arguments": {"sysclk": 1e9, "channel": 2} "arguments": {"sysclk": 3e9, "channel": 2}
}, },
"qc_q1_0": { "qc_q1_0": {
@ -160,7 +157,12 @@
"ttl_out": "ttl0", "ttl_out": "ttl0",
"ttl_out_serdes": "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_dds": "dds0",
"bd_sw": "ttl0", "bd_sw": "ttl0",
"bdd_dds": "dds1", "bdd_dds": "dds1",