E
Ehsan
Guest
Hello,
I have read in many places that the outputs of a finite state machine must be set to their default values in order to avoid unwanted latches. However, I have a design of an FSM in my mind in which some outputs at some states must keep their old values. For example assume "a" is an output of the FSM. Depending on the state, it can have one of these three assignments:
a <= '0';
a <= '1';
a <= a;
My question is if this is a good and common practice in designing FSMs for FPGAs, i.e. if we latch some outputs at some states.
Thanks!
I have read in many places that the outputs of a finite state machine must be set to their default values in order to avoid unwanted latches. However, I have a design of an FSM in my mind in which some outputs at some states must keep their old values. For example assume "a" is an output of the FSM. Depending on the state, it can have one of these three assignments:
a <= '0';
a <= '1';
a <= a;
My question is if this is a good and common practice in designing FSMs for FPGAs, i.e. if we latch some outputs at some states.
Thanks!