mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-19 00:16:29 +08:00
phaser: fix startup_kernel/ceil
This commit is contained in:
parent
09434ec054
commit
c846e758f1
@ -1,5 +1,3 @@
|
|||||||
from math import ceil
|
|
||||||
|
|
||||||
from artiq.experiment import *
|
from artiq.experiment import *
|
||||||
from artiq.coredevice.ad9516_reg import *
|
from artiq.coredevice.ad9516_reg import *
|
||||||
|
|
||||||
@ -52,7 +50,7 @@ class StartupKernel(EnvExperiment):
|
|||||||
# FPGA deviceclk, dclk/4
|
# FPGA deviceclk, dclk/4
|
||||||
self.ad9154.clock_write(AD9516_DIVIDER_4_3, AD9516_DIVIDER_4_BYPASS_2)
|
self.ad9154.clock_write(AD9516_DIVIDER_4_3, AD9516_DIVIDER_4_BYPASS_2)
|
||||||
self.ad9154.clock_write(AD9516_DIVIDER_0_0,
|
self.ad9154.clock_write(AD9516_DIVIDER_0_0,
|
||||||
(ceil(4/2)-1)*AD9516_DIVIDER_0_HIGH_CYCLES |
|
(4//2-1)*AD9516_DIVIDER_0_HIGH_CYCLES |
|
||||||
(4//2-1)*AD9516_DIVIDER_0_LOW_CYCLES)
|
(4//2-1)*AD9516_DIVIDER_0_LOW_CYCLES)
|
||||||
self.ad9154.clock_write(AD9516_DIVIDER_4_4, 1*AD9516_DIVIDER_4_DCCOFF)
|
self.ad9154.clock_write(AD9516_DIVIDER_4_4, 1*AD9516_DIVIDER_4_DCCOFF)
|
||||||
self.ad9154.clock_write(AD9516_OUT9, 1*AD9516_OUT9_LVDS_OUTPUT_CURRENT |
|
self.ad9154.clock_write(AD9516_OUT9, 1*AD9516_OUT9_LVDS_OUTPUT_CURRENT |
|
||||||
|
Loading…
Reference in New Issue
Block a user