EveryCircuit
Contact
Reviews
Home
jason9
modified 7 years ago

2 Bit Binary Subtractor

4
3
144
01:20:50
This subtracts the top two inputs from the bottom two and displays the output (including negatives and it even shows a minus sign with the negatives). I was also gonna make a binary divider with a [quotient]r[remainder] format for the output (for example 8/5 would be 5r3) but it was too confusing so I gave up pretty much before I started.
published 7 years ago
sshsslfun
7 years ago
Nice. Id like to see if it could reach to 10, but maybe not since EC has a limited space, which is something I wish Igor added, an option to select your workspace size. But it seems like Igor has abandoned EC from my POV, maybe its normal to get only one update per year. I wonder what the next update will be. Anyways, I remember I made a 64-bit memory chip with logic gates last year during Irma( Im in florida thats why). It was ALOT of logic gates, but mainly flip flops. Came pretty handy for storing analog data from Arduinos
hurz
7 years ago
You know, all you need is an adder todo subtraction? A + (-B) = C so -B is the two's complement of B and is done by inversion + 1.
jason9
7 years ago
Yes @hurz, that’s what I did. I added the two’s complement of one input to the other input (with the carry in of the adder locked at one) and then added a few more gates in order to display negatives properly. @sshsslfun, I made a 4 bit version if you wanna see.

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