spinal.lib.fsm
State machine
val fsm = new StateMachine { val sIdle: State = StateEntryPoint{ ... } val sState1: State = new State { whenIsActive{ goto(sIdle) } } ... }
Set the condition for state transitions
goto() will only have an effect, if condition is True
(Since version ) see corresponding Javadoc for more information.
State machine