lib.cdc: fix tests to actually run.

This commit is contained in:
whitequark 2018-12-29 15:02:44 +00:00
parent 849c649259
commit 39eb2e8fa7
2 changed files with 3 additions and 1 deletions

View file

@ -860,7 +860,7 @@ class Delay(Statement):
class Tick(Statement):
def __init__(self, domain):
def __init__(self, domain="sync"):
self.domain = str(domain)
def _rhs_signals(self):

View file

@ -21,6 +21,7 @@ class MultiRegTestCase(FHDLTestCase):
yield Tick()
self.assertEqual((yield o), 1)
sim.add_process(process)
sim.run()
def test_basic(self):
i = Signal(reset=1)
@ -38,3 +39,4 @@ class MultiRegTestCase(FHDLTestCase):
yield Tick()
self.assertEqual((yield o), 0)
sim.add_process(process)
sim.run()