Forum Discussion
Altera_Forum
Honored Contributor
11 years agoGood design, bad design -> one-clock-states in state-machines
Hi, another question is giong through my mind: Is it possible (good design) to create one or more states which exit to next state without any condition. example:
if (rising_edge(...
Altera_Forum
Honored Contributor
11 years ago--------------------------------------------------------------------
-- State010
--------------------------------------------------------------------
when S010 =>
Signal_Data <= X"34";
Signal_Ctrl <='0';
current_state <= waitForMe ;
--------------------------------------------------------------------
-- waitForMe
--------------------------------------------------------------------
when waitForMe =>
Signal_Data <= X"34";
Signal_Ctrl <='0';
current_state <= S020;
--------------------------------------------------------------------
-- State020
-------------------------------------------------------------------- now it's safe.