From 448080e71d5dbb06f35093645e13e710fc2d37d4 Mon Sep 17 00:00:00 2001 From: Tim Ballance Date: Fri, 4 Oct 2019 10:23:03 +0100 Subject: [PATCH] Fix ad9910 ram mode asf scale error RAM mode amplitude to ASF conversion should be << 18 rather than << 16 --- artiq/coredevice/ad9910.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/ad9910.py b/artiq/coredevice/ad9910.py index 2ef65ae8e..44cd621a4 100644 --- a/artiq/coredevice/ad9910.py +++ b/artiq/coredevice/ad9910.py @@ -588,7 +588,7 @@ class AD9910: Suitable for :meth:`write_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"}) def turns_amplitude_to_ram(self, turns, amplitude, ram):