Design a state machine that mimics the operation of traffic light . I've already draw the state diagram, but don't know how to produce the minimal form of the logical equation corresponding to each flip-flop. Please use the following d flip flop and standard gate (And,NOT,,OR or NAND) and LEDs.
The state machine for this has 8 states. The initial state has to be red state. It should stay in that state for at least 4 clock cycles. Then it goes to the green state for at least 3 clock cycles. Finally it goes to yellow state for one clock xylem before going back to red state. To ensure the state machine starts in red state, it will need to have a single "reset" input that will set all of the d flip flop to the correct value. Additionally, it should have an input, which when asserted will allow the state machine to cycle to the red state but then stay there until input is de-asserted.
Please draw a Karnaugh map, determine the minimal forms of the state transition and output equation and draw the schematic of the circuit using D flip-flip.
Below is the state diagram I draw so far, but don't know how to use it to find the minimal form of the equation.
Thank you for any help!
State diagram:
Please use this D flip flip to design:
The state machine for this has 8 states. The initial state has to be red state. It should stay in that state for at least 4 clock cycles. Then it goes to the green state for at least 3 clock cycles. Finally it goes to yellow state for one clock xylem before going back to red state. To ensure the state machine starts in red state, it will need to have a single "reset" input that will set all of the d flip flop to the correct value. Additionally, it should have an input, which when asserted will allow the state machine to cycle to the red state but then stay there until input is de-asserted.
Please draw a Karnaugh map, determine the minimal forms of the state transition and output equation and draw the schematic of the circuit using D flip-flip.
Below is the state diagram I draw so far, but don't know how to use it to find the minimal form of the equation.
Thank you for any help!
State diagram:
Please use this D flip flip to design: