Design, using SR flip-flops and an external input x, a circuit that will count modulo 8 (i.e. from zero to eight, then back to zero and repeat). The circuit should only count when x = 1. If x = 0, there should be no change of state.
a. Draw the State diagram
b. From the state diagram, derived the circuit excitation and output/state table
c. Use K-maps to derive the necessary logic equations for the flip-flop inputs
d. Draw the sequential circuit.