2-bit up/down counter using gates

Status
Not open for further replies.

EngIntoHW

Member
Hey,

I was trying to design a 2-bit up/down counter using gates, and came up with the following design:

When SEL = 0 & CLK = 1 : Output <- Output + 1
When SEL = 1 & CLK = 1 : Output <- Output - 1
When CLK = 0 : Output remains unchanged.
*The DELAY block comprises even number of INV gates.


What is your opinion?
Will it work?

I'd also love to hear any other suggestions you might have.

Thank you
 

Attachments

  • 2-bit up-down counter using gates.png
    25.9 KB · Views: 1,803
Last edited:
Here is how I would do it. I used a modified Johnson counter. It is synchronous, and Grey-code, so can be decoded glitchlessly. It counts up as long as UP is true, and counts down as long as UP is false. It changes state on rising edges of Clk.
 

Attachments

  • 2BitUPs.png
    332.4 KB · Views: 572
  • 2BitUD.png
    43.8 KB · Views: 757
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…