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: 68dae9f50e82
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: 3448953f61a7
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Dec 22, 2018

  1. compat.genlib.fsm: fix naming for non-Signal LHS.

    whitequark committed Dec 22, 2018
    Copy the full SHA
    3448953 View commit details
Showing with 3 additions and 2 deletions.
  1. +3 −2 nmigen/compat/genlib/fsm.py
5 changes: 3 additions & 2 deletions nmigen/compat/genlib/fsm.py
Original file line number Diff line number Diff line change
@@ -78,8 +78,9 @@ def on_unknown_statement(self, node):
except KeyError:
related = node.target if isinstance(node.target, Signal) else None
next_value = Signal(node.target.shape(),
name="{}_fsm_next".format(node.target.name))
next_value_ce = Signal(name="{}_fsm_next_ce".format(node.target.name))
name=None if related is None else "{}_fsm_next".format(related.name))
next_value_ce = Signal(
name=None if related is None else "{}_fsm_next_ce".format(related.name))
self.registers.append((node.target, next_value_ce, next_value))
return next_value.eq(node.value), next_value_ce.eq(1)
else: