SlideShare una empresa de Scribd logo
1 de 31
Basic Logic Gates
Basic Logic Gates
        and Basic Digital Design
•   NOT, AND, and OR Gates
•   NAND and NOR Gates
•   DeMorgan’s Theorem
•   Exclusive-OR (XOR) Gate
•   Multiple-input Gates
NOT Gate -- Inverter
                X      Y
                0      1
                1      0
NOT
• Y = ~X      (Verilog)
• Y = !X      (ABEL)
• Y = not X   (VHDL)
• Y = X’
•Y = X
•Y = X        (textook)
• not(Y,X)    (Verilog)
NOT

X     ~X       ~~X = X



    X ~X ~~X
    0 1 0
    1 0 1
AND Gate
       AND
                      X    Y   Z
X                     0    0   0
                      0    1   0
                 Z
                      1    0   0
Y                     1    1   1

    Z = X & Y
AND
•X & Y      (Verilog and ABEL)
• X and Y   (VHDL)
   V
•X    Y
   U
•X    Y
•X * Y
• XY            (textbook)
• and(Z,X,Y)    (Verilog)
OR Gate
    OR
                  X   Y   Z
X                 0   0   0
            Z     0   1   1
Y                 1   0   1
                  1   1   1
Z = X | Y
OR
•X | Y        (Verilog)
•X # Y        (ABEL)
• X or Y      (VHDL)
•X + Y        (textbook)
•X V Y
•X U Y
• or(Z,X,Y)   (Verilog)
Basic Logic Gates
         and Basic Digital Design
•   NOT, AND, and OR Gates
•   NAND and NOR Gates
•   DeMorgan’s Theorem
•   Exclusive-OR (XOR) Gate
•   Multiple-input Gates
NAND Gate
       NAND
                       X   Y   Z
X                      0   0   1
                       0   1   1
                   Z
                       1   0   1
Y                      1   1   0

    Z = ~(X & Y)
    nand(Z,X,Y)
NAND Gate
           NOT-AND
                            X   Y   W   Z
X                           0   0   0   1
                W           0   1   0   1
                        Z
                            1   0   0   1
Y                           1   1   1   0

    W = X & Y

    Z = ~W = ~(X & Y)
NOR Gate
    NOR
                   X   Y   Z
X                  0   0   1
               Z   0   1   0
Y                  1   0   0
                   1   1   0
Z = ~(X | Y)
nor(Z,X,Y)
NOR Gate
     NOT-OR
                        X   Y   W   Z
X                       0   0   0   1
            W       Z   0   1   1   0
Y                       1   0   1   0
                        1   1   1   0
W = X | Y

Z = ~W = ~(X | Y)
Basic Logic Gates
         and Basic Digital Design
•   NOT, AND, and OR Gates
•   NAND and NOR Gates
•   DeMorgan’s Theorem
•   Exclusive-OR (XOR) Gate
•   Multiple-input Gates
NAND Gate
 X               Z           X             Z
                     =
 Y                           Y

Z = ~(X & Y)             Z = ~X | ~Y

 X   Y   W   Z           X   Y ~X ~Y   Z
 0   0   0   1           0   0 1 1     1
 0   1   0   1           0   1 1 0     1
 1   0   0   1           1   0 0 1     1
 1   1   1   0           1   1 0 0     0
De Morgan’s Theorem-1

~(X & Y) = ~X | ~Y
• NOT all variables
• Change & to | and | to &
• NOT the result
NOR Gate
X                       X
                Z                         Z
Y                       Y

Z = ~(X | Y)         Z = ~X & ~Y

    X   Y   Z       X       Y ~X ~Y   Z
    0   0   1       0       0 1 1     1
    0   1   0       0       1 1 0     0
    1   0   0       1       0 0 1     0
    1   1   0       1       1 0 0     0
De Morgan’s Theorem-2

~(X | Y) = ~X & ~Y
• NOT all variables
• Change & to | and | to &
• NOT the result
De Morgan’s Theorem
•   NOT all variables
•   Change & to | and | to &
•   NOT the result
•   --------------------------------------------
•   ~X | ~Y = ~(~~X & ~~Y) = ~(X & Y)
•   ~(X & Y) = ~~(~X | ~Y) = ~X | ~Y
•   ~X & !Y = ~(~~X | ~~Y) = ~(X | Y)
•   ~(X | Y) = ~~(~X & ~Y) = ~X & ~Y
Basic Logic Gates
        and Basic Digital Design
•   NOT, AND, and OR Gates
•   NAND and NOR Gates
•   DeMorgan’s Theorem
•   Exclusive-OR (XOR) Gate
•   Multiple-input Gates
Exclusive-OR Gate

    XOR
                  X Y   Z
