Home » Digital Electronics

Designing of Half Subtractor and Full Subtractor

In this tutorial, we are going to learn how to design Half Subtractor and Full Subtractor in digital electronics?
Submitted by Saurabh Gupta, on January 19, 2020

A Subtractor is a digital circuit which performs subtraction operation.

Half Subtractor

It is a combinational circuit that performs subtraction of two binary bits. It has two inputs (minuend and subtrahend) and two outputs Difference (D) and Borrows (Bout). We use half-subtractor to subtract the LSB of the subtrahend to the LSB of the minuend when one binary number is subtracted from another. Subtraction is done according to the rule of binary subtraction and the operations can be summarized in a truth table as,

A B Difference (D) Borrow (Bout)
0000
0111
1010
1100

K-Map Simplification: We use K-Map to obtain the expression for Difference and Borrow bit which is as,

Designing of Half Subtractor and Full Subtractor

On solving the K-Map and getting the simplified Boolean Expressions we can observe that Boolean expression for Difference (D) is the same as the XOR operation and which is the same as what we get as the expression of Sum in Half Adder and Boolean expression for Borrow (Bout) is A.B

Hence, Logic circuit diagram for Half-Adder can be drawn as,

Designing of Half Subtractor and Full Subtractor

Full Subtractor

Full Subtractor also belongs to the class of a combinational circuit and is used to perform subtraction of two binary bits. The half-subtractor can only be used for subtraction of LSB bits, but if there occurs a case of borrow during subtraction of LSB bits, then it can have affected over subtraction in higher columns. Thus, we have a total of three inputs (two original bits and third is considering the borrow (Bin) of the previous stage) and two outputs Difference (D) and Borrow (Bout) respectively. The Truth Table of Full Subtractor can be written as,

A B Bin Difference (D) Borrow (Bout)
00000
00111
01011
01101
10010
10100
11000
11111

K-Map Simplification: We use K-Map to obtain the expression for Difference and Borrow bit which is as,

Designing of Half Subtractor and Full Subtractor

After solving K-Map, simplified Boolean Expressions for Difference is A B Bin and for Borrow it is A.B + A.Bin + B. Bin, thus, logic circuit diagram for full-subtractor can be drawn as

Designing of Half Subtractor and Full Subtractor

Designing of Full Subtractor using Half-Subtractors

A Full-Subtractor can also be implemented using two half-subtractors and one OR gate. The circuit diagram for this can be drawn as,

Designing of Half Subtractor and Full Subtractor

The Boolean expressions for Difference and Borrow are,

    Difference  = A  B  Bin
    Borrow      = ( (A ⊕ B) ). Bin + A. B
        = (A. B + A.B). Bin + A. B
        = A. B. Bin + A.B. Bin + A. B
        = A. B. Bin + B (A. Bin + A )		[Since, A + BC = (A+B) (A+C)]
        = A. B. Bin + B. [(A + A) (Bin + A)]	[Since, A + A = 1]
        = A. B. Bin +B. Bin + B. A
        = Bin ( A. B + B) + B. A		[Since, A + BC = (A+B) (A+C)]
        = Bin [(A + B) (B +  B)] + B. A		[Since, B + B = 1]
        = A. Bin + B. Bin + B. A





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.