forked from M-Labs/artiq
Fix ad9910 ram mode asf scale error
RAM mode amplitude to ASF conversion should be << 18 rather than << 16
This commit is contained in:
parent
6aa68e1715
commit
448080e71d
|
@ -588,7 +588,7 @@ class AD9910:
|
||||||
Suitable for :meth:`write_ram`.
|
Suitable for :meth:`write_ram`.
|
||||||
"""
|
"""
|
||||||
for i in range(len(ram)):
|
for i in range(len(ram)):
|
||||||
ram[i] = self.amplitude_to_asf(amplitude[i]) << 16
|
ram[i] = self.amplitude_to_asf(amplitude[i]) << 18
|
||||||
|
|
||||||
@portable(flags={"fast-math"})
|
@portable(flags={"fast-math"})
|
||||||
def turns_amplitude_to_ram(self, turns, amplitude, ram):
|
def turns_amplitude_to_ram(self, turns, amplitude, ram):
|
||||||
|
|
Loading…
Reference in New Issue