X
             Z     0 0 0
Y
                   0 1 1
Z = X ^ Y          1 0 1
xor(Z,X,Y)
                  1 1 0
XOR
•X ^ Y      (Verilog)
•X $ Y      (ABEL)
•X @ Y
gX ⊕ Y         (textbook)
• xor(Z,X,Y)   (Verilog)
Exclusive-NOR Gate

    XNOR
                   X Y     Z
X
               Z   0   0   1
Y
                   0   1   0
Z = ~(X ^ Y)       1   0   0
Z = X ~^ Y         1   1   1
xnor(Z,X,Y)
XNOR
• X ~^ Y     (Verilog)
• !(X $ Y)   (ABEL)
•X @ Y
gX e Y
• xnor(Z,X,Y)   (Verilog)
Basic Logic Gates
         and Basic Digital Design
•   NOT, AND, and OR Gates
•   NAND and NOR Gates
•   DeMorgan’s Theorem
•   Exclusive-OR (XOR) Gate
•   Multiple-input Gates
Multiple-input Gates

     Z1                Z2




     Z3                Z4
Multiple-input AND Gate

                           Z1



Output Z 1 is HIGH only if all inputs are HIGH


 An open input will float HIGH
Multiple-input OR Gate

                            Z2




Output Z 2 is LOW only if all inputs are LOW
Multiple-input NAND Gate

                             Z3




Output Z 3 is LOW only if all inputs are HIGH
Multiple-input NOR Gate

                              Z4




Output Z 4 is HIGH only if all inputs are LOW

Más contenido relacionado

La actualidad más candente

Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Satya P. Joshi
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates. Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates. Satya P. Joshi
 
DIGITAL ELECTRONICS- Logic Gates
DIGITAL ELECTRONICS- Logic GatesDIGITAL ELECTRONICS- Logic Gates
DIGITAL ELECTRONICS- Logic GatesTrinity Dwarka
 
Decoders
DecodersDecoders
DecodersRe Man
 
boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplificationUnsa Shakir
 
Decoder for digital electronics
Decoder for digital electronicsDecoder for digital electronics
Decoder for digital electronicsIIT, KANPUR INDIA
 
Nand and nor as a universal gates
Nand and nor as a universal gatesNand and nor as a universal gates
Nand and nor as a universal gatesKaushal Shah
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebragavhays
 
Security System using XOR & NOR
Security System using XOR & NOR Security System using XOR & NOR
Security System using XOR & NOR Fatima Qayyum
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoderUnsa Shakir
 
Practical Uses of Logic Gates
Practical Uses of Logic GatesPractical Uses of Logic Gates
Practical Uses of Logic GatesAbiral Gautam
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flopShuaib Hotak
 

La actualidad más candente (20)

Logic gates presentation
Logic gates presentationLogic gates presentation
Logic gates presentation
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates. Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
Nand and nor
Nand and norNand and nor
Nand and nor
 
DIGITAL ELECTRONICS- Logic Gates
DIGITAL ELECTRONICS- Logic GatesDIGITAL ELECTRONICS- Logic Gates
DIGITAL ELECTRONICS- Logic Gates
 
Decoders
DecodersDecoders
Decoders
 
boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplification
 
Decoder for digital electronics
Decoder for digital electronicsDecoder for digital electronics
Decoder for digital electronics
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic families
Logic familiesLogic families
Logic families
 
Nand and nor as a universal gates
Nand and nor as a universal gatesNand and nor as a universal gates
Nand and nor as a universal gates
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Basic Logic gates
Basic Logic gatesBasic Logic gates
Basic Logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Security System using XOR & NOR
Security System using XOR & NOR Security System using XOR & NOR
Security System using XOR & NOR
 
Logic gate
Logic gateLogic gate
Logic gate
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 
Practical Uses of Logic Gates
Practical Uses of Logic GatesPractical Uses of Logic Gates
Practical Uses of Logic Gates
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 

Destacado

Transistor as an amplifier
Transistor as an amplifierTransistor as an amplifier
Transistor as an amplifierAnshu Kumar
 
number system school ppt ninth class
number system school ppt ninth classnumber system school ppt ninth class
number system school ppt ninth classManan Jain
 
Computer number systems
Computer number systemsComputer number systems
Computer number systemsRevi Shahini
 
3.bipolar junction transistor (bjt)
3.bipolar junction transistor (bjt)3.bipolar junction transistor (bjt)
3.bipolar junction transistor (bjt)firozamin
 
