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: 1334bd6a8b8a
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: 13650acbbcb6
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Oct 13, 2019

  1. compat.fhdl.bitcontainer: update Value.wrap call.

    whitequark committed Oct 13, 2019
    Copy the full SHA
    d2c4c7c View commit details
  2. Copy the full SHA
    13650ac View commit details
Showing with 7 additions and 2 deletions.
  1. +1 −1 nmigen/compat/fhdl/bitcontainer.py
  2. +6 −1 nmigen/compat/fhdl/decorators.py
2 changes: 1 addition & 1 deletion nmigen/compat/fhdl/bitcontainer.py
Original file line number Diff line number Diff line change
@@ -18,4 +18,4 @@ def bits_for(n, require_sign_bit=False):

@deprecated("instead of `value_bits_sign(v)`, use `v.shape()`")
def value_bits_sign(v):
return ast.Value.wrap(v).shape()
return ast.Value.cast(v).shape()
7 changes: 6 additions & 1 deletion nmigen/compat/fhdl/decorators.py
Original file line number Diff line number Diff line change
@@ -45,6 +45,11 @@ class CompatCEInserter(_CompatControlInserter):
_native_inserter = NativeEnableInserter


class CompatClockDomainsRenamer(NativeDomainRenamer):
def __init__(self, cd_remapping):
super().__init__(cd_remapping)


ResetInserter = CompatResetInserter
CEInserter = CompatCEInserter
ClockDomainsRenamer = NativeDomainRenamer
ClockDomainsRenamer = CompatClockDomainsRenamer