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: 9307a316781d
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: a0d555a9fc59
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Dec 14, 2018

  1. compat.fhdl.module: update deprecation messages.

    whitequark committed Dec 14, 2018
    Copy the full SHA
    baba472 View commit details
  2. compat: add genlib.cdc.MultiReg shim.

    whitequark committed Dec 14, 2018
    Copy the full SHA
    a0d555a View commit details
Showing with 10 additions and 6 deletions.
  1. +6 −6 nmigen/compat/fhdl/module.py
  2. 0 nmigen/compat/genlib/__init__.py
  3. +4 −0 nmigen/compat/genlib/cdc.py
12 changes: 6 additions & 6 deletions nmigen/compat/fhdl/module.py
Original file line number Diff line number Diff line change
@@ -59,21 +59,21 @@ def __setattr__(self, name, value):


class _CompatModuleSpecials(_CompatModuleProxy):
@deprecated("TODO")
@deprecated("instead of `self.specials.<name> =`, use `m.submodules.<name> =`")
def __setattr__(self, name, value):
self.__iadd__(value)
self._cm._submodules += (name, value)
setattr(self._cm, name, value)

@deprecated("TODO")
@deprecated("instead of `self.specials +=`, use `m.submodules +=`")
def __iadd__(self, other):
self._cm._fragment.specials |= set(_flat_list(other))
self._cm._submodules += [(None, e) for e in _flat_list(other)]
return self


class _CompatModuleSubmodules(_CompatModuleProxy):
@deprecated("instead of `self.submodules.<mod> =`, use `m.submodules.<mod> =`")
@deprecated("instead of `self.submodules.<name> =`, use `m.submodules.<name> =`")
def __setattr__(self, name, value):
self._cm._submodules += [(name, e) for e in _flat_list(value)]
self._cm._submodules += (name, value)
setattr(self._cm, name, value)

@deprecated("instead of `self.submodules +=`, use `m.submodules +=`")
Empty file.
4 changes: 4 additions & 0 deletions nmigen/compat/genlib/cdc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from ...genlib.cdc import MultiReg


__all__ = ["MultiReg"]