mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
migen/genlib/fsm: fix delayed_enter when delay is negative (can happen when delay is generated from others parameters)
This commit is contained in:
parent
fd16b66bdf
commit
79624ce849
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue