From 0b2661a34d0d31b05f89a4e74e6968fdade8ec94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 6 Nov 2018 12:40:15 +0000 Subject: [PATCH] ad9910: robustify SYNC window finding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit don't integrate too long, find the window tip fast and early a couple 100 SYNC pulses are sufficient Signed-off-by: Robert Jördens --- artiq/coredevice/ad9910.py | 2 +- artiq/test/coredevice/test_ad9910.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/coredevice/ad9910.py b/artiq/coredevice/ad9910.py index 9bdfd37fb..d988ee9e9 100644 --- a/artiq/coredevice/ad9910.py +++ b/artiq/coredevice/ad9910.py @@ -446,7 +446,7 @@ class AD9910: self.set_sync(in_delay, window) self.clear_smp_err() # integrate SMP_ERR statistics for a few hundred cycles - delay(10*us) + # delay(10*us) err = urukul_sta_smp_err(self.cpld.sta_read()) err = (err >> (self.chip_select - 4)) & 1 delay(40*us) # slack diff --git a/artiq/test/coredevice/test_ad9910.py b/artiq/test/coredevice/test_ad9910.py index d2d0bc793..d60972878 100644 --- a/artiq/test/coredevice/test_ad9910.py +++ b/artiq/test/coredevice/test_ad9910.py @@ -92,7 +92,7 @@ class AD9910Exp(EnvExperiment): for in_delay in range(len(err)): self.dev.set_sync(in_delay=in_delay, window=win) self.dev.clear_smp_err() - delay(10*us) # integrate SMP_ERR statistics + # delay(10*us) # integrate SMP_ERR statistics e = urukul_sta_smp_err(self.dev.cpld.sta_read()) err[in_delay] = (e >> (self.dev.chip_select - 4)) & 1 delay(50*us) # slack