coredevice/core: set default for ref_period

This commit is contained in:
Sebastien Bourdeauducq 2015-04-22 01:12:01 +08:00
parent 17f61b8e29
commit 9f52277245
3 changed files with 4 additions and 3 deletions

View File

@ -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):

View File

@ -9,7 +9,7 @@
"type": "local",
"module": "artiq.coredevice.core",
"class": "Core",
"arguments": {"ref_period": Quantity(Fraction(8, 1000000000), "s")}
"arguments": {}
},
"pmt0": {

View File

@ -9,7 +9,7 @@
"type": "local",
"module": "artiq.coredevice.core",
"class": "Core",
"arguments": {"ref_period": Quantity(Fraction(8, 1000000000), "s")}
"arguments": {}
},
"pmt0": {