test: fix divider testbench

This commit is contained in:
Sebastien Bourdeauducq 2015-10-19 19:41:18 +08:00
parent 1f89900b16
commit ee283575d8
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ class DivisionCase(SimCase, unittest.TestCase):
yield self.tb.dut.start_i.eq(1)
yield
yield self.tb.dut.start_i.eq(0)
yield
while not (yield self.tb.dut.ready_o):
yield
self.assertEqual((yield self.tb.dut.quotient_o), dividend//divisor)