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: 318274d5a02a
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: 476ce15f041c
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 1, 2020

  1. back.rtlil: do not consider unreachable array elements when legalizing.

    Otherwise we produce invalid RTLIL.
    whitequark committed Jan 1, 2020
    Copy the full SHA
    476ce15 View commit details
Showing with 3 additions and 1 deletion.
  1. +3 −1 nmigen/back/rtlil.py
4 changes: 3 additions & 1 deletion nmigen/back/rtlil.py
Original file line number Diff line number Diff line change
@@ -374,7 +374,9 @@ def on_ArrayProxy(self, value):
elem = value.elems[-1]
return self.match_shape(elem, *value.shape())
else:
raise LegalizeValue(value.index, range(len(value.elems)), value.src_loc)
max_index = 1 << len(value.index)
max_elem = len(value.elems)
raise LegalizeValue(value.index, range(min(max_index, max_elem)), value.src_loc)


class _RHSValueCompiler(_ValueCompiler):