Experiment 4 - Half Adder and Half Subtractor
Experiment 4 - Half Adder and Half Subtractor
To design, setup and verify the half adder and half subtractor circuits.
OBJECTIVES:
1) Draw the logic symbol & truth table for half adder and half subtractor
2) Design half adder and half subtractor circuits using XOR and basic gates
3) Implement half adder and half subtractor circuits using NAND gates only
THEORY:
Digital computers perform a variety of information processing tasks. Among the basic
tasks encountered are the various arithmetic operations. The most basic arithmetic operation is
the addition of two binary digits.
Adder circuits take two bits as input and add one bit with other bit. It gives out two
outputs, sum and carry. There are two types of Adders:
1. Half Adder
2. Full Adder
Subtractor circuits take two bits as input and subtract one bit from the other bit. Similar to
adders, it gives out two outputs, difference and borrow (‘carry’ in the case of Adder). There are
two types of subtractors:
1. Half Subtractor
2. Full Subtractor
Half Adder:
A combinational circuit that performs the addition of two bits is called a half adder. It has
two binary inputs (augend and addend bits) and two binary outputs (sum and carry bits). It adds
two inputs (A and B) and produces the sum (S) and the carry (C) bits as outputs. It is an
arithmetic circuit used to perform the arithmetic operation of addition of two single bit words.
Half Subtractor:
Note:
1. In an adder circuit, if the number of 1’s (to be added) in the input is ODD, then SUM = 1
2. In an adder circuit, if the number of 1’s (to be added) in the input is EVEN, then SUM= 0
3. In an adder circuit, if the number of 1’s is 2 or more, then CARRY = 1
4. The expression for SUM and DIFFERENCE is always same
5. In a subtractor circuit, if there is (0-1), then BORROW = 1
PROCEDURE:
RESULT:
i) The half adder circuit using XOR and basic gates & also with NAND gates alone.
ii) The half subtractor circuit using XOR and basic gates & also with NAND gates
alone.
HALF ADDER:
Logical Expression:
K-map for Sum: K-map for Carry:
̅ ̅
Logical Expression:
K-map for Difference: K-map for Borrow:
̅ ̅ ̅