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: 3c95299c4e3b
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: a57c72d60668
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 28, 2019

  1. back.rtlil: fix off-by-one in Part legalization.

    Fixes #52.
    whitequark committed Mar 28, 2019
    Copy the full SHA
    a57c72d View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 nmigen/back/rtlil.py
2 changes: 1 addition & 1 deletion nmigen/back/rtlil.py
Original file line number Diff line number Diff line change
@@ -571,7 +571,7 @@ def on_Part(self, value):
if isinstance(offset, ast.Const):
return self(ast.Slice(value.value, offset.value, offset.value + value.width))
else:
raise LegalizeValue(value.offset, range((1 << len(value.offset)) - 1))
raise LegalizeValue(value.offset, range((1 << len(value.offset))))

def on_Repl(self, value):
raise TypeError # :nocov: