Question

3. Write behavioral code for up/down 2-bit binary counter (same as q2).Use state machine. Show the state machine diagram and implement code that reflects the state machine. Following is a

template that you can use-

Fig: 1

Fig: 2