Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/nmigen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f44ca291c129
Choose a base ref
...
head repository: m-labs/nmigen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6cd9f7db1937
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Jan 26, 2019

  1. compat.fifo: fix _FIFOInterface deprecation wrapper.

    whitequark committed Jan 26, 2019
    Copy the full SHA
    2fb85a6 View commit details
  2. Copy the full SHA
    6cd9f7d View commit details
Showing with 19 additions and 3 deletions.
  1. +2 −2 doc/COMPAT_SUMMARY.md
  2. +1 −1 nmigen/compat/genlib/fifo.py
  3. +16 −0 nmigen/compat/genlib/resetsync.py
4 changes: 2 additions & 2 deletions doc/COMPAT_SUMMARY.md
Original file line number Diff line number Diff line change
@@ -173,8 +173,8 @@ Compatibility summary
- (−) `layout_get` **brk**
- (−) `layout_partial` **brk**
- (−) `Record` id
- () `resetsync` ?
- () `AsyncResetSynchronizer` ?
- (+) `resetsync` ?
- (+) `AsyncResetSynchronizer` **obs**`.lib.cdc.ResetSynchronizer`
- (−) `roundrobin` ?
- (−) `SP_WITHDRAW`/`SP_CE` ?
- (−) `RoundRobin` ?
2 changes: 1 addition & 1 deletion nmigen/compat/genlib/fifo.py
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@
__all__ = ["_FIFOInterface", "SyncFIFO", "SyncFIFOBuffered", "AsyncFIFO", "AsyncFIFOBuffered"]


@deprecated("attribute `fwft` must be provided to FIFOInterface constructor")
class CompatFIFOInterface(NativeFIFOInterface):
@deprecated("attribute `fwft` must be provided to FIFOInterface constructor")
def __init__(self, width, depth):
super().__init__(width, depth, fwft=False)
del self.fwft
16 changes: 16 additions & 0 deletions nmigen/compat/genlib/resetsync.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
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