You are on page 1of 18

Half Subtractor-

Half Subtractor is a combinational logic circuit.


It is used for the purpose of subtracting two single bit numbers.
It contains 2 inputs and 2 outputs (difference and borrow).

Half Subtractor Designing-


Half subtractor is designed in the following steps-
Step-01:
Identify the input and output variables-
Input variables = A, B (either 0 or 1)
Output variables = D, b where D = Difference and b = borrow
Step-02:

Draw the truth table

Inputs Outputs
A B D (Difference) b (Borrow)
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Step 3: Draw K-maps using the above truth table and
determine the simplified Boolean expressions
Step-04:
 
Draw the logic diagram.
The implementation of half subtractor using 1 XOR gate, 1 NOT gate
and 1 AND gate is as shown below-
 
Limitation of Half Subtractor-
 
• Half subtractors do not take into account “Borrow-in” from the
previous circuit.
• This is a major drawback of half subtractors.
• This is because real time scenarios involve subtracting the multiple
number of bits which can not be accomplished using half subtractors.
 
To overcome this drawback, Full Subtractor comes into play.
 
Full Subtractor-
 
•Full Subtractor is a combinational logic circuit.
•It is used for the purpose of subtracting two single bit numbers.
•It also takes into consideration borrow of the lower significant stage.
•Thus, full subtractor has the ability to perform the subtraction of three
bits.
•Full subtractor contains 3 inputs and 2 outputs (Difference and
Borrow) as shown-
 
Designing a Full Subtractor-

Full subtractor is designed in the following steps-

Step-01:
Identify the input and output variables-

Input variables = A, B, Bin (either 0 or 1)


Output variables = D, Bout where D = Difference and Bout =
Borrow
Step-02:

Draw the truth table-


Inputs Outputs
A B Bin D (Difference) Bout (Borrow)
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
Step-03:
 
Draw K-maps using the above truth table and determine the simplified Boolean
expressions-
 
Step-04: 
Draw the logic diagram.
The implementation of full adder using 1 XOR gate, 3 AND gates, 1NOT gate and 1 OR
gate is as shown below-
 
Ripple Carry Adder-
 
•Ripple Carry Adder is a combinational logic circuit.
•It is used for the purpose of adding two n-bit binary numbers.
•It requires n full adders in its circuit for adding two n-bit binary
numbers.
•It is also known as n-bit parallel adder.
 
4-bit ripple carry adder is used for the purpose of adding two 4-bit binary numbers.

4-bit Ripple Carry Adder-


 
 

In Mathematics, any two 4-bit binary numbers


A3A2A1A0 and B3B2B1B0 are added as shown below-
 
Using ripple carry adder, this addition is carried out as shown by the following
logic diagram-
 
As shown-
• Ripple Carry Adder works in different stages.
• Each full adder takes the carry-in as input and produces carry-out and
sum bit as output.
• The carry-out produced by a full adder serves as carry-in for its
most significant full adder.
• When carry-in becomes available to the full adder, it activates the full
adder.
• After full adder becomes activated, it comes into operation.
 
Why Ripple Carry Adder is Called So?
 
In Ripple Carry Adder,
• The carry out produced by each full adder serves as carry-in for its adjacent most
significant full adder.
• Each carry bit ripples or waves into the next stage.
• That’s why, it is called as “Ripple Carry Adder”.

Disadvantages of Ripple Carry Adder-


 
•Ripple Carry Adder does not allow to use all the full adders simultaneously.
•Each full adder has to necessarily wait until the carry bit becomes available from its
adjacent full adder.
•This increases the propagation time.
•Due to this reason, ripple carry adder becomes extremely slow.
•This is considered to be the biggest disadvantage of using ripple carry adder.
Carry Look Ahead Adder-
•Carry Look Ahead Adder is an improved version of the ripple carry adder.
•It generates the carry-in of each full adder simultaneously without causing any
delay.
Advantages of Carry Look Ahead Adder-
 
The advantages of carry look ahead adder are-
•It generates the carry-in for each full adder simultaneously.
•It reduces the propagation delay.
 
Disadvantages of Carry Look Ahead Adder-
 
The disadvantages of carry look ahead adder are-
•It involves complex hardware.
•It is costlier since it involves complex hardware.
•It gets more complicated as the number of bits increases.
 

You might also like