if self.callback is not None:
return self.callback(self, s)
-class SimCase(unittest.TestCase):
+class SimCase:
TestBench = SimBench
def setUp(self, *args, **kwargs):
from migen.test.support import SimCase, SimBench
-class EncCase(SimCase):
+class EncCase(SimCase, unittest.TestCase):
class TestBench(SimBench):
def __init__(self):
self.submodules.dut = Encoder(8)
self.assertEqual(i, 1<<o)
self.run_with(cb, 256)
-class PrioEncCase(SimCase):
+class PrioEncCase(SimCase, unittest.TestCase):
class TestBench(SimBench):
def __init__(self):
self.submodules.dut = PriorityEncoder(8)
self.assertGreaterEqual(i, 1<<o)
self.run_with(cb, 256)
-class DecCase(SimCase):
+class DecCase(SimCase, unittest.TestCase):
class TestBench(SimBench):
def __init__(self):
self.submodules.dut = Decoder(8)
from migen.test.support import SimCase, SimBench
-class SyncFIFOCase(SimCase):
+class SyncFIFOCase(SimCase, unittest.TestCase):
class TestBench(SimBench):
def __init__(self):
self.submodules.dut = SyncFIFO([("a", 32), ("b", 32)], 2)