Open
Description
I was thinking something like:
@fsm.machine
class F1:
clk = Clock()
go = Input(types.i1)
valid = Input(types.i1)
data = Input(types.i4)
@fsm.state(initial=True)
def a(ports, next):
with If(ports.go):
next.b()
EndIf()
@fsm.state
def b(ports, next):
with If(ports.valid):
with If(ports.data == 3):
next.a()
EndIf()
EndIf()