devices/runtime: allow 1ms for all initial DDS programming

This commit is contained in:
Sebastien Bourdeauducq 2014-10-14 12:47:24 +08:00
parent 7d48ef263a
commit 2449348f31
1 changed files with 3 additions and 1 deletions

View File

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