EveryCircuit
Contact
Reviews
Home
BigKhalPablo
modified 8 years ago

4 bit full Adder Subtractor

6
0
258
03:34:55
The 4 first (up left) logic inputs are var A. The 4 next are B. The 9th input is the add/sub select. If 0 , the output will be A+B in hex. If 1, it will beA-B. The red led indicates carry out. The addition is simple, if your result gets bigger than F (15 in hex) the display show the 4th less significant bits and the led gets on. The substraction works makind the A2 complement of B that is -B + 1. The xor gates make (if the 9th input is on) B -> (-B). And the carry in is activated in the first full adder, so -B + 1. The carry out is connected to the red led. In subtraction you always get carry out (in case A>B). If B>A you will get the complement (1001->0110+1=0111) and no carry out. If A=B you will get 0000 as result and carry out.
published 8 years ago

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