Logic Gates

logic gates

logic gates
logic gates | pinshape.com

What are logic gates?

Logic gates are switches that turn ON or OFF depending on what the user is doing. They are the components that make up the way computers work. Logic gates are turn ON when a certain condition is true, and OFF when the condition is false. They check whether the information they get follows a rule or not. They spit out either the answer true (ON) or false (OFF).

Remember,

True  = ON  = 1
False = OFF = 0
Example,

logic gate rule

Let us say a certain logic gate needs to determine if two numbers are equal. The rule would be “is equal”. If the two input numbers are equal, it will go into its ON position and indicating true. If they are not equal and it will go into its OFF position, indicating false.

However, we learned before that computers only think of things in terms of ON and OFF, which to them is 1 and 0. So a computer wouldn’t take an input of 6 or 8 all of the information need to be 0 s and 1 s.

Reminder,

Input refers to the information you give the logic gate, and output refers to what it out.

Types of Logic Gates,

  1. NOT
  2. AND
  3. OR
  4. XOR (Ex-OR)
  5. NAND
  6. NOR
  7. XNOR (Ex-NOR)

NOT Gate

NOT Gate and truth table
NOT Gate and truth table | anh.cs.luc.edu
  • NOT is the most simple logic gate.
  • All it does is taking in an input that is either ON or OFF and spits out the opposite.
  • Therefore, for a 1 it will give a 0, and for a 0 it will give a 1.
  • Another name for a NOT gate is inverter, because it inverts (makes opposite) the input.

AND Gate

AND Gate and truth table
AND Gate and truth table | anh.cs.luc.edu
  • Unlike NOT gate, AND needs two inputs.
  • It only turns ON when both inputs are ON.
  • If only one input is ON, it spits out OFF.
  • If both inputs are OFF, it spits out OFF.

OR Gate

OR Gate and truth table
OR Gate and truth table | anh.cs.luc.edu
  • OR also needs two inputs.
  • OR needs one input to be ON for it to spit out ON.
  • It is also, ON when both inputs are ON.
  • It is OFF when both inputs are OFF.

XOR Gate (Ex-OR Gate)

XOR Gate and truth table
XOR Gate and truth table | anh.cs.luc.edu
  • XOR is the short way to say “Exclusive OR”.
  • XOR also only needs one input to be ON for it to spit out ON.
  • But unlike OR, when both inputs are ON, XOR spits out OFF.
  • It is also, OFF when both inputs are OFF.

NAND Gate

NAND Gate and truth table
NAND Gate and truth table | anh.cs.luc.edu
  • It is Opposite of AND gate, also needs two inputs.
  • It turns ON when both inputs are OFF.
  • If only one input is ON, it spits out ON.
  • If both inputs are ON, it spits out OFF.

NOR Gate

NOR Gate and truth table
NOR Gate and truth table | anh.cs.luc.edu
  • It is Opposite of OR gate, also needs two inputs.
  • It needs both input to be OFF for it to spit out ON.
  • If only one input is OFF, it spits out OFF.
  • It is OFF when both inputs are ON.

XNOR Gate (Ex-NOR Gate)

XNOR Gate and truth table
XNOR Gate and truth table | electronics-tutorials.ws
  • It is Combination of XOR & NOT gates, also needs two inputs.
  • If both inputs are either ON or OFF it spit out ON
  • If only one input is OFF or ON, the XNOR spit out OFF.

Summary of logic gates

Logic Gates and truth table outputs
Logic Gates and truth table outputs |electronics-tutorials.ws

Summary of Logic function & Boolean notation

Logic function & Boolean notation
Logic function & Boolean notation | electronics-tutorials.ws
Stacking Logic Gates

 

Stack of logic gates
Stack of logic gates | anh.cs.luc.edu

• An output of one logic gate can be an input to another logic gate.
• This creates trees of gates that depend on each other.

Example 1
Jointed Two NOT gates
Jointed Two NOT gates | bu.edu
Example 2
Jointed NOT and AND gates
Jointed NOT and AND gates| bu.edu
Example 3
Jointed OR , AND and XOR gates
Jointed OR , AND and XOR gates | bu.edu
Share the post
Previous What is PCOS?
Next Trump's Corona-virus vaccine effort "Operation Warp Speed"

562 Comments

  1. Avatar
    November 27, 2020
    Reply

    my mother essay writing – https://essayhelpw.com/ thesis website help me essay

  2. Avatar
    November 25, 2020
    Reply

    buy cheap clomid – https://clomisale.com / order clomiphene

  3. when will viagra be generic
    viagra price
    viagra pills

  4. Avatar
    November 15, 2020
    Reply

    how to order viagra online
    cialis on line
    buy levitra online uk
    cialis india
    discount brand cialis

  5. buy cialis daily
    viagra without a doctor prescription usa
    order cialis safely online
    over the counter viagra cvs
    buy cheap viagra online canada

  6. Avatar
    November 11, 2020
    Reply

    zithromax antibiotic https://zithrobiot.com/# Tffvfc thtinx

  7. Avatar
    Ayxipj
    November 11, 2020
    Reply

    cheap viagra online canadian pharmacy canadian viagra

  8. Avatar
    November 11, 2020
    Reply

    buy cialis online generic
    do i need a prescription to order viagra best place to buy cialis online reviews buy soft viagra generic cialis discount generic cialis india
    discount levitra pills

  9. Avatar
    November 10, 2020
    Reply

    cialis pills for women
    buy cheap cialis usa visa cialis no prescription buy viagra jelly online cialis 20mg can you buy cialis over the counter in usa
    cheap levitra uk

  10. Avatar
    November 7, 2020
    Reply

    viagra cost https://sildefinik.com/# viagra online canadian pharmacy

  11. Avatar
    November 7, 2020
    Reply

    https://vardenedp.com/ – generic levitra buy vardenafil cheap levitra

  12. Avatar
    Iolmam
    November 6, 2020
    Reply

    cheap generic viagra viagra cost

  13. Avatar
    November 4, 2020
    Reply

    viagra samples http://viasildpr.com/ – viagra alternative http://viasildpr.com/ viagra reviews

  14. Avatar
    October 31, 2020
    Reply

    tadalafil 20mg tadalafil 40 mg Kyfgdq hzmfjy

  15. Avatar
    October 31, 2020
    Reply

    http://tadalaed.com/ – tadalafil cost Lwbvio zkbbyl

Leave a reply

Your email address will not be published.