2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

coredevice/dds: round FTW instead of flooring

This commit is contained in:
Sebastien Bourdeauducq 2014-11-17 18:36:00 -07:00
parent f11fb0f553
commit abae5c6728

View File

@ -29,7 +29,7 @@ class DDS(AutoContext):
frequency.
"""
return int(2**32*frequency/self.dds_sysclk)
return round(2**32*frequency/self.dds_sysclk)
@portable
def ftw_to_frequency(self, ftw):