diff --git a/artiq/firmware/libboard_artiq/ad9154.rs b/artiq/firmware/libboard_artiq/ad9154.rs index d6d3b2c02..493f1593a 100644 --- a/artiq/firmware/libboard_artiq/ad9154.rs +++ b/artiq/firmware/libboard_artiq/ad9154.rs @@ -545,5 +545,10 @@ pub fn sync(dacno: u8) -> Result { return Err("no sysref edge"); } let realign_occured = sync_status & ad9154_reg::SYNC_ROTATE != 0; + let phase_error = sync_status & ad9154_reg::SYNC_WLIM != 0; + if !realign_occured && phase_error { + // see also: SYNC_ERRWINDOW + warn!(" phase error window exceeded but clock did not rotate"); + } Ok(realign_occured) }