- (−) `layout_get` **brk**
- (−) `layout_partial` **brk**
- (−) `Record` id
- - (−) `resetsync` ?
- - (−) `AsyncResetSynchronizer` ?
+ - (+) `resetsync` ?
+ - (+) `AsyncResetSynchronizer` **obs** → `.lib.cdc.ResetSynchronizer`
- (−) `roundrobin` ?
- (−) `SP_WITHDRAW`/`SP_CE` ?
- (−) `RoundRobin` ?
--- /dev/null
+from ...tools import deprecated
+from ...lib.cdc import ResetSynchronizer as NativeResetSynchronizer
+
+
+__all__ = ["AsyncResetSynchronizer"]
+
+
+@deprecated("instead of `migen.genlib.resetsync.AsyncResetSynchronizer`, "
+ "use `nmigen.lib.cdc.ResetSynchronizer`; note that ResetSynchronizer accepts "
+ "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)
+
+
+AsyncResetSynchronizer = CompatResetSynchronizer