SlideShare a Scribd company logo
1 of 7
Prof. Neeraj Bhargava
Mrs. Pooja Dixit
Department of Computer Science, School of Engineering & System Sciences
MDS University Ajmer, Rajasthan
 The half subtractor is also a building block for subtracting two binary numbers.
It has two inputs and two outputs.This circuit is used to subtract two single bit
binary numbers A and B.The 'diff' and 'borrow' are two output states of the half
subtractor.
 TruthTable
 The SOP form of the Diff and Borrow is as follows:
 Diff= A'B+AB'
Borrow =A'B
 In the above table,
 'A' and 'B' are the input variables whose values are going to be subtracted.
 The 'Diff' and 'Borrow' are the variables whose values define the subtraction result, i.e.,
difference and borrow.
 The first two rows and the last row, the difference is 1, but the 'Borrow' variable is 0.
 The third row is different from the remaining one. When we subtract the bit 1 from the
bit 0, the borrow bit is produced.
Construction of Half Subtractor Circuit
 In the block diagram, we have seen that it contains two inputs and two outputs.
The carry and sum are the output states of the half subtractor.The half subtractor is
designed with the help of the following logic gates:
 2-input AND gate.
 2-input Exclusive-ORGate or Ex-OR Gate
 NOT or inverter Gate
 So, the Half Subtractor is designed by combining the 'XOR', 'AND', and 'NOT'
gates and provide the Diff and Borrow.
 The Boolean expression of the Half Adder circuit is given below:
 Diff= A XOR B (A⊕B)
 Borrow= not-A AND B (A'.B)
 The Half Subtractor is used to subtract only two numbers.To overcome this problem, a
full subtractor was designed.The full subtractor is used to subtract three 1-bit numbers
A, B, and C, which are minuend, subtrahend, and borrow, respectively.The full
subtractor has three input states and two output states i.e., diff and borrow.
Block diagram TruthTable
 In the above table,
 'A' and' B' are the input variables.These variables represent the two significant bits that
are going to be subtracted.
 'Borrowin' is the third input which represents borrow.
 The 'Diff' and 'Borrow' are the output variables that define the output values.
 The eight rows under the input variable designate all possible combinations of 0 and 1
that can occur in these variables.
 Note:We can simplify each of the Boolean output functions with the help of the unique
map method.
 The SOP form can be obtained with the help of K-map as:

 Diff=xy' z'+x' y' z+xyz+x'yz‘
 Borrow=x' z+x' y+yz


0

More Related Content

What's hot

Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
James Evangelos
 

What's hot (20)

MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adder
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
 
KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)
 
K - Map
  K - Map    K - Map
K - Map
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
 
Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital Electronics
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
BCD ADDER
BCD ADDER BCD ADDER
BCD ADDER
 
Decoders
DecodersDecoders
Decoders
 
Sr Latch or Flip Flop
Sr Latch or Flip FlopSr Latch or Flip Flop
Sr Latch or Flip Flop
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Demultiplexer
DemultiplexerDemultiplexer
Demultiplexer
 

Similar to Half Subtractor.pptx

Subtracter
SubtracterSubtracter
Subtracter
Kumar
 
Subtracter
SubtracterSubtracter
Subtracter
Kumar
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
Bindu Madhavi
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
Bindu Madhavi
 
combinational circuit-Half Adder ,full Adder
combinational circuit-Half Adder ,full Addercombinational circuit-Half Adder ,full Adder
combinational circuit-Half Adder ,full Adder
aniqa56
 

Similar to Half Subtractor.pptx (20)

Subtracter
SubtracterSubtracter
Subtracter
 
Subtracter
SubtracterSubtracter
Subtracter
 
logical circuits substractors
logical circuits substractors logical circuits substractors
logical circuits substractors
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
 
Combinational circuit.pptx
Combinational circuit.pptxCombinational circuit.pptx
Combinational circuit.pptx
 
Combinational circuit.pptx
Combinational circuit.pptxCombinational circuit.pptx
Combinational circuit.pptx
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
 
I semester Unit 4 combinational circuits.pptx
I semester Unit 4 combinational circuits.pptxI semester Unit 4 combinational circuits.pptx
I semester Unit 4 combinational circuits.pptx
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and Subtractor
 
cs 3351 dpco
cs 3351 dpcocs 3351 dpco
cs 3351 dpco
 
Conversion of Boolean Function - R.D.Sivakumar
Conversion of Boolean Function - R.D.SivakumarConversion of Boolean Function - R.D.Sivakumar
Conversion of Boolean Function - R.D.Sivakumar
 
ADDER
ADDERADDER
ADDER
 
Switching theory unit 2
Switching theory unit 2Switching theory unit 2
Switching theory unit 2
 
combinational circuit-Half Adder ,full Adder
combinational circuit-Half Adder ,full Addercombinational circuit-Half Adder ,full Adder
combinational circuit-Half Adder ,full Adder
 
1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf
 
1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf
 
