Docsity

digital logic design's subtopic adder, Study notes of Digital Logic Design and Programming

Partial preview of the text

Download digital logic design's subtopic adder and more Study notes Digital Logic Design and Programming in PDF only on Docsity!

Half and Full Adders

By Dr. Muhammad AbdulRehman

Half Adder

  • (^) Recall the basic rules for binary addition
  • (^) The operations are performed by a logic circuit called a half-adder
  • (^) Now observe that the sum output is a 1 only if the input variables, A and B, are not equal. The sum can therefore be expressed as the exclusive-OR of the input variables.
  • (^) Notice that the output carry is a 1 only when both A and B are 1s; therefore, Cout can be expressed as the AND of the input variables.

Logic Diagram

Implementation of Full Adder using

Half Adders

Summary

Half subtractor truth table :

Half subtractor circuit diagram

  • (^) So we can define full subtractor as a combinational circuit which takes three inputs and produces two outputs difference and borrow. Below is the truth table of the full subtractor, we have used three input variables X, Y and Z which refers to the term minuend, subtrahend and borrow bit respectively. The two outputs difference and borrow are named as D and B respectively.

Full subtractor truth table