Question

2. Write behavioral code for a 2-bit up/down counter. The counter should have synchronous reset. (State Machine is not needed)

Fig: 1