Initial change for pipeline function support.
This commit removes cur_state register and its transition logic for pipeline
function. In a pipeline function, the datapath is controlled by a set of enable
signals. Enable signal corresponds to a state in FSM.
Currently this code only supports straight line of code, meaning all states have
only 1 transition except the initial idle state has 2 transitions.