Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Implementation of OR Gate from NAND Gate
Next article icon

Implementation of OR Gate from NAND Gate

Last Updated : 25 Apr, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Logic gates are an essential component of digital electronics and are used to handle binary data. Because of its universal nature, the NAND gate is particularly significant among these gates. This article explores the use of NAND gates to implement an OR gate, demonstrating the adaptability and usefulness of these fundamental building blocks.

In this Article, We will be going through the implementation of the OR Gate from the NAND Gate, First We will start our article with the introduction of the OR gate and NAND gate with their Expressions, Logic Diagrams, and Truth Table, Then we will See How We Can Implement OR Gate from NAND Gate, At last, we will conclude our Article with some FAQs.

Table of Content

  • OR Gate
  • NAND Gate
  • Implementation


What is an OR Gate?

A basic logic gate known as an OR gate generates an output signal whenever at least one of its inputs is high. The OR gate is symbolically represented as "+" or "1". Its truth table indicates that if any input is high, it will output a high signal (1); otherwise, it will produce a low signal (0).

Inputs and outputs in OR Gate

  • Input: Input of OR gate is the binary signal that user provides to its input terminals so that it will execute logical operations and it can provide the output.
  • Output: Output of OR gate is the final result that has done after performing logical operations on its inputs. It indicates high i.e. (1) or low i.e. (0). After an operation a single output is provided.


OR Gate
OR Gate


Logical Expression of OR Gate

The output expression of the OR gate is provided by, if Y is the output variable and A and B are the input variables.


Y = A + B

where the OR operation is denoted by the '+' symbol. It reads as follows: Y equals to A OR B.

What is a NAND Gate?

One of the universal logic gate is the NAND gate, which only generates an output signal when each and every one of its inputs is low. With its symbol "⊼", the truth table of the NAND gate shows that it outputs a high signal (1) in the absence of a low signal (0) when all inputs are high.

Inputs and outputs in NAND Gate

As input NAND Gate takes boolean values and returns:

  • It returns logic (1), if all the inputs are 0 or different (it means one is 0, and the other is 1 or vice versa).
  • It returns logic (0), if all inputs are 1

Equation of NAND Gate

The NAND gate's output is determined by, if A, B, and Y are its input and output variables, respectively.

Y=\overline{A.B}


2 Input NAND Gate
NAND Gate


Implementation of OR Gate from NAND Gate

The Implementation of OR Gate from NAND Gate is executed by using De Morgan's theorem, which asserts that the complement of the AND operation is equivalent to the NAND operation, so that it can be used to construct an OR gate by using NAND gates. So that We can effectively execute the functionality of an OR gate by combining numerous NAND gates in a particular arrangement. So that we can implement an OR Gate by using NAND Gates.

OR Gate from NAND Gate
Implementation of OR Gate from NAND Gate

To realize the OR gate from NAND gate, we first complement the inputs A and B. This is done by the NAND Gate in the above Figure. Then, these complemented inputs, i.e. A' and B' are applied to a NAND Gate. Thus, we get,

Y=(\overline{\overline{A}.\overline{B}}) = A+B


Conclusion

In conclusion, the versatility and applicability of logic gates in digital circuit design are demonstrated by the construction of an OR gate using NAND gates. It is essential to comprehend basic gate manipulation in order to design dependable and effective electronic systems. We can learn a great deal about the fundamentals of digital logic design by investigating the construction of an OR gate from NAND gates. This also opens up new avenues for research into more complex circuitry.



Next Article
Implementation of OR Gate from NAND Gate

I

ihackco03xo
Improve
Article Tags :
  • Digital Logic
  • Electronics Engineering
  • Analog and Digital Electronics
  • Electronic Devices
  • Digital Electronics - Truth Table
  • Digital Electronics - Logic Gate
  • Digital Electronics - Implementations

Similar Reads

    Implementation of XOR Gate from NAND Gate
    Logic Gates are the building blocks of digital circuits, taking binary values as input and returning a binary value as output after performing a logical operation. There are several kinds of gates available in Digital Electronics like basic gates, and universal gates. Implementation of the XOR gate
    5 min read
    Implementation of NOR Gate from NAND Gate
    Implementation of the NOR gate from the NAND gate is possible because NAND is a Universal gate i.e., it can implement all other gates. The NAND gate gives output low when all the inputs are high whereas the NOR gate gives output high when all inputs are low. In this article, we will implement the NO
    5 min read
    Implementation of OR Gate from NOR Gate
    The Logic gates are the Fundamental Building Blocks of the Digital Circuits. The Logic Gate takes one or more Binary inputs and performs logical Operations to Produce a single binary Output. Understanding through the Different Combinations of gates is important for the Designer to produce the desire
    6 min read
    Implementation of XOR Gate from NOR Gate
    Implementation of the XOR gate from the NOR gate is possible because the NOR gate is a Universal gate i.e., it can implement all other gates. The NOR gate gives the output 1 if all the inputs are 0. XOR gate is a logic gate that gives output 1 when several 1s are odd. In this article, we will explor
    4 min read
    Implementation of AND Gate from NAND Gate
    It is worth mentioning that Boolean algebra is a fundamental part of the digital electronics field that uses binary variables and logical operations. Think of it as the mind that makes the computers work effectively. Then, imagine that logic gates (AND, OR, and NOT) could be the necessary helpers in
    5 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences