Altera_Forum
Honored Contributor
12 years agoSimple State Machine Problem
Hi,
I attach a basic four state machine project file built with schematic and state machine wizard via Quartus 2 sp2. Its basic operation theoretically must follow this table below: sentido = 0; enable = 0; state = Scurr sentido = 0; enable = 1; state = Sn-1 sentido = 1; enable = 0; state = Scurr sentido = 1; enable = 1; state = Sn+1 Scurr = current state The states are: s0 (Q1 = 1; Q0 = 1), s1 (Q1 = 1; Q0 = 0), s2 (Q1 = 0; Q0 = 0), s3 (Q1 = 0; Q0 = 1), My Cyclone II FPGA Starter Board is not showing the LEDG[1] and LEDG[0] leds alternating their values at 1,49 Hz according to my SW[1] and SW[0] switches states ("10" or "00"). "sentido" in portuguese is equal to "direction". Any idea why this project file doesn´t produce the desired outputs? Regards Jaraqui