From: whitequark Date: Sat, 22 Dec 2018 02:05:49 +0000 (+0000) Subject: compat: use nicer names for next_value/next_value_ce signals. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b8f3c0a0cfc2ae9fe4f255f89235349af0344a6;p=nmigen.git compat: use nicer names for next_value/next_value_ce signals. --- diff --git a/nmigen/compat/genlib/fsm.py b/nmigen/compat/genlib/fsm.py index 88786e8..e817894 100644 --- a/nmigen/compat/genlib/fsm.py +++ b/nmigen/compat/genlib/fsm.py @@ -77,8 +77,9 @@ class _LowerNext(ValueTransformer, StatementTransformer): next_value_ce, next_value = self._get_register_control(node.target) except KeyError: related = node.target if isinstance(node.target, Signal) else None - next_value = Signal(node.target.shape()) - next_value_ce = Signal() + 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)) self.registers.append((node.target, next_value_ce, next_value)) return next_value.eq(node.value), next_value_ce.eq(1) else: