Open In App

Implementation of Full Adder using NAND Gates

Last Updated : 25 Apr, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

In Digital Logic Circuit, Full Adder is a Digital Logic Circuit that can add three inputs and give two outputs. The three inputs such as A, B, and input carry as Cin. The output carry is represented as Cout and the normal output is represented as S, Sum. The Cout is also known as the majority 1’s detector, whose output goes high when more than one input is high.

In Digital Logic Circuits, Full Adders are implemented using digital logic gates such as OR gate, AND gate, NOT gate, NAND gates, NOR gates, etc. In this article, we will explore Full Adders, and NAND Gates and execute the Implementation of Full Adder using NAND Gates.


What is a Full Adder?

Full Adder is a Digital Logic Circuits that can add three inputs and give two outputs i.e. three inputs such as A, B, and input carry as Cin and gives a sum output and carry output i.e. two outputs. A Full Adder Circuit performs as the brain of the most of Digital Logic Circuits that execute addition or subtraction.

A Full Adder require the use of nine NAND gates. The Arithmetic Logic Unit, ALU uses Full Adders. In a computer, Full Adders are utilized by the ALU to produce memory addresses and relocate the Program Counter to the next instruction.

Now, Here we will understand Full Adder by Block Diagram of Full Adder where we will discuss and explain it by using :

  • Truth Table of Full Adder
  • Logical Expression for Full Adder

Block Diagram of Full Adder

The Block Diagram of Full Adder is shown below

Full Adder

Full Adder


Logical Expression of a Full Adder

Given below is the Expression for Full Adder which includes Sum and Carry

Sum=A ⊕ B ⊕ Cin

Cout= AB + ACin + BCin

Where, A, B, Cin are the Inputs of the Full Adder

Applications of Full Adder

  • Arithmetic Circuits: Full adders are used in arithmetic circuits to add two double fold numbers. When unique Full Adders are connected in a chain, they can compute multi-bit paired numbers.
  • Data Handling: Full adders are used in information handling applications such as advanced signal manipulation, encoding of information, and mistake correction.
  • Counters: Full adders are used in counters to perform addition or decrement the count by one.
  • Multiplexers and Demultiplexers: Full adders are used in multiplexers and demultiplexers to choose and course information.
  • Addressing Memory: Full adders are used in memory addressing circuits to produce the location of a particular memory area.
  • ALUs: Full adders are used as a basic part of Number juggling Rationale Units (ALUs) used in chip and computerized signal processors.


What is a NAND Gate?

NAND gate is one of the type of Universal Gates in which the two basic logic gates are combined as the NAND gate can implement any Boolean function without the use of basic gates and also find the results of logical inputs without the use of any other logic gates.

The NAND gate or “NotAND” gate is the combination of two basic logic gates are connected in series i.e. the AND gate and the NOT gate. NAND gate output is high when one of the two inputs is high or if both inputs are low. It means the output is always high and when both the inputs are high then the output is low.

Symbol of a NAND Gate

Given Below is the Symbol For NAND Gate

Logical expression of a NAND Gate

In the expression, Two inputs are represented as A and B and the Output is X, then the expression is –

X = (A.B)’

2 Input NAND Gate

NAND Gate


Applications of NAND Gate

  • Universal Gate: NAND gate is known as Universal Gate because basic logic gates can be created using Universal Gate.
  • Data Store: NAND gates are utilized to establish sequential circuits such as Flip-Flops and Latches, which is a main part of data storage.
  • Arithmetic Logic: NAND gates are highly utilized in Arithmetic Logic Units (ALUs) of a computing device to execute operations such as addition, subtraction, etc.
  • Encoder and Decoder: NAND gates are utilized in Encoder and Decoder circuits to transform a binary code directly into a group of digital signals and vice versa.
  • Multiplexers and Demultiplexers: NAND gates are utilized in Multiplexers to conclude that a signal should take which path to arrive a single output. Demultiplexer is the reverse of Multiplexer.
  • Clock Generators: NAND gates utilized in Clock generators to execute clock signals where various operations are synchronized in Digital Circuit.
  • Logical Operations: NAND gates are also utilized to implement logical operations.


Implementation of Full Adder using NAND Gates

Implementation of Full Adder using NAND Gates is realization of Full Adder by using minimum nine NAND Gates during which we will have 2 outputs at the end namely Cout and Sum.

Given Below is the Circuit For Implementation of Full Adder using NAND Gates :

Full Adder Using NAND Gate

Full Adder Using NAND Gates

Logical Expression for Full Adder using NAND Gate

Using Half Adder Equation of Sum, we get

Sum=[Tex]A\overline{B}+\overline{A}B[/Tex]

=A[Tex]A\overline{B}+\overline{A}B+A\overline{A}+B\overline{B}[/Tex] Because [Tex]A\overline{A}=0[/Tex]

=[Tex]A\overline{B}+A\overline{A}+\overline{A}B+B\overline{B}[/Tex] Because [Tex]B\overline{B}=0[/Tex]

=[Tex]A(\overline{B}+\overline{A})+B(\overline{A}+\overline{B})[/Tex]

=[Tex]A(\overline{AB})+B(\overline{AB})[/Tex] By De-Morgan’s Theorem

=[Tex]\overline{\overline{A(\overline{AB})+B(\overline{AB})}}[/Tex] Because [Tex]\overline{\overline{A}}[/Tex]=A

Sum=[Tex]\overline{\overline{A(\overline{AB})}.\overline{B(\overline{AB})}}[/Tex] By De-Morgan’s Theorem

Using Half Adder Equation of Carry, we get

Carry=A.B

=[Tex]\overline{\overline{A.B}}[/Tex] Because [Tex]\overline{\overline{A}}[/Tex]=A

Sum=[Tex]A\overline{B}+\overline{A}B[/Tex]

=[Tex]\overline{\overline{A(\overline{AB})}.\overline{B(\overline{AB})}}[/Tex] Equation-1

For Full Adder Equation of Sum, we realize

Sum=[Tex]A⊕B⊕C[/Tex]in Put A⊕B=x

=x⊕Cin

=[Tex]\overline{\overline{x(\overline{xCin})}.\overline{Cin(\overline{xCin})}}[/Tex] Comparing x⊕Cin with A⊕B, Using Equation 1, we get

