test/divider: subtests
This commit is contained in:
parent
e0899c1424
commit
8817716d5f
|
@ -14,6 +14,7 @@ class DivisionCase(SimCase, unittest.TestCase):
|
||||||
def gen():
|
def gen():
|
||||||
for dividend in range(16):
|
for dividend in range(16):
|
||||||
for divisor in range(1, 16):
|
for divisor in range(1, 16):
|
||||||
|
with self.subTest(dividend=dividend, divisor=divisor):
|
||||||
yield self.tb.dut.dividend_i.eq(dividend)
|
yield self.tb.dut.dividend_i.eq(dividend)
|
||||||
yield self.tb.dut.divisor_i.eq(divisor)
|
yield self.tb.dut.divisor_i.eq(divisor)
|
||||||
yield self.tb.dut.start_i.eq(1)
|
yield self.tb.dut.start_i.eq(1)
|
||||||
|
|
Loading…
Reference in New Issue