lib.cdc: adjust ResetSynchronizer for new CDC primitive conventions.

Refs #97.
This commit is contained in:
whitequark 2019-09-12 13:48:45 +00:00
parent 8f659b6cd6
commit 9893e3c044
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ __all__ = ["AsyncResetSynchronizer"]
"a clock domain name as an argument, not a clock domain object")
class CompatResetSynchronizer(NativeResetSynchronizer):
def __init__(self, cd, async_reset):
super().__init__(async_reset, cd.name)
super().__init__(async_reset, domain=cd.name)
AsyncResetSynchronizer = CompatResetSynchronizer

View file

@ -70,7 +70,7 @@ class MultiReg(Elaboratable):
class ResetSynchronizer(Elaboratable):
def __init__(self, arst, domain="sync", n=2):
def __init__(self, arst, *, domain="sync", n=2):
self.arst = arst
self.domain = domain