forked from M-Labs/artiq
1
0
Fork 0

drtio: test replace in RTL simulation

This commit is contained in:
Sebastien Bourdeauducq 2017-04-06 16:33:59 +08:00
parent 729e7b52f0
commit c2667debf8
1 changed files with 3 additions and 2 deletions

View File

@ -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)