From f77bcbebb5c23f0ea1d5ca8e9094d2b51d0c40d8 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 16 May 2018 08:34:53 +0200 Subject: [PATCH] serwb/test_serwb_core: fix --- artiq/gateware/test/serwb/test_serwb_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/gateware/test/serwb/test_serwb_core.py b/artiq/gateware/test/serwb/test_serwb_core.py index 0e964b5b1..4a3fa7898 100644 --- a/artiq/gateware/test/serwb/test_serwb_core.py +++ b/artiq/gateware/test/serwb/test_serwb_core.py @@ -115,7 +115,7 @@ class TestSERWBCore(unittest.TestCase): yield dut.scrambler.sink.data.eq(i) # check - yield dut.descrambler.source.ack.eq(prng.randrange(prng.randrange(100) > rand_level) + yield dut.descrambler.source.ack.eq(prng.randrange(100) > rand_level) if (yield dut.descrambler.source.stb) & (yield dut.descrambler.source.ack): current_data = (yield dut.descrambler.source.data) if (current_data != (last_data + 1)):