Transistors ppt by behin
Transistors ppt by behinTransistors ppt by behin
Transistors ppt by behinBehin anben
 

Destacado (7)

Transistor as an amplifier
Transistor as an amplifierTransistor as an amplifier
Transistor as an amplifier
 
Number system
Number systemNumber system
Number system
 
number system school ppt ninth class
number system school ppt ninth classnumber system school ppt ninth class
number system school ppt ninth class
 
Computer number systems
Computer number systemsComputer number systems
Computer number systems
 
Number System
Number SystemNumber System
Number System
 
3.bipolar junction transistor (bjt)
3.bipolar junction transistor (bjt)3.bipolar junction transistor (bjt)
3.bipolar junction transistor (bjt)
 
Transistors ppt by behin
Transistors ppt by behinTransistors ppt by behin
Transistors ppt by behin
 

Similar a Basic logic gates

digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
digital logic circuits, digital componentRai University
 
Bca 2nd sem-u-1.6 digital logic circuits, digital component
Bca 2nd sem-u-1.6 digital logic circuits, digital componentBca 2nd sem-u-1.6 digital logic circuits, digital component
Bca 2nd sem-u-1.6 digital logic circuits, digital componentRai University
 
B.sc cs-ii-u-1.6 digital logic circuits, digital component
B.sc cs-ii-u-1.6 digital logic circuits, digital componentB.sc cs-ii-u-1.6 digital logic circuits, digital component
B.sc cs-ii-u-1.6 digital logic circuits, digital componentRai University
 
lab1_basic logic gates.ppt
lab1_basic logic gates.pptlab1_basic logic gates.ppt
lab1_basic logic gates.pptssuserd2f50d
 
Digital electronics
Digital electronicsDigital electronics
Digital electronicsRaviGhael
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesRai University
 
Copy of 7.digital basicsa
Copy of 7.digital basicsaCopy of 7.digital basicsa
Copy of 7.digital basicsaChethan Nt
 
7.digital basicsa
7.digital basicsa7.digital basicsa
7.digital basicsaChethan Nt
 
Name dld preparation
Name dld preparationName dld preparation
Name dld preparationPadam Rai
 
Logical operations & boolean algebra
Logical operations & boolean algebraLogical operations & boolean algebra
Logical operations & boolean algebraAndrei Jechiu
 
CSEC Physics Review - Introduction To Logic Gates
CSEC Physics Review - Introduction To Logic GatesCSEC Physics Review - Introduction To Logic Gates
CSEC Physics Review - Introduction To Logic GatesKevin Small
 
chapter-3-logic-gates.pdf
chapter-3-logic-gates.pdfchapter-3-logic-gates.pdf
chapter-3-logic-gates.pdfstudy material
 
chapter-3-logic-gates.pdf
chapter-3-logic-gates.pdfchapter-3-logic-gates.pdf
chapter-3-logic-gates.pdfstudy material
 

Similar a Basic logic gates (20)

digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
digital logic circuits, digital component
 
Bca 2nd sem-u-1.6 digital logic circuits, digital component
Bca 2nd sem-u-1.6 digital logic circuits, digital componentBca 2nd sem-u-1.6 digital logic circuits, digital component
Bca 2nd sem-u-1.6 digital logic circuits, digital component
 
B.sc cs-ii-u-1.6 digital logic circuits, digital component
B.sc cs-ii-u-1.6 digital logic circuits, digital componentB.sc cs-ii-u-1.6 digital logic circuits, digital component
B.sc cs-ii-u-1.6 digital logic circuits, digital component
 
BasicLogicGates.ppt
BasicLogicGates.pptBasicLogicGates.ppt
BasicLogicGates.ppt
 
lab1_basic logic gates.ppt
lab1_basic logic gates.pptlab1_basic logic gates.ppt
lab1_basic logic gates.ppt
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Copy of 7.digital basicsa
Copy of 7.digital basicsaCopy of 7.digital basicsa
Copy of 7.digital basicsa
 
7.digital basicsa
7.digital basicsa7.digital basicsa
7.digital basicsa
 
Logical Gates
Logical GatesLogical Gates
Logical Gates
 
logic gates
logic gates logic gates
logic gates
 
Name dld preparation
Name dld preparationName dld preparation
Name dld preparation
 
Logical operations & boolean algebra
Logical operations & boolean algebraLogical operations & boolean algebra
Logical operations & boolean algebra
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
CSEC Physics Review - Introduction To Logic Gates
CSEC Physics Review - Introduction To Logic GatesCSEC Physics Review - Introduction To Logic Gates
CSEC Physics Review - Introduction To Logic Gates
 
