1. Design a three-bit binary counter that iterates over the following states when X = 0 and repeats
000 010 110 011 101 001 100 111
When X = 1, the counter should go through the states in the reverse order
Use one JK, one T, and one D flip-flop, in any order
The solution must have also:
(a) The input equations for every flip-flop
(b) Circuit diagram for the counter