Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How to make 2bit or 4bit counter?

A topic by bidhanacharya created Feb 11, 2025 Views: 331 Replies: 3
Viewing posts 1 to 3

I tried everything from the internet. none of them working!!

(+1)

here is a 2 bit counter... its not the most optimized way but its in theory 2jk fliplops daisy chained.. in this one, i didnt group any elements together, just used the basic original (AND and NOT) also the clock is built in that can be found in the library


of course, we can improve on it, group it up and make it 4 bit

peaking through the 4b counter block you see

Peaking through a JK-FF you see 

inside of an SR latch 

and inside a NOR

what are the optimizations required here

depends on what you are optimizing for. for example using D flip flops uses less "basic" components than a jk flipflop. but in general I meant improvements more than optimization, things like you can add a reset pin and a preset input which would make the counter much more useful. for example as a program counter that supports jumps.