chapter-3-logic-gates.pdf
chapter-3-logic-gates.pdfchapter-3-logic-gates.pdf
chapter-3-logic-gates.pdf
 
chapter-3-logic-gates.pdf
chapter-3-logic-gates.pdfchapter-3-logic-gates.pdf
chapter-3-logic-gates.pdf
 

Más de Kumar

Graphics devices
Graphics devicesGraphics devices
Graphics devicesKumar
 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithmsKumar
 
region-filling
region-fillingregion-filling
region-fillingKumar
 
Bresenham derivation
Bresenham derivationBresenham derivation
Bresenham derivationKumar
 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons dericationKumar
 
Introductionto xslt
Introductionto xsltIntroductionto xslt
Introductionto xsltKumar
 
Extracting data from xml
Extracting data from xmlExtracting data from xml
Extracting data from xmlKumar
 
Xml basics
Xml basicsXml basics
Xml basicsKumar
 
XML Schema
XML SchemaXML Schema
XML SchemaKumar
 
Publishing xml
Publishing xmlPublishing xml
Publishing xmlKumar
 
Applying xml
Applying xmlApplying xml
Applying xmlKumar
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XMLKumar
 
How to deploy a j2ee application
How to deploy a j2ee applicationHow to deploy a j2ee application
How to deploy a j2ee applicationKumar
 
JNDI, JMS, JPA, XML
JNDI, JMS, JPA, XMLJNDI, JMS, JPA, XML
JNDI, JMS, JPA, XMLKumar
 
EJB Fundmentals
EJB FundmentalsEJB Fundmentals
EJB FundmentalsKumar
 
JSP and struts programming
JSP and struts programmingJSP and struts programming
JSP and struts programmingKumar
 
java servlet and servlet programming
java servlet and servlet programmingjava servlet and servlet programming
java servlet and servlet programmingKumar
 
Introduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC DriversIntroduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC DriversKumar
 
Introduction to J2EE
Introduction to J2EEIntroduction to J2EE
Introduction to J2EEKumar
 

Más de Kumar (20)

Graphics devices
Graphics devicesGraphics devices
Graphics devices
 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
 
region-filling
region-fillingregion-filling
region-filling
 
Bresenham derivation
Bresenham derivationBresenham derivation
Bresenham derivation
 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons derication
 
Introductionto xslt
Introductionto xsltIntroductionto xslt
Introductionto xslt
 
Extracting data from xml
Extracting data from xmlExtracting data from xml
Extracting data from xml
 
Xml basics
Xml basicsXml basics
Xml basics
 
XML Schema
XML SchemaXML Schema
XML Schema
 
Publishing xml
Publishing xmlPublishing xml
Publishing xml
 
DTD
DTDDTD
DTD
 
Applying xml
Applying xmlApplying xml
Applying xml
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
How to deploy a j2ee application
How to deploy a j2ee applicationHow to deploy a j2ee application
How to deploy a j2ee application
 
JNDI, JMS, JPA, XML
JNDI, JMS, JPA, XMLJNDI, JMS, JPA, XML
JNDI, JMS, JPA, XML
 
EJB Fundmentals
EJB FundmentalsEJB Fundmentals
EJB Fundmentals
 
JSP and struts programming
JSP and struts programmingJSP and struts programming
JSP and struts programming
 
java servlet and servlet programming
java servlet and servlet programmingjava servlet and servlet programming
java servlet and servlet programming
 
Introduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC DriversIntroduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC Drivers
 
Introduction to J2EE
Introduction to J2EEIntroduction to J2EE
Introduction to J2EE
 

Basic logic gates

  • 2. Basic Logic Gates and Basic Digital Design • NOT, AND, and OR Gates • NAND and NOR Gates • DeMorgan’s Theorem • Exclusive-OR (XOR) Gate • Multiple-input Gates
  • 3. NOT Gate -- Inverter X Y 0 1 1 0
  • 4. NOT • Y = ~X (Verilog) • Y = !X (ABEL) • Y = not X (VHDL) • Y = X’ •Y = X •Y = X (textook) • not(Y,X) (Verilog)
  • 5. NOT X ~X ~~X = X X ~X ~~X 0 1 0 1 0 1
  • 6. AND Gate AND X Y Z X 0 0 0 0 1 0 Z 1 0 0 Y 1 1 1 Z = X & Y
  • 7. AND •X & Y (Verilog and ABEL) • X and Y (VHDL) V •X Y U •X Y •X * Y • XY (textbook) • and(Z,X,Y) (Verilog)
  • 8. OR Gate OR X Y Z X 0 0 0 Z 0 1 1 Y 1 0 1 1 1 1 Z = X | Y
  • 9. OR •X | Y (Verilog) •X # Y (ABEL) • X or Y (VHDL) •X + Y (textbook) •X V Y •X U Y • or(Z,X,Y) (Verilog)
  • 10. Basic Logic Gates and Basic Digital Design • NOT, AND, and OR Gates • NAND and NOR Gates • DeMorgan’s Theorem • Exclusive-OR (XOR) Gate • Multiple-input Gates
  • 11. NAND Gate NAND X Y Z X 0 0 1 0 1 1 Z 1 0 1 Y 1 1 0 Z = ~(X & Y) nand(Z,X,Y)
  • 12. NAND Gate NOT-AND X Y W Z X 0 0 0 1 W 0 1 0 1 Z 1 0 0 1 Y 1 1 1 0 W = X & Y Z = ~W = ~(X & Y)
  • 13. NOR Gate NOR X Y Z X 0 0 1 Z 0 1 0 Y 1 0 0 1 1 0 Z = ~(X | Y) nor(Z,X,Y)
  • 14. NOR Gate NOT-OR X Y W Z X 0 0 0 1 W Z 0 1 1 0 Y 1 0 1 0 1 1 1 0 W = X | Y Z = ~W = ~(X | Y)
  • 15. Basic Logic Gates and Basic Digital Design • NOT, AND, and OR Gates • NAND and NOR Gates • DeMorgan’s Theorem • Exclusive-OR (XOR) Gate • Multiple-input Gates
  • 16. NAND Gate X Z X Z = Y Y Z = ~(X & Y) Z = ~X | ~Y X Y W Z X Y ~X ~Y Z 0 0 0 1 0 0 1 1 1 0 1 0 1 0 1 1 0 1 1 0 0 1 1 0 0 1 1 1 1 1 0 1 1 0 0 0
  • 17. De Morgan’s Theorem-1 ~(X & Y) = ~X | ~Y • NOT all variables • Change & to | and | to & • NOT the result
  • 18. NOR Gate X X Z Z Y Y Z = ~(X | Y) Z = ~X & ~Y X Y Z X Y ~X ~Y Z 0 0 1 0 0 1 1 1 0 1 0 0 1 1 0 0 1 0 0 1 0 0 1 0 1 1 0 1 1 0 0 0
  • 19. De Morgan’s Theorem-2 ~(X | Y) = ~X & ~Y • NOT all variables • Change & to | and | to & • NOT the result
  • 20. De Morgan’s Theorem • NOT all variables • Change & to | and | to & • NOT the result • -------------------------------------------- • ~X | ~Y = ~(~~X & ~~Y) = ~(X & Y) • ~(X & Y) = ~~(~X | ~Y) = ~X | ~Y • ~X & !Y = ~(~~X | ~~Y) = ~(X | Y) • ~(X | Y) = ~~(~X & ~Y) = ~X & ~Y
  • 21. Basic Logic Gates and Basic Digital Design • NOT, AND, and OR Gates • NAND and NOR Gates • DeMorgan’s Theorem • Exclusive-OR (XOR) Gate • Multiple-input Gates
  • 22. Exclusive-OR Gate XOR X Y Z X Z 0 0 0 Y 0 1 1 Z = X ^ Y 1 0 1 xor(Z,X,Y) 1 1 0
  • 23. XOR •X ^ Y (Verilog) •X $ Y (ABEL) •X @ Y gX ⊕ Y (textbook) • xor(Z,X,Y) (Verilog)
  • 24. Exclusive-NOR Gate XNOR X Y Z X Z 0 0 1 Y 0 1 0 Z = ~(X ^ Y) 1 0 0 Z = X ~^ Y 1 1 1 xnor(Z,X,Y)
  • 25. XNOR • X ~^ Y (Verilog) • !(X $ Y) (ABEL) •X @ Y gX e Y • xnor(Z,X,Y) (Verilog)
  • 26. Basic Logic Gates and Basic Digital Design • NOT, AND, and OR Gates • NAND and NOR Gates • DeMorgan’s Theorem • Exclusive-OR (XOR) Gate • Multiple-input Gates
  • 27. Multiple-input Gates Z1 Z2 Z3 Z4
  • 28. Multiple-input AND Gate Z1 Output Z 1 is HIGH only if all inputs are HIGH An open input will float HIGH
  • 29. Multiple-input OR Gate Z2 Output Z 2 is LOW only if all inputs are LOW
  • 30. Multiple-input NAND Gate Z3 Output Z 3 is LOW only if all inputs are HIGH
  • 31. Multiple-input NOR Gate Z4 Output Z 4 is HIGH only if all inputs are LOW