forked from M-Labs/artiq
1
0
Fork 0

coredevice: fix external clock ref_period computation

This commit is contained in:
Sebastien Bourdeauducq 2014-12-09 11:22:55 +08:00
parent 597fe57fb3
commit cb48dba29c
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class Core(AutoContext):
self.ref_period = self.runtime_env.internal_ref_period self.ref_period = self.runtime_env.internal_ref_period
self.comm.switch_clock(False) self.comm.switch_clock(False)
else: else:
self.ref_period = self.external_clock self.ref_period = 1/self.external_clock
self.comm.switch_clock(True) self.comm.switch_clock(True)
self.initial_time = int64(self.runtime_env.warmup_time/self.ref_period) self.initial_time = int64(self.runtime_env.warmup_time/self.ref_period)