forked from M-Labs/artiq
1
0
Fork 0

sawg: work around compiler not accepting delay_mu(int32)

This commit is contained in:
Sebastien Bourdeauducq 2018-06-01 15:42:37 +08:00
parent f5d55c6902
commit e408241233
1 changed files with 10 additions and 9 deletions

View File

@ -352,20 +352,21 @@ class SAWG:
self.config.set_out_min(-1.) self.config.set_out_min(-1.)
self.config.set_out_max(1.) self.config.set_out_max(1.)
self.frequency0.set_mu(0) self.frequency0.set_mu(0)
delay_mu(self.core.ref_multiplier) coarse_cycle = int64(self.core.ref_multiplier)
delay_mu(coarse_cycle)
self.frequency1.set_mu(0) self.frequency1.set_mu(0)
delay_mu(self.core.ref_multiplier) delay_mu(coarse_cycle)
self.frequency2.set_mu(0) self.frequency2.set_mu(0)
delay_mu(self.core.ref_multiplier) delay_mu(coarse_cycle)
self.phase0.set_mu(0) self.phase0.set_mu(0)
delay_mu(self.core.ref_multiplier) delay_mu(coarse_cycle)
self.phase1.set_mu(0) self.phase1.set_mu(0)
delay_mu(self.core.ref_multiplier) delay_mu(coarse_cycle)
self.phase2.set_mu(0) self.phase2.set_mu(0)
delay_mu(self.core.ref_multiplier) delay_mu(coarse_cycle)
self.amplitude1.set_mu(0) self.amplitude1.set_mu(0)
delay_mu(self.core.ref_multiplier) delay_mu(coarse_cycle)
self.amplitude2.set_mu(0) self.amplitude2.set_mu(0)
delay_mu(self.core.ref_multiplier) delay_mu(coarse_cycle)
self.offset.set_mu(0) self.offset.set_mu(0)
delay_mu(self.core.ref_multiplier) delay_mu(coarse_cycle)