My University Notes
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Week 5 - Adder - Subtractor

Addition

Half-Adder

A+B

A B Sum Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1

Uses an XOR gate for the sum and a AND gate for the carry

If you combine a XOR and a AND gate you can add together 2 bits

Full-Adder

To Add 4 bits together you would need 4 Full-Adders

Subtraction

Uses 2s-Compliment

Steps

  1. Flip the bits
  2. Add 1
  3. Add them together

Both Adder and Subtractor

*Put Notes Here

Videos