forked from M-Labs/artiq
1
0
Fork 0

test_ad9910: print sync scan for debugging

Signed-off-by: Robert Jördens <rj@quartiq.de>
This commit is contained in:
Robert Jördens 2018-11-06 17:03:37 +08:00
parent 9a3d81ffee
commit 73b7124091
1 changed files with 5 additions and 1 deletions

View File

@ -76,8 +76,12 @@ class AD9910Exp(EnvExperiment):
self.core.break_realtime() self.core.break_realtime()
self.dev.cpld.init() self.dev.cpld.init()
self.dev.init() self.dev.init()
dly, win = self.dev.tune_sync_delay(self.dev.sync_delay_seed)
err = [0] * 32 err = [0] * 32
for i in range(6):
self.sync_scan(err, win=i)
print(err)
self.core.break_realtime()
dly, win = self.dev.tune_sync_delay(self.dev.sync_delay_seed)
self.sync_scan(err, win=win + 1) # tighten window by 2*75ps self.sync_scan(err, win=win + 1) # tighten window by 2*75ps
self.set_dataset("dly", dly) self.set_dataset("dly", dly)
self.set_dataset("win", win) self.set_dataset("win", win)