2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

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

View File

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