Forum Discussion
Altera_Forum
Honored Contributor
15 years agofsm debuging
fsm debugging Hi I started to check the fsm on real time and got some strange behaviors. I tried working with SignalTap but I didn't like the way he display the waves and we didn't really get ho...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- you can always output a "ready" or "valid" signal from your state machine to enable other reigsters. --- Quote End --- like so when I use the enable like a valid flag --- Quote Start --- S_Pwm_valid_reg: process (System_Clk_50MHz,System_N_Reset) begin if (System_N_Reset = bit_low) then M_P_PWM <= bit_low; elsif rising_edge (System_Clk_50MHz) then if (M_P_en = bit_high) M_P_PWM <= S_M_P_PWM else M_P_PWM <= bit_low; end if; end process S_Pwm_valid_reg; --- Quote End ---