Prev Problem
Next Problem

64. Full Adder

Build a 1-bit full adder using two half adders and an OR gate.

Requirements

  • Module: full_adder_struct
  • Inputs: a, b, cin
  • Outputs: sum, cout
  • First half adder computes a ⊕ b.
  • Second half adder computes (a⊕b) ⊕ cin.
  • OR gate merges the carries.

Behavior

  • Inputs: a, b, cin
  • Outputs: sum, cout
  • Truth table:
abcinsumcout
00000
00110
01010
01101
10010
10101
11001
11111