From 9d0d02a561bb28e77b27583d8ed694eee75df7b0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 29 Jan 2019 16:48:43 +0800 Subject: [PATCH] jesd204sync: increase tolerance for coarse->final target in calibrate_sysref_target There is plenty of slack (it only needs to meet timing at the RTIO frequency). --- artiq/firmware/libboard_artiq/jesd204sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/libboard_artiq/jesd204sync.rs b/artiq/firmware/libboard_artiq/jesd204sync.rs index 8067ab438..30d5aef3b 100644 --- a/artiq/firmware/libboard_artiq/jesd204sync.rs +++ b/artiq/firmware/libboard_artiq/jesd204sync.rs @@ -192,7 +192,7 @@ fn calibrate_sysref_target(rising_average: i32, falling_average: i32) -> Result< ((falling_average - (DDMTD_N - rising_average))/2 + DDMTD_N) % DDMTD_N }; info!(" SYSREF calibration coarse target: {}", coarse_target); - reach_sysref_ddmtd_target(coarse_target, 4)?; + reach_sysref_ddmtd_target(coarse_target, 8)?; let target = measure_ddmdt_phase(); info!(" ...done, target={}", target); Ok(target)