bee.games
Digital circuit: Binary adderCalculator

Digital circuit: Binary adder

Digital circuit: Binary adder

Calculator

Okay, I may know some stuff about Boolean logic, but as far as digital circuits go I am pretty much clueless how to implement them properly. This was all just an improvisation done for an unrealistic simulation in flash. Use the keypad down to the left to add a number, but be patient because the logic (especially the binary-coded decimal converter) works very slowly and it will take a little while for the result to turn up on the LCD display. The propagation delay is highly exaggerated as each tick can cause a single state change in each gate. This means that it will for example always take exactly two updates for two gates in series to propagate a signal. This also leads to an interesting situation where the flip-flops (bit storage) can remain in a metastable state indefinitely, as you can see wherever the circuits are flashing. This circuit adds two numbers together using nothing but NAND and NOT gates. A NAND gate gives a low output if both its inputs are high; else it will give a high output. A NOT gate simply reverses the input for the output. A NOT gate could easily be produced from a NAND gate by connecting together the NAND gates inputs to a single input. This would seriously waste a lot of space in the circuit image so instead I treat each blue NAND gate as a not gate if it only has 1 input. The gate's (blue) inputs are to the left and right of the pixel, and the output is either above or below it. Wires are yellow, bridges (where two wires can cross) are purple, and buttons are red. Some common structures that you can find in the circuit are flip-flops, small borderless squares that can store a single bit. I usually put these in pairs so to prevent their last value to affect the new input value. There are also several binary adders, large green boxes. These add two binary numbers together and can be connected in series to handle infinitely large binary numbers. Similarly there are binary subtractors up in the corner, smaller green boxes. Also you can find a 2 to 4 and a 4 to 16 decoder in a couple of places. I’d love to hear your opinion on this circuit, suggestions and criticisms are most welcome.

DesenvolvedorDonitz
CategoriaCalculator

About BeeGames social

Playground and Play together are the BeeGames social layer — so you're never just playing alone.

What is a Playground?

Your Playground is your own personal game homepage. Pin the games you love, give it a name and a short bio, then make it public to share your personal arcade with anyone.

How do I use my Playground?

On any game page, tap “Playground” to pin that game. Head to My Playground to edit its name, bio and layout, then share your public link with friends.

What is Play together?

Play together lets you co-play the same game with friends in real time. Open a game room and everyone can play side by side while chatting in the room — like crowding around one screen, online.

How do I play with friends?

Tap “Play together” on a game page, pick a public room or a private one with a password, then share the room link with friends. You can also browse and join open rooms from the Lobby.