Sum={[Tex](\overline{A\overline{B}+\overline{A}B).(\overline{(A\overline{B}+\overline{A}B).Cin)}.\overline{Cin(\overline{(A\overline{B}+\overline{A}B).Cin)}}}[/Tex]

Carry=AB+[Tex](A\overline{B}+\overline{A}B).Cin[/Tex]

=[Tex]\overline{\overline{AB+(A\overline{B}+\overline{A}B).Cin}}[/Tex]

=[Tex]\overline{\overline{AB}.\overline{((A\overline{B}+\overline{A}B).Cin)}}[/Tex]

Steps To Implement the Full Adder using NAND Gate

  • To realize Full Adder Using NAND Gate, We apply Inputs as A and B to Gate 1 then Output of Gate 1 is [Tex]\overline{A.B}[/Tex].
  • Output of Gate 1 is given as input to Gate 2 and we give another input as A to Gate 2 then Output of Gate 2 is [Tex]AB+\overline{A}[/Tex].
  • Output of Gate 1 is also given as input to Gate 3 and we give another input as B to Gate 3 then Output of Gate 3 is [Tex]AB+\overline{B}[/Tex].
  • Output of Gate 2 is given as input to Gate 4 and Output of Gate 3 is given as another input to Gate 4 then Output of Gate 4 is [Tex]A\overline{B}+\overline{A}B[/Tex].
  • Output of Gate 4 is given as input to Gate 5 and we give another input as Cin to Gate 5 then Output of Gate 5 is [Tex](\overline{A\overline{B}+\overline{A}B).Cin}[/Tex].
  • Output of Gate 5 is given as input to Gate 6 and Output of Gate 4 is given as another input to Gate 6 then Output of Gate 6 is [Tex]\overline{(A\overline{B}+\overline{A}B).((\overline{A\overline{B}+\overline{A}B).Cin})}[/Tex].
  • Output of Gate 5 is also given as input to Gate 7 and we give another input as Cin to Gate 7 then Output of Gate 7 is [Tex]\overline{Cin.((\overline{A\overline{B}+\overline{A}B).Cin})}[/Tex].
  • Output of Gate 6 is given as input to Gate 8 and Output of Gate 7 is given as another input to Gate 8 then Output of Gate 8 is [Tex]\overline{\overline{(A\overline{B}+\overline{A}B).((\overline{A\overline{B}+\overline{A}B).Cin})}.\overline{Cin.((\overline{A\overline{B}+\overline{A}B).Cin})}}[/Tex].
  • So, we can see that output of Gate 8 is Sum, S i.e. A⊕B⊕Cin
  • Output of Gate 5 is given as input to Gate 9 and Output of Gate 1 is given as another input to Gate 9 then Output of Gate 9 is [Tex]\overline{\overline{AB}.((\overline{A\overline{B}+\overline{A}B).Cin})}[/Tex].
  • Also, we can realize that output of Gate 9 is Carry, Cout i.e. AB+(A⊕B).Cin

Applications of Implementation of a Full Adder using NAND Gates

Given Below are the Applications of Implementation of a Full Adder using NAND Gates

  • Digital Calculators: Full adders are utilized in digital calculators to execute an arithmetic addition of two binary numbers. As an implementation of a Full Adder using NAND gates decreases the required number of gates , so that clarifies the design and decreases the overall circuit size.
  • Microprocessors: Full adders are utilized in microprocessors to execute arithmetic addition of two binary numbers. As an implementation of a Full Adder using NAND gates decreases the propagation delay, which enlarges the microprocessor speed.
  • Digital Signal Processing: Full adders are utilized in digital signal processing applications such as audio and video processing. As an implementation of a Full Adder using NAND gates decreases the power consumption and enlarges the circuit performance.
  • Cryptography: In cryptography, Full adders are utilized as applications like encryption and decryption. As an implementation of Full Adder using NAND gates reduces the circuit complexity, which makes the implementation more efficient and secure.
  • Control Systems: In control systems, Full Adders are utilized to perform some arithmetic operations on binary signals. As an implementation of full adder using NAND gates decreases the required number of gates, so that simplify the design and decreases the overall size of the circuit. Ultimately, Implementation of Full Adder using NAND gates gives several advantages, for eg decreased complexity, minimized overall size of circuit, and simplified design, making it a great choice in many applications of digital circuit.

Conclusion

Here, we saw how we can use a universal gate called the ‘NAND’ gate to implement the Full Adder. This is important as it helps us analyze the working behind universal gates and we can understand how we can implement Full Adder using universal gates. As NAND gates are the only type of gate available, or where NAND gates are more cost-effective than other gates.

Although, it is foremost to account that NAND gates outcomes in a small size circuit, which can be essential for applications where space is restricted. NAND gates are known for their high reliability, and using them in a full adder can result in a more reliable circuit.

Subsequently NAND gates are fundamental building blocks of digital logic circuits, improving a NAND gates using circuit implementation technique is correspondingly quite easy, forming it suitable to form changes to the design as required. It is instructed that readers go through all other realizations to understand the basic functioning behind other important gates. FAQ’s have been responded that enfold some fundamental opinions. Readers can also refer to these questions as well.

Implementation of Full Adder using NAND Gates – FAQs

Why is NAND Gate known as Universal Gate?

NAND Gate is known as Universal Gate because it produces basic logic gates like AND gate, OR gate, and NOT gate in the absence of any other gates.

What is the Expression for Sum in Full Adder?

The expression for Sum in Full Adder is:

S = A ⊕ B ⊕ Cin

What is the Expression for Cout in Full Adder?

The expression for Carry, Cout in Full Adder is:

Cout = AB + (A ⊕ B).Cin

How many NAND gates are required to achieve Full Adder?

To implement full adder using NAND gates we require nine NAND gates.

How is a NAND gate unlike from an AND gate?

The inverse output of an AND gate is the NAND gate which means that the output of an AND gate will just be opposite in case of NAND gate. It is short form of NOT-AND gate.



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads