global FSM simulation