design an up/down counter that has an input switch x and counts as follows:
if x = 0, the counter counts 1,2,3,4,5,6,7 and repeats
if x = 1, the counter counts 7,6,5,4,3,2,1 and repeats.
The counter should be designed using D Flip FLips and the one hot method. Draw the asm chart and final logic diagram.