From 2449348f3142dee508d236ff773a04559a25d047 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 14 Oct 2014 12:47:24 +0800 Subject: [PATCH] devices/runtime: allow 1ms for all initial DDS programming --- artiq/devices/runtime.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/devices/runtime.py b/artiq/devices/runtime.py index d9bac42ce..76e192e67 100644 --- a/artiq/devices/runtime.py +++ b/artiq/devices/runtime.py @@ -1,4 +1,5 @@ import os +from fractions import Fraction from llvm import core as lc from llvm import target as lt @@ -138,7 +139,8 @@ def _debug_dump_obj(obj): class Environment(LinkInterface): def __init__(self, ref_period): self.ref_period = ref_period - self.initial_time = 4000 + # allow 1ms for all initial DDS programming + self.initial_time = int(Fraction(1, 1000)/self.ref_period) def emit_object(self): tm = lt.TargetMachine.new(triple="or1k", cpu="generic")