EveryCircuit
Contact
Reviews
Home
jason9
modified 6 years ago

5 Bit Binary to Decimal

2
6
231
02:24:30
It’s a bit of a mess, I know, but I tested it and it works flawlessly. I’ll try to make another one, only a bit cleaner. In case anyone is wondering why I made this, this can be used for viewing the output of a 4 bit adder (carry-out is the fifth bit).
published 6 years ago
Crypto_
6 years ago
That's awesome. Did you come up with this by yourself? Whatever the case, it's great.
jason9
6 years ago
Yeah, I made I myself. Which is why its a total mess. No planning ahead, only making what was needed as I needed it, and getting less organized as the workspace got more cluttered.
jason9
6 years ago
*I made it myself
Crypto_
6 years ago
I'm curious @jason9, do you know about Karnaugh tables? I often start from there to get a headstart in a logic circuit, then I modify it a bit in order to "simplify" it.
jason9
6 years ago
I’ve heard about them, but never learned how to use one. My thought process generally goes something like this when making a logic circuit: “Ok, so, I need to flip that bit if such and such bits are on and such and such other bits are off, so I should put these gates here to test for that, and then feed that into a XOR to flip that other bit if that test comes out as true” and then I just repeat that, and reuse outputs if I need it in more than one place instead of constructing another copy of that circuit. And because I didn’t plan for anything, it became a giant inefficient mess that got the job done.
jason9
6 years ago
Also, I just made this last night and I already have no clue how it works. Now that I look at this circuit closer, I see I didn’t use logic to flip bits much, instead I mostly used logic to determine bits, with a little bit of bit flipping.
jason9
6 years ago
I think what I did here was I made several cases (like for 0-9, 10-19, 20-29, and 30-31) and then did logic for each case to determine what bits are active when, and make sure that logic outputs only when that case is active, and then I OR gate all those together. At least, thats what I did for the fourth bit in the display to the right.
Crypto_
6 years ago
I see. That's one way to do it. I haven't done a circuit with a similar function yet, but I think I would use a logic of carries instead of planning ahead each individual bits. From what I've seen so far, these kind of circuits tend to require much less logic gates.
Crypto_
6 years ago
There are some online Karnaugh maps calculators. Generally you simply write the desired logic state of the output for each possible input combinations. I think you would find it useful. Of course there are tutorials online too to better understand how it works.
jason9
6 years ago
I’ve seen at least one online calculator, but for bigger numbers of bits there were so many gates with so many inputs each! And in my 5 Bit Binary to Decimal 2.0 circuit I do use some carries. Check that one out.

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy