forked from M-Labs/artiq
test_ad9910: relax tests
* tune_sync_delay: the opposite IO_UPDATE to SYNC_CLK alignment may not be perfectly mis-aligned * set_mu_speed: seems to be slower on the buildbot Signed-off-by: Robert Jördens <rj@quartiq.de>
This commit is contained in:
parent
19748fe495
commit
088530604e
|
@ -199,7 +199,7 @@ class AD9910Test(ExperimentCase):
|
||||||
self.execute(AD9910Exp, "set_speed_mu")
|
self.execute(AD9910Exp, "set_speed_mu")
|
||||||
dt = self.dataset_mgr.get("dt")
|
dt = self.dataset_mgr.get("dt")
|
||||||
print(dt)
|
print(dt)
|
||||||
self.assertLess(dt, 10*us)
|
self.assertLess(dt, 11*us)
|
||||||
|
|
||||||
def test_sync_window(self):
|
def test_sync_window(self):
|
||||||
self.execute(AD9910Exp, "sync_window")
|
self.execute(AD9910Exp, "sync_window")
|
||||||
|
@ -220,8 +220,8 @@ class AD9910Test(ExperimentCase):
|
||||||
n = max(bins2)
|
n = max(bins2)
|
||||||
# no edge at optimal delay
|
# no edge at optimal delay
|
||||||
self.assertEqual(bins2[(dly + 1) & 3], 0)
|
self.assertEqual(bins2[(dly + 1) & 3], 0)
|
||||||
# edge at expected position
|
# many edges near expected position
|
||||||
self.assertEqual(bins2[(dly + 3) & 3], n)
|
self.assertGreater(bins2[(dly + 3) & 3], n*.9)
|
||||||
|
|
||||||
def test_sw_readback(self):
|
def test_sw_readback(self):
|
||||||
self.execute(AD9910Exp, "sw_readback")
|
self.execute(AD9910Exp, "sw_readback")
|
||||||
|
|
Loading…
Reference in New Issue