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
phase.
"""
return int32(round((1 << 16)*phase))
return int32(round((1 << 14)*phase))
@kernel
def set(self, frequency, phase=0.0):