The invention is a state machine having a host controller that controls a
level-i controller, wherein the level-1 controller controls the level-2
controller. The level-2 controller controls system component controllers,
which in turn control system components to execute a process segment. For
example, the machine includes a host controller that selects a set of
states to be executed, a level-1 controller that activates the set of
states in a predetermined order, wherein each state includes commands,
and a level-2 controller that controls system components according to the
commands. A method of executing a process includes identifying a set of
states to be executed, issuing state commands that need to be issued to
execute the current state in the set of states, and activating a next
state only after all expected status reports have been received for the
current state.