diff --git a/migen/genlib/fsm.py b/migen/genlib/fsm.py index 6ad3083cd..7a2ee6190 100644 --- a/migen/genlib/fsm.py +++ b/migen/genlib/fsm.py @@ -74,7 +74,7 @@ class FSM(Module): def delayed_enter(self, name, target, delay): if self.finalized: raise FinalizeError - if delay: + if delay > 0: state = name for i in range(delay): if i == delay - 1: