def test_formal(self):
def generic_test(txxd):
dut = tXXDController(txxd)
- self.assertFormal(dut, mode="bmc", depth=4)
+ self.assertFormal(dut, mode="bmc", depth=txxd+1 if txxd is not None else 10)
generic_test(None)
generic_test(0)
def test_formal(self):
def generic_test(timeout):
dut = _AntiStarvation(timeout)
- self.assertFormal(dut, mode="bmc", depth=4)
+ self.assertFormal(dut, mode="bmc", depth=timeout+1)
generic_test(0)
#generic_test(1)
class RefreshSequencerTestCase(FHDLTestCase):
def test_formal(self):
- dut = RefreshSequencer(abits=14, babits=3, trp=5, trfc=5, postponing=1)
- self.assertFormal(dut, mode="bmc", depth=4)
+ trp = 5; trfc = 5
+ dut = RefreshSequencer(abits=14, babits=3, trp=trp, trfc=trfc, postponing=1)
+ self.assertFormal(dut, mode="bmc", depth=trp+trfc+1)
class RefreshTimerTestCase(FHDLTestCase):
def test_formal(self):
def generic_test(tREFI):
dut = RefreshTimer(tREFI)
- self.assertFormal(dut, mode="bmc", depth=4)
+ self.assertFormal(dut, mode="bmc", depth=tREFI+1)
[generic_test(_) for _ in [2, 5, 10]]
class RefreshPostponerTestCase(FHDLTestCase):