To process the information like light or sound from one point to other we can use analog circuits by giving proper inputs in the form of analog signals. In this process, there are chances of noise being picked up by the input analog signals and this may lead to loss in the output signal, it means whatever the input we are processing at the input level is not equal to the output stage. To, overcome these digital circuits are implemented. Digital circuit can be designed with logic gates. Logic gates are an electronic circuit which performs logical operations based upon their inputs and gives the output only a single bit, either low (Logic 0=zero voltage) or high (Logic 1=high voltage). Combinational circuits can be designed with more than one logic gate. These circuits are fast and time-independent no feedback between input and output. Combinational circuits are useful for arithmetic and Boolean operations. The best examples of the combinational circuits include Half adder, full adder, half Subtractor, full subtractor, multiplexers, demultiplexers, encoder, and decoder.
What is Half Subtractor?
The Half Subtractor as said above is a combinational circuit and as it name goes it is used to subtract the two bits from the input. Here the output of the subtractor is purely dependent on present inputs and it’s doesn’t depend on previous stages. Half-subtractor outputs are difference and barrow. It is similar to the arthimetic subtraction where in if the subtrahend is bigger than the minuend we would go for a borrow B =1 or else the borrow would remain zero B=0. To understand it better lets get into the truth table shown below.
The Truth Table
The half-subtractor truth table shows the output values as per the inputs which are applied at the input stages. The truth table is divided into two parts. The left part is denoted as the input stage and the right part denoted as the output stage.
In digital circuits, input 0 and input 1 indicates logic low and logic high. As per the configuration, logic low means zero voltage, logic high means high voltage (like 5V, 7V, 12V etc).
Inputs | Outputs | ||
Input – A |
Input – B |
Difference -D |
Barrow – B |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 | 1 | 1 |
1 |
1 | 1 | 0 |
0 |
Truth Table Explanation
- When inputs A and B are zero the outputs of half-subtractor D and B are also zero.
- When input A is high and B is zero the difference is High i.e., 1 and Barrow is zero
- When input A is zero and input B is high, then the outputs of D and B are high with respective.
- When both inputs are high the both of the outputs of half-subtractor is zero.
From the above truth table, we can find the equation for the Difference (D) and Barrow (B).
Equations for Difference-D: Difference is High when inputs A=1, B=0 and A=0, B=1. From this statement D = AB’+A’B = A⊕B. As per the D equation it denotes the Ex-or gate.
D=A⊕B
Equations for Barrow-B: Barro is high only when input A is low and B is high. From this point, the equation for Barrow B will be, B= A’B
B=A’B
From the above difference and barrow equations, we can design the half-subtractor circuit diagram using the K -Map
K – Map
Karnaugh map simplifies the Boolean algebra expression for the half Subtractor circuit. This is the official method for finding the Boolean algebra equation for any circuit. Let’s solve the Boolean expressions for the half-subtractor circuit using K-map.
K-Map for Difference (D) and Barrow (B)
- According to K-map first implicant is A’B and the second implicant is AB’.
- When we simplifying this two implicant equation, will get the simplified equation for the Difference of D.
- D=A’B+AB’
- Then, D=A⊕B. This equation is simply indicating the Ex-OR gate.
- To find the simplified Boolean expression for barrow B, we need to follow the same process which we followed for Difference D.
- Therefore, B=A’B.
Half Subtractor using NAND Gates
NAND gate and NOR gates are called universal gates. Here, NAND gate is called a universal gate because we can design any type of digital circuit with using of n number combinations of NAND gates. Due to this specialty, NAND gate is called a universal gate. Now, we design half-Subtractor circuit using NAND gates.
- We can design the half-subtractor circuit with five NAND gates.
- Consider A and B as the inputs to the first stage of NAND gate, its output again connected as one input to the second NAND gate as well as third NAND gate.
- As per their inputs, it gives the output and at the final stage from the NAND gates, the difference output D and barrow output B will be at their output.
- The final difference D output equation is D = A⊕B and barrow B equation as B=A’B.
- By using different combination of NAND gates for constructing the half-subtractor, the final equations of difference and barrow will be D= A⊕B and B=A’B only.
Applications of Half Subtractor
There are various applications of these subtractors. Practically they are simple to analyze. Some of them are listed as follows.
- To subtract the numbers present in the least position at the columns these subtractors are preferred.
- The Arithmetic and Logic Unit (ALU) present in the processor prefers this unit for subtraction.
- To minimize the distortions in the sound these are used.
- Based on the operation required the half subtractor has the capability of increasing or decreasing the number of operators.
- Half subtractors are used in amplifier .
- While transmitting the audio signals these are used to avoid the distortions.
Please refer to this link to know more about Demultiplexer MCQs, Multiplexer MCQs, Half Subtractor MCQs.
Thus, this is all about Half subtractor circuit. In real-time conditions subtracting multiple numbers of bits cannot be done by using half-subtractors. This drawback can be overcome by using full Subtractor.