• Home
  • Articles
  • Basics
  • Components
  • Projects
  • Communications
  • MCQ

WatElectronics.com

You are here: Home / Basics / Half Subtractor : Circuit & Its Applications

Half Subtractor : Circuit & Its Applications

July 27, 2021 By WatElectronics

Half Subtractor process can be analyzed from the decimal subtraction. The same concept can be utilized for binary numbers. The subtraction mechanism is used in many digital circuits. To perform addition the value of sum and in some cases, the carrier is also generated by using Binary Adders.  But in this, the difference and the borrow area to be considered for subtraction.

Half Subtractor Theory

Half Subtractor is a kind of ‘Combinational Circuit’. These are designed to achieve the difference between two given binary inputs. The numbers used for this process are specified as ‘Minuend’ and ‘Subtrahend’. The value of ‘subtrahend’ will be subtracted from the ‘Minuend’ during this process.  For the applied two inputs two output bits are generated.

The output generated can be known for consisting of the bits of Difference and Borrow.   Based on the bits the subtractors are classified as Half Subtractor and Full Subtractor. This number of bits involvement is considered to be a basic difference between full and half subtractor.

In the half subtractor, there is no concern and no dependency on the previous borrow bits generated. To understand the operation of subtraction let us discuss the rules behind binary subtraction.

  1. 0-0= 0
  2. 1-0= 1
  3. 1-1=0
  4. 0-1=1 0

Based on the above rules it is clear that if the value of the bit at minuend is lesser than Subtrahend. In such a case ‘1’ is borrowed. Based on this the subtraction process can be continued. The above criteria can be considered for any of the subtraction of the binary value.

Let us discuss this with an example.

201

-110

____

91

In the above problem 201- 110, the subtraction begins with the LSB that is 1-0= 1. But in the next case o-1, 0 is less than 1. Therefore, 1 borrow is taken from 2. Then 0 becomes 10. hence 10-1=9. This is about Decimal subtraction.

The same steps are involved in the subtraction of binary numbers. In the binary format, there are only two numbers 0 and 1. Among which 1 is considered to be the large number and 0 is the smaller number.

Half Subtractor Circuit Using NAND Gates and Truth Table

The ‘Combinational Circuit’ of this Half Subtractor consists of the inputs ‘A and B’. The outputs generated can be indicated as Difference (D) and the Borrow (Bo). The borrow bit is to indicate whether the bit has been taken from the previous stage.

The block diagram of this half subtractor is determined as

Half Subtractor Block Diagram

Half Subtractor Block Diagram

There are certain rules followed for this process of subtraction. These rules can be mentioned clearly with the help of the truth table.

Half Subtractor Truth Table

Half Subtractor Truth Table

Explanation of Truth Table

Based on the bits applied at the inputs the values at the outputs in terms of Difference and Borrow are generated.

  1. If the inputs A and B both are at 0. Their output is generated is also remains at 0.
  2. If the value of A is o and B is 1. That is A<B. In such cases, the borrow value changes to 1.
  3. If the value of A=1 and B=0. The Difference value is 1 and the borrow remains unchanged.
  4. If both the A and B values are the same. This results in the difference and the borrow to be at 0.

So we can summarize that for the values of A greater than or equal to B, the borrow bit remains at 0. In case A bit is less than B the borrow bit is changed to 1. These subtractors can be designed by using logic gate X-OR, NAND, etc…

The Truth Tables are very important in the realizations of the digital circuits. Based on this the Karnaugh Maps are plotted.

Half Subtractor Circuit

Half Subtractor Circuit

The steps involved in the process of subtraction in the above circuit can be summarized as:

  1. To generate the value of difference the inputs A and B are applied to the exclusive OR gate.
  2. The borrow bit can be generated based on the AND gate.
  3. The input A is complemented with the help of the NOT gate connected to it.
  4. The complemented value of A is applied to the AND gate.
  5. Based on these steps the Difference and the Borrow bits are generated.
  6. The logic utilized for Sum value in the adder will be the same for the Difference value in subtractor.

