switchall (Expression)
{
case Val1:
case Val2:
...
break;
case Val3:
...
break;
case ValN:
...
break;
}
The
entity SomeFSM
{
port in logic clk, reset;
port in logic Start;
enum State
{
Initial,
Reading,
Writing,
}
signal State CurrentState = State.Initial;
process StateFlow (clk.rising)
{
switchall(CurrentState)
{
case State.Initial:
break;
case State.Reading:
break;
}
}
}
See