From 0b673966306632d90aec7fefc5786c396275a344 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 25 Jan 2017 11:26:30 +0000 Subject: [PATCH] test: convert test_pulse_rate_dds to use mu. Before this commit, this test was actually measuring soft-FP performance. --- artiq/test/coredevice/test_rtio.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/artiq/test/coredevice/test_rtio.py b/artiq/test/coredevice/test_rtio.py index 55e91f16f..f79d4bff1 100644 --- a/artiq/test/coredevice/test_rtio.py +++ b/artiq/test/coredevice/test_rtio.py @@ -119,13 +119,14 @@ class PulseRateDDS(EnvExperiment): def run(self): self.core.reset() dt = self.core.seconds_to_mu(5*us) + freq = self.core_dds.frequency_to_ftw(100*MHz) while True: delay(10*ms) for i in range(1250): try: with self.core_dds.batch: - self.dds0.set(100*MHz) - self.dds1.set(100*MHz) + self.dds0.set_mu(freq) + self.dds1.set_mu(freq) delay_mu(dt) except RTIOUnderflow: dt += 100 @@ -360,7 +361,7 @@ class CoredeviceTest(ExperimentCase): rate = self.dataset_mgr.get("pulse_rate") print(rate) self.assertGreater(rate, 1*us) - self.assertLess(rate, 6.2*us) + self.assertLess(rate, 6.5*us) def test_loopback_count(self): npulses = 2