ASM chart 2 bit up-down counter
Let the mode control input is M.
If M = 1…. Up counting and If M = 1…. Down counting.