From db3e1aef77a91cfa875209593b50eb3a2503fc8d Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 15 May 2017 16:12:02 +0200 Subject: [PATCH] examples/phaser: adapt test_ad9154_prbs to new prbs in fabric --- artiq/examples/phaser/repository/test_ad9154_prbs.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/artiq/examples/phaser/repository/test_ad9154_prbs.py b/artiq/examples/phaser/repository/test_ad9154_prbs.py index 2bf48e1b2..f5790071a 100644 --- a/artiq/examples/phaser/repository/test_ad9154_prbs.py +++ b/artiq/examples/phaser/repository/test_ad9154_prbs.py @@ -11,9 +11,8 @@ class Test(EnvExperiment): @kernel def run(self): - for e in range(2): - for i in range(3): # prbs7, prbs15, prbs31 - self.prbs(i, 10, e) + for i in range(1, 4): # prbs7, prbs15, prbs31 + self.prbs(i, 10) @kernel def busywait_us(self, t): @@ -25,10 +24,9 @@ class Test(EnvExperiment): print(f.format(*a)) @kernel - def prbs(self, p, t, inject_errors): - self.p("---\nprbs sequence {}, threshold {}, inject_errors {}:", - p, t, inject_errors) - self.ad9154.jesd_prbs((1 << p) | (inject_errors << 3)) + def prbs(self, p, t): + self.p("---\nprbs sequence {}, threshold {}:", p, t) + self.ad9154.jesd_prbs(p) self.ad9154.dac_write(AD9154_PHY_PRBS_TEST_CTRL, AD9154_PHY_PRBS_PAT_SEL_SET(p))