Docsity

Logic Gates: Understanding AND, OR, NOT, NAND, NOR, XOR, and XNOR Gates, Slides of Digital Logic Design and Programming

Partial preview of the text

Download Logic Gates: Understanding AND, OR, NOT, NAND, NOR, XOR, and XNOR Gates and more Slides Digital Logic Design and Programming in PDF only on Docsity!

Lecture No. 6

Logic Gates

Recap

 Logic Gates Basic Building Blocks

 Symbol

 Performs unique function

 Represented by a function/truth table

 Function expression

 Timing Diagram

Recap  Alternate Symbolic representations  NAND Gate  NOT-AND operation  Universal NAND Gate  NOR Gate  NOT-OR operation  Universal NOR Gate

F = A • B

F = A + B

NOR Universal Gate Input Output A B F 0 0 0 0 1 1 1 0 1 1 1 1 1 2

NAND-NOR Universal Gate 3 1 2 4 3 1 2 4

NAND Gate Applications  Device Failure Alarm ALARM

XOR Gate  1 output  2 inputs  Multiple inputs 0 = 0 0

XOR Gate function Input Output A B F 0 0 0 0 1 1 1 0 1 1 1 0 F = A ⊕ B

XNOR Gate  1 output  2 inputs  Multiple inputs 0 = 0 0

XNOR Gate function Input Output A B F 0 0 1 0 1 0 1 0 0 1 1 1 F = A ⊕ B

XOR Gate Applications  Detecting odd number of 1’s 1 2 3 A B C D

XNOR Gate Applications  Detecting even number of 1’s 1 2 3 A B C D

Type of IC Logic Gates  74XX00 Quad 2-input NAND Gate  74XX02 Quad 2-input NOR Gate  74XX04 Hex Inverter  74XX08 Quad 2-input AND Gate  74XX10 Triple 3-input NAND Gate  74XX11 Triple 3-input AND Gate  74XX20 Dual 4-input NAND Gate

Type of IC Logic Gates  74XX21 Dual 2-input AND Gate  74XX27 Triple 3-input NOR Gate  74XX30 Single 8-input NAND Gate  74XX32 Quad 2-input OR Gate  74XX86 Quad 2-input XOR Gate  74XX133 Single 13-input NAND Gate