Skip to content

Commit 33f344b

Browse files
committedSep 23, 2015
fsm: NextState and NextValue should derive from _Statement
1 parent 8935ca2 commit 33f344b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

Diff for: ‎migen/genlib/fsm.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from collections import OrderedDict
22

33
from migen.fhdl.structure import *
4-
from migen.fhdl.structure import _Slice, _ArrayProxy
4+
from migen.fhdl.structure import _Statement, _Slice, _ArrayProxy
55
from migen.fhdl.module import Module, FinalizeError
66
from migen.fhdl.visit import NodeTransformer
77
from migen.fhdl.bitcontainer import value_bits_sign
@@ -16,12 +16,12 @@ class AnonymousState:
1616

1717
# do not use namedtuple here as it inherits tuple
1818
# and the latter is used elsewhere in FHDL
19-
class NextState:
19+
class NextState(_Statement):
2020
def __init__(self, state):
2121
self.state = state
2222

2323

24-
class NextValue:
24+
class NextValue(_Statement):
2525
def __init__(self, target, value):
2626
self.target = target
2727
self.value = value

0 commit comments

Comments
 (0)
Please sign in to comment.