mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge branch 'master' of github.com:m-labs/migen
This commit is contained in:
commit
506ac0f780
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class FSM(Module):
|
||||||
cases = dict((self.encoding[k], lns.visit(v)) for k, v in self.actions.items() if v)
|
cases = dict((self.encoding[k], lns.visit(v)) for k, v in self.actions.items() if v)
|
||||||
self.comb += [
|
self.comb += [
|
||||||
self.next_state.eq(self.state),
|
self.next_state.eq(self.state),
|
||||||
Case(self.state, cases)
|
Case(self.state, cases).makedefault(self.encoding[reset_state])
|
||||||
]
|
]
|
||||||
self.sync += self.state.eq(self.next_state)
|
self.sync += self.state.eq(self.next_state)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue