Implementation Asynchronous finite state machine

Hi,

i have two energy sources, i have to switch between two energy sources based on output voltage from each source.