mirror of https://github.com/m-labs/artiq.git
coredevice/core: set default for ref_period
This commit is contained in:
parent
17f61b8e29
commit
9f52277245
|
@ -2,6 +2,7 @@ import os
|
||||||
|
|
||||||
from artiq.language.core import *
|
from artiq.language.core import *
|
||||||
from artiq.language.db import *
|
from artiq.language.db import *
|
||||||
|
from artiq.language.units import ns
|
||||||
|
|
||||||
from artiq.transforms.inline import inline
|
from artiq.transforms.inline import inline
|
||||||
from artiq.transforms.lower_units import lower_units
|
from artiq.transforms.lower_units import lower_units
|
||||||
|
@ -47,7 +48,7 @@ def _no_debug_unparse(label, node):
|
||||||
class Core(AutoDB):
|
class Core(AutoDB):
|
||||||
class DBKeys:
|
class DBKeys:
|
||||||
comm = Device()
|
comm = Device()
|
||||||
ref_period = Argument()
|
ref_period = Argument(8*ns)
|
||||||
external_clock = Argument(False)
|
external_clock = Argument(False)
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"type": "local",
|
"type": "local",
|
||||||
"module": "artiq.coredevice.core",
|
"module": "artiq.coredevice.core",
|
||||||
"class": "Core",
|
"class": "Core",
|
||||||
"arguments": {"ref_period": Quantity(Fraction(8, 1000000000), "s")}
|
"arguments": {}
|
||||||
},
|
},
|
||||||
|
|
||||||
"pmt0": {
|
"pmt0": {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"type": "local",
|
"type": "local",
|
||||||
"module": "artiq.coredevice.core",
|
"module": "artiq.coredevice.core",
|
||||||
"class": "Core",
|
"class": "Core",
|
||||||
"arguments": {"ref_period": Quantity(Fraction(8, 1000000000), "s")}
|
"arguments": {}
|
||||||
},
|
},
|
||||||
|
|
||||||
"pmt0": {
|
"pmt0": {
|
||||||
|
|
Loading…
Reference in New Issue