You are on page 1of 7

LOGIC DESIGN - LAB

EXPERIMENT - 6

SUBTRACTORS: HALF SUBTRACTOR ,FULL SUBTRACTOR

Using “ Logic Tutor LT345 MK2”

Name: ………………………………………………….………

Group: …………………………………………………………
Second Level
Computer Engineer
AIM:
To design and verify Half subtractor and Full subtractor circuits using basic gates and universal gates.

A subtractor is a digital logic circuit in electronics that implements subtraction of numbers. Subtractors are classified into
two types: half subtractor and full subtractor. The half subtractor circuit has two inputs: A and B, which subtract two input
digits and generate a borrow and difference. The full subtractor circuit has three inputs: A ,B and C, which subtract the
three input numbers and generate a borrow and difference.

first look at the subtraction of single bits.

0-0 = 0

0-1 = 11

1-0 = 1

1-1 = 0

These are the least possible single-bit subtraction. But the result for 0-1 is 11. Though this problem can be solved
with the help of an XOR Gate, if you do care about the output, the subtract (difference) result must be re-written
as a 2-bit output.

Thus the above equations can be written as

0-0 = 00

0-1 = 11

1-0 = 01

1-1 = 00

Here the second ‘1’of the output ‘11’ becomes the borrow-out and the first ‘1’ is subtract of 2-1 =1 after borrow
1 from previous bit.

Eng. Noora Banaga 1


Practical of Half Subtractor :
There are two inputs and two outputs in a Half Subtractor. Inputs are named as A and B, and the outputs are named as
Difference (D) and Borrow (B).

Block diagram of half subtractor

Now complete the truth table of half Subtractor where Difference is the normal output and the Borrow is the borrow-
out .

Inputs Outputs
A B Difference Borrow
(S1) (S2) (LP1) (LP2)
0 0
0 1
1 0
1 1
Truth table

The Difference output of the binary subtraction is similar to that of an XOR operation while the Borrow output is similar
to that of an AND operation(of not A and B).

Now write the Boolean function of half subtractor for Difference and Borrow ( you can use Karnaugh Map to verify
your Boolean function) then draw logic circuit of Boolean function to represent Half subtractor after that draw it in
Logic Tutor LT345 K2 to represent these Half subtractor circuit where the inputs - A represent switch S1 , B as switch S2 -
and the Outputs – Difference represent LP1 and Borrow represent LP2.

Eng. Noora Banaga 2


Eng. Noora Banaga 3
Practical of Full Subtractor :
the full Subtractor has three inputs and two outputs. The two inputs are A and B, and the third input is a Borrow input
BIN (The Subtraction third bit is Borrow bit from the previous stage and is called Borrow -- in generally represented by
BIN.) The output is the Difference of three bits along with the Borrow. The output Borrow is called Borrow – out and is
represented by Borrow out is designated as BOUT, and the normal Difference output is designated as D.

Block diagram of Full Subtractor

Now complete the truth table of Full Subtractor where D is the normal output of Difference and the Bout is the Borrow-
out .

Inputs Outputs
A (S1) B (S2) BIN (S3) D (LP1) BOUT (LP2)
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Truth table

Now after complete truth table write the Boolean function of full subtractor for D and Bout ( you can use Karnaugh Map
to verify your Boolean function) then draw logic circuit of Boolean function to represent Full subtractor after that draw
it in Logic Tutor LT345 K2 to represent these full subtractor circuit where the inputs - A represent switch S1 , B as switch
S2 and Bin as switch S3 - and the Outputs – D represent LP1 and Bout represent LP2.

Eng. Noora Banaga 4


Eng. Noora Banaga 5
Exercise:

Determine the truth table of the output X ,Y and Z

Eng. Noora Banaga 6

You might also like