
A Half Subtractor is a digital circuit that performs the subtraction of two single-bit binary numbers. It subtracts the second bit (B) from the first bit (A)...
A Half Subtractor is a digital circuit that performs the subtraction of two single-bit binary numbers. It subtracts the second bit (B) from the first bit (A) and produces two outputs: the Difference (D) and the Borrow (B_out). It is the simplest form of a subtractor in digital electronics and is used to calculate the difference and borrow in binary subtraction.
Inputs:
Outputs:
The Half Subtractor performs binary subtraction based on the following truth table:
| A | B | Difference (D) | Borrow (B_out) |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
When A = 0 and B = 0:
The Difference (D) is 0, and there is no borrow, so Borrow (B_out) = 0.
When A = 0 and B = 1:
The Difference (D) is 1, and there is a borrow, so Borrow (B_out) = 1.
When A = 1 and B = 0:
The Difference (D) is 1, and there is no borrow, so Borrow (B_out) = 0.
When A = 1 and B = 1:
The Difference (D) is 0, and there is no borrow, so Borrow (B_out) = 0.
The outputs of the Half Subtractor can be defined using Boolean algebra as follows:
Difference (D):
This equation shows that the difference is 1 when the inputs A and B are different, and 0 when they are the same.
Borrow (B_out):
This equation shows that a borrow is needed when A = 0 and B = 1.
The Half Subtractor can be implemented using basic logic gates (XOR and AND):
Difference (D):
Borrow (B_out):
Circuit Diagram:
Let’s walk through an example to better understand how the Half Subtractor works.
Example 1:
Example 2:
Basic Arithmetic Operations:
Digital Subtraction:
Data Processing:
While the Half Subtractor is useful, it has a key limitation:
The Half Subtractor is a simple yet essential digital circuit that allows the subtraction of two single-bit binary numbers. It produces two outputs: the Difference and the Borrow, using basic logic gates like XOR and AND. The Half Subtractor is a foundational building block for more complex arithmetic operations in digital systems, though for multi-bit operations, the Full Subtractor is used to handle borrow propagation across multiple bits.
Open this section to view and download past papers
Click on Show Past Papers to load available exam papers.