SourceRTL Design Directory

Half Adder

Half adder is a combinational arithmetic circuit. Its functionality is to add two 1-bit binary digits to produce a sum bit and carry as the output.

Half adder truth table:

ABSum (S)Carry (Co)
0000
0110
1010
1101

Boolean equation for sum and carry can be written as :

  • Sum = A xor B
  • Carry = A and B

Half adder can be modelled in verilog using data flow representation:

assign s  = a ^ b;
assign co = a & b;