2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

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

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