Unit 2 DE Notes.pptx
Unit 2 DE Notes.pptxUnit 2 DE Notes.pptx
Unit 2 DE Notes.pptx
 
Unit 4 combinational circuit
Unit 4 combinational circuitUnit 4 combinational circuit
Unit 4 combinational circuit
 
Lecturer mid.ppt
Lecturer mid.pptLecturer mid.ppt
Lecturer mid.ppt
 

More from Pooja Dixit

More from Pooja Dixit (20)

number system.pptx
number system.pptxnumber system.pptx
number system.pptx
 
Multiplexer.pptx
Multiplexer.pptxMultiplexer.pptx
Multiplexer.pptx
 
Logic Gates.pptx
Logic Gates.pptxLogic Gates.pptx
Logic Gates.pptx
 
K-Map.pptx
K-Map.pptxK-Map.pptx
K-Map.pptx
 
Karnaugh Map Simplification Rules.pptx
Karnaugh Map Simplification Rules.pptxKarnaugh Map Simplification Rules.pptx
Karnaugh Map Simplification Rules.pptx
 
Gray Code.pptx
Gray Code.pptxGray Code.pptx
Gray Code.pptx
 
Flip Flop.pptx
Flip Flop.pptxFlip Flop.pptx
Flip Flop.pptx
 
Encoder.pptx
Encoder.pptxEncoder.pptx
Encoder.pptx
 
De-multiplexer.pptx
De-multiplexer.pptxDe-multiplexer.pptx
De-multiplexer.pptx
 
DeMorgan’s Theory.pptx
DeMorgan’s Theory.pptxDeMorgan’s Theory.pptx
DeMorgan’s Theory.pptx
 
Boolean Algebra.pptx
Boolean Algebra.pptxBoolean Algebra.pptx
Boolean Algebra.pptx
 
Binary Multiplication & Division.pptx
Binary Multiplication & Division.pptxBinary Multiplication & Division.pptx
Binary Multiplication & Division.pptx
 
Binary addition.pptx
Binary addition.pptxBinary addition.pptx
Binary addition.pptx
 
Basics of Computer Organization.pptx
Basics of Computer Organization.pptxBasics of Computer Organization.pptx
Basics of Computer Organization.pptx
 
Three Address code
Three Address code Three Address code
Three Address code
 
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithm
 
3 d viewing projection
3 d viewing  projection3 d viewing  projection
3 d viewing projection
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
Circle algorithm
Circle algorithmCircle algorithm
Circle algorithm
 
Bresenham's line algorithm
Bresenham's line algorithmBresenham's line algorithm
Bresenham's line algorithm
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 

Half Subtractor.pptx

  • 1. Prof. Neeraj Bhargava Mrs. Pooja Dixit Department of Computer Science, School of Engineering & System Sciences MDS University Ajmer, Rajasthan
  • 2.  The half subtractor is also a building block for subtracting two binary numbers. It has two inputs and two outputs.This circuit is used to subtract two single bit binary numbers A and B.The 'diff' and 'borrow' are two output states of the half subtractor.  TruthTable  The SOP form of the Diff and Borrow is as follows:  Diff= A'B+AB' Borrow =A'B
  • 3.  In the above table,  'A' and 'B' are the input variables whose values are going to be subtracted.  The 'Diff' and 'Borrow' are the variables whose values define the subtraction result, i.e., difference and borrow.  The first two rows and the last row, the difference is 1, but the 'Borrow' variable is 0.  The third row is different from the remaining one. When we subtract the bit 1 from the bit 0, the borrow bit is produced. Construction of Half Subtractor Circuit  In the block diagram, we have seen that it contains two inputs and two outputs. The carry and sum are the output states of the half subtractor.The half subtractor is designed with the help of the following logic gates:  2-input AND gate.  2-input Exclusive-ORGate or Ex-OR Gate  NOT or inverter Gate
  • 4.  So, the Half Subtractor is designed by combining the 'XOR', 'AND', and 'NOT' gates and provide the Diff and Borrow.  The Boolean expression of the Half Adder circuit is given below:  Diff= A XOR B (A⊕B)  Borrow= not-A AND B (A'.B)
  • 5.  The Half Subtractor is used to subtract only two numbers.To overcome this problem, a full subtractor was designed.The full subtractor is used to subtract three 1-bit numbers A, B, and C, which are minuend, subtrahend, and borrow, respectively.The full subtractor has three input states and two output states i.e., diff and borrow. Block diagram TruthTable
  • 6.  In the above table,  'A' and' B' are the input variables.These variables represent the two significant bits that are going to be subtracted.  'Borrowin' is the third input which represents borrow.  The 'Diff' and 'Borrow' are the output variables that define the output values.  The eight rows under the input variable designate all possible combinations of 0 and 1 that can occur in these variables.  Note:We can simplify each of the Boolean output functions with the help of the unique map method.  The SOP form can be obtained with the help of K-map as: 
  • 7.  Diff=xy' z'+x' y' z+xyz+x'yz‘  Borrow=x' z+x' y+yz   0