forked from M-Labs/artiq
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.db import *
|
||||
from artiq.language.units import ns
|
||||
|
||||
from artiq.transforms.inline import inline
|
||||
from artiq.transforms.lower_units import lower_units
|
||||
@ -47,7 +48,7 @@ def _no_debug_unparse(label, node):
|
||||
class Core(AutoDB):
|
||||
class DBKeys:
|
||||
comm = Device()
|
||||
ref_period = Argument()
|
||||
ref_period = Argument(8*ns)
|
||||
external_clock = Argument(False)
|
||||
|
||||
def build(self):
|
||||
|
@ -9,7 +9,7 @@
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.core",
|
||||
"class": "Core",
|
||||
"arguments": {"ref_period": Quantity(Fraction(8, 1000000000), "s")}
|
||||
"arguments": {}
|
||||
},
|
||||
|
||||
"pmt0": {
|
||||
|
@ -9,7 +9,7 @@
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.core",
|
||||
"class": "Core",
|
||||
"arguments": {"ref_period": Quantity(Fraction(8, 1000000000), "s")}
|
||||
"arguments": {}
|
||||
},
|
||||
|
||||
"pmt0": {
|
||||
|
Loading…
Reference in New Issue
Block a user