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

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

View File

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