# What is Subtractor Circuit in Digital Electronics

Page Contents

## Introduction

In digital system subtractor is a combinational logic circuit that perform an arithmetic operation called subtraction. This operation is same as the 1’s complement method in binary number system. The rules of binary subtraction are:

0 – 0 = 0, 0 – 1 = 1, 1 – 0 = 1, 1 – 1 = 0

In subtraction the result is called difference. When the minuend is smaller than the subtrahend it borrows 1 from its left bit to subtract the subtrahend. That bit is called borrow bit.

A combinational logic circuit that subtracts one bit from another bit is called half subtractor.

Similarly, a combinational logic circuit that performs the subtraction by considering the borrow bit from the higher column is called full subtractor.

What is Ohm’s Law?

What is Semiconductor?

### Half Subtractor:

Half subtractor is a digital logic circuit that takes 2 inputs performs the subtraction operation and provides two outputs called difference and borrow. Half subtractor is also called LSB subtractor, because it can perform the subtraction for LSB only.

According to the truth table

The difference d =

And the borrow $=\overline{A}B$

So the logic circuit is same as half adder with the complemented minuend.

#### Half subtractor logic diagram using AOI (AND OR INVERTER) logic:

The logic circuit of half adder can be designed using AOI logic as below.

#### Half subtractor using NAND logic:

The logic circuit of half subtractor can be designed using NAND logic as below.

The Boolean expression for half subtractor using NAND logic is –

$=\overline{\overline{A.\overline{AB}}}+\overline{\overline{B.\overline{AB}}}$

And b

So the logic circuit for half subtractor using NAND logic can be designed as below –

#### Half subtractor using NOR logic:

The logic circuit of subtractor can be designed using NOR logic.

The Boolean expression for half subtractor using NOR logic is –

And b

So the logic circuit for half subtractor using NOR logic can be designed as below –

### Full subtractor:

Full subtractor is a digital logic circuit that takes three inputs performs the subtraction and provides two outputs called difference and borrow. Out of three bits two bits are the variables and third one is previous borrow.

According to the truth table: –

And

So the logic circuit can be designed as below:

#### Full subtractor using AOI (AND OR INVERTER) logic:

Using AOI logic the logic circuit for the full subtractor can be designed.

#### Full subtractor using NAND logic:

Full subtractor logic circuit can be designed using NAND logic.

The Boolean expression for full subtractor using NAND logic is –

And

Therefore the logic circuit for full subtractor using NAND logic can be designed as below –

#### Full subtractor using NOR logic:

Full subtractor logic circuit can be designed using NOR logic.

The Boolean expression for full subtractor using NOR logic is –

And

Therefore the logic circuit for full subtractor using NOR logic can be designed as below –

Please write in the comment box below if you have any questions.