All Exams Test series for 1 year @ ₹349 only
Question

Adder Circuit can be used as a Subtractor circuit by using _________.

This question was previously asked in
RRB ALP 2018 CBT 2 Fitter Question Paper (21-Jan-2019) (Shift 3)
The correct answer is

1's/2's Complement

Adder Circuit as a Subtractor Circuit Explanation

In digital electronics, subtraction is often performed using addition circuits by employing the concept of complements. An adder circuit, designed to perform binary addition, can be repurposed to perform subtraction by cleverly manipulating the numbers involved.

Understanding Subtraction with Complements

Binary subtraction \(A - B\) can be converted into binary addition \(A + (-B)\). The key is how to represent the negative number \((-B)\) in a way that a standard binary adder can process it correctly. This is where complement systems, specifically 1's complement and 2's complement, are used.

1's Complement Method

  • To find the 1's complement of a binary number, simply invert each bit (change 0s to 1s and 1s to 0s).
  • To perform \(A - B\) using 1's complement: Add A to the 1's complement of B.
  • If there is an end-around carry (a carry out from the most significant bit), add this carry back to the least significant bit of the result.

2's Complement Method

  • To find the 2's complement of a binary number, first find the 1's complement, and then add 1 to the least significant bit of the 1's complement result.
  • To perform \(A - B\) using 2's complement: Add A to the 2's complement of B.
  • If there is a carry out from the most significant bit, this carry is simply discarded. The result is in 2's complement form (if negative) or standard binary (if positive). This method is generally preferred for its simplicity in handling carries.

Implementing Subtraction Using an Adder Circuit

To use an adder circuit for subtraction \(A - B\), the subtrahend \(B\) must be converted into its 2's complement (or 1's complement) before being fed into the adder along with \(A\). This conversion is done using additional logic gates.

  • Each bit of \(B\) is passed through an inverter (NOT gate) to get the 1's complement.
  • For 2's complement, a '1' is added to the least significant bit position. This can be achieved by enabling the carry-in input of the full adder used for the least significant bit position.
  • A control signal (often called 'subtract') is used. When 'subtract' is high, the \(B\) inputs to the adder are inverted, and the carry-in is set to 1 (for 2's complement). When 'subtract' is low, \(B\) is passed directly, and carry-in is 0, performing standard addition.

Therefore, the ability to represent a number's negative equivalent using 1's or 2's complement allows an adder circuit to perform subtraction.

Examining Other Options

  • Grey code: Grey code is a sequence of binary numbers where each successive number differs in only one bit. It is primarily used in applications like rotary encoders to prevent errors during transitions, not for performing arithmetic operations like subtraction within an adder circuit.
  • Binary Coded Decimal (BCD): BCD is a method of encoding decimal numbers where each decimal digit is represented by a 4-bit binary code. While arithmetic can be performed on BCD numbers, a standard binary adder designed for pure binary might require extra logic for BCD arithmetic, and BCD itself isn't the method used to make an adder perform binary subtraction by complementation.
  • Comparator: A comparator circuit compares two binary numbers to determine if one is greater than, less than, or equal to the other. It outputs relationship signals (e.g., A>B, A<B, A=B) rather than performing arithmetic calculations like subtraction.

Based on the fundamental principles of digital arithmetic and circuit design, using 1's or 2's complement is the correct technique to enable an adder circuit to function as a subtractor.

Revision Table: Digital Number Representations and Circuits
Concept Description Use in Arithmetic
1's Complement Inverting bits of a binary number. Used to represent negative numbers; subtraction is \(A + (\text{1's comp of } B) + \text{end-around carry}\).
2's Complement 1's complement plus 1. Used to represent negative numbers; subtraction is \(A + (\text{2's comp of } B)\), discard final carry.
Grey Code Successive numbers differ by only one bit. Position encoding, error reduction in transitions. Not for standard arithmetic directly.
Binary Coded Decimal (BCD) Each decimal digit represented by 4 bits. Encoding decimal numbers. Requires specific BCD adder/subtractor logic, not the method to make a *binary* adder subtract using complements.
Comparator Compares two numbers. Determining relationship (>, <, =). Not for arithmetic calculation.

Additional Information: Digital Arithmetic Operations

Digital circuits perform arithmetic operations using logic gates. Addition is fundamental, often built using half adders and full adders. Subtraction, multiplication, and division are typically implemented by building upon the addition operation, often using techniques like shifting and complement representation.

  • Multiplication: Can be performed through repeated addition and bit shifting, similar to long multiplication on paper.
  • Division: Can be performed through repeated subtraction and bit shifting.
  • Signed Numbers: Complements (especially 2's complement) are crucial for representing and performing arithmetic on signed binary numbers efficiently in hardware.

Understanding how complements work is key to understanding how modern processors perform basic arithmetic operations efficiently using adder circuits.

Was this answer helpful?

Similar Questions

  1. To measure Voltage, Current is passed through _______.

  2. A digital multimeter can measure _______.

  3. The output waveform of an integrator in a function generator is ______.

  4. Lead acid batteries consist of flat lead plates immersed in a pool of _______.

  5. Which device can detect a physical quantity and convert it into an electrical signal?

  6. Identify the temperature sensor which is not used in process industries.

  7. Which instrument is used to measure the insulation resistance of an electric circuit relative to earth?

  8. Generally, wiring a solar controller to a battery storage station is done using a _______.

  9. The internal Vref voltage of IC723 is

  10. A table which will help to understand behavior of logic gates is known as _______.


Important Questions from Miscellaneous

  1. Read the given figure and find the region representing persons who are educated and employed but not confirmed in job.

  2. The magazine in which Mahatma Gandhi mentioned what he wanted the Constitution to do is:

  3. Which gas shields the surface of the earth from ultraviolet radiation from the sun?

  4. Which event is marked as an Intangible Cultural Heritage of Humanity by UNESCO?

  5. Who has been conferred with the rank of the Commander of the Order of the British Empire in 2018?

Need Expert Advice?
Upcoming Exams
RRB NTPC
September 27, 2026
Test Series
RRB ALP img
Railways
RRB ALP 2026 Mock Test series
1035 Tests 1 Tests Free
893 Attempts
4.3(235)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App