Design a system with one input called “Up†such that when “Upâ€equals 1, the machine counts 2, 3, 4, 5, 6, and repeat. If the “Upâ€input equals 0, the machine counts down 6, 5, 4, 3, 2, andrepeat.
Show the State Transition Diagram, State Transition table,K-maps, and equations assuming JK flip flops and AND/OR/NOTcombinational logic. Make sure to indicate on your State TransitionDiagram what happens if the system initially is in one of theunused states (0, 1, or 7).