Hi folks, I just stumbled over something funny:
I usually write FSMs with registered outputs similar to this example:
--
-- $Id:
-- ARCHITECTURE behavioral OF DEC_Controller_Modi IS
TYPE DCM_state IS (Wait4Activation, Run_ECB, Run_CBC, Run_CFB, Run_OFB, Run_CTR); SIGNAL DCM_CurrentState : DCM_state; SIGNAL DCM_NextState : DCM_state;
BEGIN -- ARCHITECTURE behavioral
-- purpose: StateRegister for DEC_Controller FSM -- type : sequential -- inputs : Clock, Reset, DCM_NextState -- outputs: DCM_CurrentState DCM_sync : PROCESS (Clock, Reset) IS BEGIN -- PROCESS DCM_sync IF Reset = '0' THEN -- asynchronous reset (active low) DCM_CurrentState