From: Sebastien Bourdeauducq Date: Wed, 23 Sep 2015 14:38:10 +0000 (+0800) Subject: fsm: NextState and NextValue should derive from _Statement X-Git-Tag: 24jan2021_ls180~2099^2~3^2~44 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33f344b92afe1d119a9bb5cb5087b812ad54b447;p=litex.git fsm: NextState and NextValue should derive from _Statement --- diff --git a/migen/genlib/fsm.py b/migen/genlib/fsm.py index 5bfa3575..cab83bb8 100644 --- a/migen/genlib/fsm.py +++ b/migen/genlib/fsm.py @@ -1,7 +1,7 @@ from collections import OrderedDict from migen.fhdl.structure import * -from migen.fhdl.structure import _Slice, _ArrayProxy +from migen.fhdl.structure import _Statement, _Slice, _ArrayProxy from migen.fhdl.module import Module, FinalizeError from migen.fhdl.visit import NodeTransformer from migen.fhdl.bitcontainer import value_bits_sign @@ -16,12 +16,12 @@ class AnonymousState: # do not use namedtuple here as it inherits tuple # and the latter is used elsewhere in FHDL -class NextState: +class NextState(_Statement): def __init__(self, state): self.state = state -class NextValue: +class NextValue(_Statement): def __init__(self, target, value): self.target = target self.value = value