forked from M-Labs/artiq
1
0
Fork 0

ad9912: phase offset is 14 bit LSB aligned

c.f. sinara-hw/Urukul#15
This commit is contained in:
Robert Jördens 2018-10-11 15:16:08 +02:00
parent 08074d5275
commit 661dd00c4c
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class AD9912:
"""Returns the phase offset word corresponding to the given """Returns the phase offset word corresponding to the given
phase. phase.
""" """
return int32(round((1 << 16)*phase)) return int32(round((1 << 14)*phase))
@kernel @kernel
def set(self, frequency, phase=0.0): def set(self, frequency, phase=0.0):