From: Sebastien Bourdeauducq Date: Mon, 10 Jun 2013 20:49:05 +0000 (+0200) Subject: genlib/fsm: fix handling of zero delayed_enter X-Git-Tag: 24jan2021_ls180~2099^2~560 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aea3b594327907f0263ec72c7f36387ad1c84311;p=litex.git genlib/fsm: fix handling of zero delayed_enter --- diff --git a/migen/genlib/fsm.py b/migen/genlib/fsm.py index 300e8e9f..9463f002 100644 --- a/migen/genlib/fsm.py +++ b/migen/genlib/fsm.py @@ -20,7 +20,7 @@ class FSM: self.actions.append([self.next_state(target_state)]) else: # alias - setattr(self, name, getattr(self, target_state)) + setattr(self, name, target_state) def reset_state(self, state): self._state.reset = state