mirror of https://github.com/m-labs/artiq.git
drtio: test replace in RTL simulation
This commit is contained in:
parent
729e7b52f0
commit
c2667debf8
|
@ -143,7 +143,8 @@ class TestFullStack(unittest.TestCase):
|
||||||
delay(200*8)
|
delay(200*8)
|
||||||
yield from write(0, 1)
|
yield from write(0, 1)
|
||||||
delay(5*8)
|
delay(5*8)
|
||||||
yield from write(0, 0)
|
yield from write(0, 1)
|
||||||
|
yield from write(0, 0) # replace
|
||||||
yield from write(1, 1)
|
yield from write(1, 1)
|
||||||
delay(6*8)
|
delay(6*8)
|
||||||
yield from write(1, 0)
|
yield from write(1, 0)
|
||||||
|
@ -159,7 +160,7 @@ class TestFullStack(unittest.TestCase):
|
||||||
self.assertNotEqual((yield dut.phy2.received_data), correct_large_data)
|
self.assertNotEqual((yield dut.phy2.received_data), correct_large_data)
|
||||||
delay(10*8)
|
delay(10*8)
|
||||||
yield from write(2, correct_large_data)
|
yield from write(2, correct_large_data)
|
||||||
for i in range(40):
|
for i in range(45):
|
||||||
yield
|
yield
|
||||||
self.assertEqual((yield dut.phy2.received_data), correct_large_data)
|
self.assertEqual((yield dut.phy2.received_data), correct_large_data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue