Develop and implement the counter that counts the sequence 000, 100, 111, 010, 011 and repeats. Include a reset input that, whenever it is asserted, immediately resets the circuit to 000. Also include an input called "count" which when asserted enables the circuit to transition between states, but when deasserted leaves the circuit in the most recent state entered. Enable the circuit to be sequenced by either manually depressing a pushbutton, or by the square wave waveform generator (operating at approximately 1.0 Hz) on the breadboard station.
Design the counter using D-flip-flops such that the state codes are the output values of the circuit. For example, when the circuit is in state 011, the output LED's display "off" "on" "on". Thus, no output equations need to be designed. Rather, only flip-flop input equations need to be derived for the circuit.