From a058be2edec1801b58e2e761e317316f450cf72d Mon Sep 17 00:00:00 2001 From: hartytp Date: Thu, 8 Oct 2020 19:43:00 +0800 Subject: [PATCH] wrpll: fix test_helper_collector --- artiq/gateware/test/wrpll/test_dsp.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/artiq/gateware/test/wrpll/test_dsp.py b/artiq/gateware/test/wrpll/test_dsp.py index eeb89a44e..033e69853 100644 --- a/artiq/gateware/test/wrpll/test_dsp.py +++ b/artiq/gateware/test/wrpll/test_dsp.py @@ -73,14 +73,13 @@ class TestDSP(unittest.TestCase): run_simulation(collector, generator()) - @unittest.skip("FIXME") def test_helper_collector(self): N = 3 collector = Collector(N=N) # check collector phase unwrapping - tags = [((2**N - 1 - tag) % (2**N), 0) for tag in range(20)] - tags += [((tags[-1][0] + 1 + tag) % (2**N), 2) for tag in range(20)] - tags += [((tags[-1][0] - 2 - 2*tag) % (2**N), -1) for tag in range(20)] + tags = [((2**N - 1 - tag) % (2**N), -1) for tag in range(20)] + tags += [((tags[-1][0] + 1 + tag) % (2**N), 1) for tag in range(20)] + tags += [((tags[-1][0] - 2 - 2*tag) % (2**N), -2) for tag in range(20)] def generator(): for tag_ref, out in tags: