mirror of https://github.com/m-labs/artiq.git
ad9154: check alignment phase error after one-shot sync
This commit is contained in:
parent
f5b9eab84b
commit
51e28de2f6
|
@ -545,5 +545,10 @@ pub fn sync(dacno: u8) -> Result<bool, &'static str> {
|
|||
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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue