mirror of https://github.com/m-labs/artiq.git
serwb/test_serwb_core: fix
This commit is contained in:
parent
77fc5c599f
commit
f77bcbebb5
|
@ -115,7 +115,7 @@ class TestSERWBCore(unittest.TestCase):
|
||||||
yield dut.scrambler.sink.data.eq(i)
|
yield dut.scrambler.sink.data.eq(i)
|
||||||
|
|
||||||
# check
|
# 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):
|
if (yield dut.descrambler.source.stb) & (yield dut.descrambler.source.ack):
|
||||||
current_data = (yield dut.descrambler.source.data)
|
current_data = (yield dut.descrambler.source.data)
|
||||||
if (current_data != (last_data + 1)):
|
if (current_data != (last_data + 1)):
|
||||||
|
|
Loading…
Reference in New Issue