However, the same operation can be carried out by using NAND gates.

 K-Map

To obtain the ‘Boolean Expressions’ for this circuit K-Map technique is used. The truth table is considered and the separate analysis for the difference and the borrow bits is done.

The K-Map for the Difference bit is

Half Subtractor K-map (Difference)

Half Subtractor K-map (Difference)

Based on the truth table on focussing the column of difference. The value of 1 is focused on realization and determining the expression.  It is a two-bit minimization technique. Basing on the applied inputs for the values of A and B the value of the difference is 1 at 01 and 10.

Hence from the above illustration, the value of the Difference bit is analyzed as

D= A XOR B

 Similarly, the K-Map for the Borrow bit is

Half Subtractor K-map (Borrow)

Half Subtractor K-map (Borrow)

In the case, of K-Map for the borrow, the value 1 is present for A=0 and B=1 inputs. Hence the expression for Borrow is generated.

Based on this mapping the obtained equations result in the determination of final values.

Please refer to this link to know more about Logic Gates MCQs

Applications

There are various applications of these subtractors. Practically they are simple to analyze. Some of them are listed as follows.

  1. To subtract the numbers present in the least position at the columns these subtractors are preferred.
  2. The Arithmetic and Logic Unit (ALU) present in the processor prefers this unit for subtraction.
  3. To minimize the distortions in the sound these are used.
  4. Based on the operation required the half subtractor has the capability of increasing or decreasing the number of operators.

The above are some of the applications that are defined practically.

Please refer to this link to know more about Half Subtractor MCQs &  Combinational Logic Circuits MCQs.

Even though the circuit is simple and capable of generating a difference and the borrow bits. These circuits cannot utilize the borrow from the other previous stages. During the real-time performance of these arithmetic operations, these subtractors cannot be preferred.  Can you tell how a complement is performed in the circuits using logic gates?

Filed Under: Basics Tagged With: Binary Subtraction, Half Subtractor

Recent Posts

  • GP2Y1010AU0F Dust Sensor : PinOut, Specifications, Interfacing & Its Applications
  • TIP32C PNP Transistor : PinOut, Specifications, Circuit & Its Applications
  • IRF840 MOSFET : Pin Configuration, Specifications, Circuit & Its Applications
  • 2N5457 N-channel JFET : Pin Configuration, Specifications, Circuit & Its Applications
  • FDV301N MOSFET: Pin Configuration, Specifications, Circuit & Its Applications
  • MCP3008 ADC : Pin Configuration, Specifications, Interfacing & Its Applications
  • MSP430 Launchpad : Pin Configuration, Features, Interfacing & Its Applications
  • HC-06 Bluetooth Module : Pin Configuration, Set up, Interfacing & Its Applications
  • DS3231 RTC Module : Pin Configuration, Specifications, Interfacing with Microcontroller & Its Applications
  • IRF3205 MOSFET : Pin Configuration, Specifications, Circuit & Its Applications
  • Allen Bradley PLC : Architecture, Working, Types & Its Applications
  • Pentium Processor : Architecture, Working, Vs Pentium Pro, & Its Applications

Categories

  • Articles (20)
  • Basics (112)
  • Communications (53)
  • Components (60)
  • Digital Electronics (41)
  • Digital Signalling (3)
  • Electronics (197)
  • Embedded Systems (11)
  • Magnetism (5)
  • Microprocessors (3)
  • Modulation (1)
  • Projects (15)

Subscribe to Our Newsletter

Don’t miss these articles!

We don’t spam! Read our privacy policy for more info.

Check your inbox or spam folder to confirm your subscription.

Category

  • Electronics
  • Components
  • Digital Electronics
  • Embedded Systems
  • Projects

Copyright © 2021 · WatElectronics.com | Contact Us | Privacy Policy