SlideShare a Scribd company logo
Logic Functions and Gates
 The three basic logic functions are:
◦ AND
◦ OR
◦ NOT
2
 Logic functions can be represented:
 algebraically
 using truth tables
 using electronic circuits.
3
 Uses Boolean algebra.
 Boolean variables have two states (binary).
 Boolean operators include AND, OR, and NOT.
4
 Defines the output of a function for every
possible combination of inputs.
 A system with n inputs has 2n possible
combinations.
5
 Uses logic gates to perform Boolean algebraic
functions.
 Gates can be represented by schematic
symbols.
 Symbols can be either distinctive-shape or
rectangular-outline.
6
 Uses different graphic representations for
different logic functions.
 Uses a bubble (a small circle) to indicate a
logical inversion.
7
 All functions are shown in rectangular
form with the logic function indicated by
standard notation inside the rectangle.
 The notation specifying the logic function
is called the qualifying symbol.
 Inversion is indicated by a 1/2 arrowhead.
8
 One input and one output.
 The output is the opposite logic level of the
input.
 The output is the complement of the input.
9
 Inversion is indicated by a bar over the
signal to be inverted.
10
AY 
 Called a NOT gate or, more usually, an
INVERTER.
 Distinctive-shape symbol is a triangle with
inversion bubble.
 Rectangular-shape symbol uses “1” and the
inversion 1/2 arrowhead.
11
12
 Two or more inputs, one output.
 Output is HIGH only when all of the inputs are
HIGH.
 Output is LOW whenever any input is LOW.
13
A B Y
0 0 0
0 1 0
1 0 0
1 1 1
14
 AND symbol is “•” or nothing at all.
15
ABY
BAY


 Called an AND gate.
 Distinctive-shape symbol uses AND
designation.
 Rectangular-shape symbol use “&” as
designator.
16
17
18
A B C Y
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
19
 Two or more inputs, one output.
 Output is HIGH whenever one or more input
is HIGH.
 Output is LOW only when all of the inputs are
LOW.
20
A B Y
0 0 0
0 1 1
1 0 1
1 1 1
21
 OR symbol is “+”.
 Y = A + B
22
 Called an OR gate.
 Distinctive-shape symbol uses OR
designation.
 Rectangular-shape symbol uses “” as
designator.
23
24
 The logic level defined as “ON” for a circuit.
 When a logic HIGH is “ON”, the signal is
active-HIGH.
 When a logic LOW is “ON”, the signal is
active-LOW.
25
 Generated by inverting the output of the AND
function.
 Output is HIGH whenever any input is LOW.
 Output is LOW only when all inputs are HIGH.
26
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
27
 Uses AND with an inversion overbar.
28
BAY 
 Called a NAND gate.
 Uses the AND symbol with inversion on.
29
30
 Generated by inverting the output of the OR
function.
 Output is HIGH only when all inputs are LOW.
 Outputs is LOW whenever any input is HIGH.
31
A B Y
0 0 1
0 1 0
1 0 0
1 1 0
32
 Uses OR with an inversion overbar.
33
BAY 
 Called a NOR gate.
 Uses OR symbol with inversion on the output.
34
35
 3 Input NAND:
 3 Input NOR:
36
CBAY 
CBAY 
CBA A B C
0 0 0 1 1
0 0 1 1 0
0 1 0 1 0
0 1 1 1 0
1 0 0 1 0
1 0 1 1 0
1 1 0 1 0
1 1 1 0 0
CBA 
37
CBA
 Two inputs, one output.
 Output is HIGH when one, and only one, input
is HIGH.
 Output is LOW when both inputs are equal –
both HIGH or both LOW.
38
39
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
40
 Two inputs, one output.
 Output is HIGH when both inputs are equal –
both HIGH or both LOW.
 Output is LOW when one, and only one, input
is HIGH.
41
42
A B Y
0 0 1
0 1 0
1 0 0
1 1 1
43
 A NAND gate can be represented by an AND
gate with inverted output.
 A NAND gate can be represented by an OR
gate with inverted inputs.
44
45
 A NOR gate can be represented by an OR gate
with inverted output.
 A NOR gate can be represented by an AND
gate with inverted inputs.
46
 Change an AND function to an OR function
and an OR function to an AND function.
 Invert the inputs.
 Invert the outputs.
47
 Break the line and change the sign
48
BABA 
BABA 
 The following are two common errors
associated with DeMorgan’s Theorem:


49
BABA 
BABA 
 Any INPUT or OUTPUT that has a BUBBLE is
considered as active LOW.
 Any INPUT or OUTPUT that has no BUBBLE is
considered as active HIGH.
50

 At least one input HIGH makes the output
LOW.

 All inputs LOW make the output HIGH.
51
BAY 
BAY 
52
 Provides a logic HIGH or LOW depending on
switch position.
 Commonly used types include normally-open
pushbutton, normally-closed pushbutton,
single-pole single-throw, and single-pole
double-throw.
53
54
55
 Two-pole push button allows for normally
HIGH and normally LOW levels from the same
switch.
56
57
 Used to indicate the status of a digital output.
 Has two terminals the anode and the cathode.
 If the anode is approximately 1.5 V greater
than the cathode, current flows and the LED
illuminates.
58
59
60
 Used to provide a visual indication of a logic
state.
 Can be wired to display active-HIGH or
active-LOW.
61
62
63
 The input to a gate that allows the output to
respond to other inputs.
 A logic LOW for an OR or NOR gate, a logic
HIGH for an AND or NAND gate.
64
 The input to a gate that forces the output to
ignore any other input.
 A logic HIGH for an OR or NOR gate, a logic
LOW for an AND or NAND gate.
65
66
67
68
69
70
71
Control AND OR NAND NOR XOR XNOR
A = 0 Y = 0 Y = B Y = 1 Y = B
A = 1 Y = B Y = 1 Y = 0 Y = BBY 
BY 
BY 
72
BY 
 Three output states, HIGH, LOW and high-
impedance.
 Requires a separate input to control which
output state is selected.
73
74
75
 Used to connect multiple outputs together.
 Used in controlling the operation of buses.
76
77
 Contains two groups of four non-inverting
tri-state buffers.
 Each group is controlled by a separate
enable input.
78
G
79
 Integrated Circuits (ICs) contain many
components in a single package.
 Several packaging options are available.
 One common package is called dual-in-line
(DIP).
80
81
 One common form is transistor-transistor
logic, called TTL.
 The other common form is Complementary
Metal-Oxide Semiconductor, called CMOS.
82
Part Number Logic Family
74LS00 Low-power Schottky TTL
74ALS00 Advanced low-power Schottky TTL
74F00 FAST TTL
74HC00 High-speed CMOS
74CT00 High-speed CMOS (TTL-compatible inputs)
74LVX00 Low-voltage CMOS
74ABT00 Advanced BiCMOS (TTL/CMOS hybrid)
83
 Standard form is 74XXFF, where 74 is the
logic family identifier, XX is the logic family
member and FF identifies the specific logic
function.
 SN74ALS00N
84
 PLCC - plastic lead chip carrier
 SOIC - small outline integrated circuit
 TSSOP – thin shrink small outline package
 QFP – quad flat pack
 DIP – dual inline package
 BGA – ball grid array
85
86
 Can be mounted on the surface of a circuit
board or mounted in a socket.
 Pins are equally distributed on four sides.
 Pin 1 placed on the center of one of the
rows, as indicated by a dot.
 Pins number counterclockwise from this
point.
87
88

More Related Content

PPT
Half adder & full adder
PPTX
Logic gates and NAND and NOR univarsal gates
PPTX
Computer circuit logic
PPTX
Adders(half aders and full adder with explanation , truth table and circuit d...
PPTX
Basic theorems and properties of boolean algebra
PPT
Encoder, decoder, multiplexers and demultiplexers
PPTX
Nand and nor as a universal gates
PPT
Combinational circuits
Half adder & full adder
Logic gates and NAND and NOR univarsal gates
Computer circuit logic
Adders(half aders and full adder with explanation , truth table and circuit d...
Basic theorems and properties of boolean algebra
Encoder, decoder, multiplexers and demultiplexers
Nand and nor as a universal gates
Combinational circuits

What's hot (20)

PPTX
Combinational circuits
PPTX
BOOLEAN ALGEBRA AND LOGIC GATE
PDF
Magnitude Comparator and types of MC
PPTX
Introduction to Counters
PPT
Logic gates
PPT
Number_Systems_and_Boolean_Algebra.ppt
PPTX
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
PPTX
Boolean Algebra
PPT
basic logic gates
PPTX
multiplexer and d-multiplexer
PPTX
Decoders
PPTX
Decoders-Digital Electronics
PDF
Registers and counters
PPTX
BOOLEAN ALGEBRA & LOGIC GATE
PPT
08 logic simplification
PDF
Sequential circuits in Digital Electronics
PPT
Logic gates presentation
PPT
Boolean Algebra
Combinational circuits
BOOLEAN ALGEBRA AND LOGIC GATE
Magnitude Comparator and types of MC
Introduction to Counters
Logic gates
Number_Systems_and_Boolean_Algebra.ppt
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Boolean Algebra
basic logic gates
multiplexer and d-multiplexer
Decoders
Decoders-Digital Electronics
Registers and counters
BOOLEAN ALGEBRA & LOGIC GATE
08 logic simplification
Sequential circuits in Digital Electronics
Logic gates presentation
Boolean Algebra
Ad

Similar to Chapter 02 Logic Functions and Gates (20)

PPTX
assignment_mathematics.pptx
PPT
Chapter+13.ppt
PPTX
Chapter_One.pptx of computer organization and
PPT
boolean algrebra and logic gates in short
PDF
Bt0064 logic design1
PPT
Computer architecture
PPT
Computer architecture
PPT
Digital Logic circuit
PPTX
gadhegadaedjsrijfzshbnzskfrkjsbipsjfdbdfnbdfkbj
PPT
Logic Gates (1).ppt
PPTX
Digital Electronics Fundamentals
PPT
new logic gates presentation basic gate universal gate.ppt
PPTX
Digital electronics - Basics
PDF
Arithmetic and logic unit
PPT
Digital Logic Circuits
PPT
lecture_binary_logic_and_logic_gates.ppt
PPT
Boolean-Algebra and logic gates slide.ppt
PDF
PLC Logic Circuits
PPT
9. logic gates._rr
PPT
Boolean Algebra logic gates with truth table
assignment_mathematics.pptx
Chapter+13.ppt
Chapter_One.pptx of computer organization and
boolean algrebra and logic gates in short
Bt0064 logic design1
Computer architecture
Computer architecture
Digital Logic circuit
gadhegadaedjsrijfzshbnzskfrkjsbipsjfdbdfnbdfkbj
Logic Gates (1).ppt
Digital Electronics Fundamentals
new logic gates presentation basic gate universal gate.ppt
Digital electronics - Basics
Arithmetic and logic unit
Digital Logic Circuits
lecture_binary_logic_and_logic_gates.ppt
Boolean-Algebra and logic gates slide.ppt
PLC Logic Circuits
9. logic gates._rr
Boolean Algebra logic gates with truth table
Ad

More from SSE_AndyLi (17)

PDF
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
PDF
Chapter 06 Combinational Logic Functions
PDF
Chapter 5 introduction to VHDL
PDF
Chapter 03 Boolean Algebra and Combinational Logic
PDF
Chapter 01 Basic Principles of Digital Systems
PDF
15 chapter9 graph_algorithms_mst
PDF
14 chapter9 graph_algorithmstopologicalsort_shortestpath
PDF
10 chapter6 heaps_priority_queues
PDF
9 chapter4 trees_avl
PDF
8 chapter4 trees_bst
PDF
7 chapter4 trees_binary
PDF
6 chapter3 list_stackqueuepart3
PDF
5 chapter3 list_stackqueuepart2
PDF
4 chapter3 list_stackqueuepart1
PDF
3 chapter2 algorithm_analysispart2
PDF
2 chapter2 algorithm_analysispart1
PDF
1 chapter1 introduction
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 06 Combinational Logic Functions
Chapter 5 introduction to VHDL
Chapter 03 Boolean Algebra and Combinational Logic
Chapter 01 Basic Principles of Digital Systems
15 chapter9 graph_algorithms_mst
14 chapter9 graph_algorithmstopologicalsort_shortestpath
10 chapter6 heaps_priority_queues
9 chapter4 trees_avl
8 chapter4 trees_bst
7 chapter4 trees_binary
6 chapter3 list_stackqueuepart3
5 chapter3 list_stackqueuepart2
4 chapter3 list_stackqueuepart1
3 chapter2 algorithm_analysispart2
2 chapter2 algorithm_analysispart1
1 chapter1 introduction

Recently uploaded (20)

PPTX
Lecture Notes Electrical Wiring System Components
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Construction Project Organization Group 2.pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Well-logging-methods_new................
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
PPT on Performance Review to get promotions
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
DOCX
573137875-Attendance-Management-System-original
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Lecture Notes Electrical Wiring System Components
CYBER-CRIMES AND SECURITY A guide to understanding
Construction Project Organization Group 2.pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
UNIT 4 Total Quality Management .pptx
Operating System & Kernel Study Guide-1 - converted.pdf
Well-logging-methods_new................
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
R24 SURVEYING LAB MANUAL for civil enggi
Foundation to blockchain - A guide to Blockchain Tech
PPT on Performance Review to get promotions
bas. eng. economics group 4 presentation 1.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
573137875-Attendance-Management-System-original
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf

Chapter 02 Logic Functions and Gates

  • 2.  The three basic logic functions are: ◦ AND ◦ OR ◦ NOT 2
  • 3.  Logic functions can be represented:  algebraically  using truth tables  using electronic circuits. 3
  • 4.  Uses Boolean algebra.  Boolean variables have two states (binary).  Boolean operators include AND, OR, and NOT. 4
  • 5.  Defines the output of a function for every possible combination of inputs.  A system with n inputs has 2n possible combinations. 5
  • 6.  Uses logic gates to perform Boolean algebraic functions.  Gates can be represented by schematic symbols.  Symbols can be either distinctive-shape or rectangular-outline. 6
  • 7.  Uses different graphic representations for different logic functions.  Uses a bubble (a small circle) to indicate a logical inversion. 7
  • 8.  All functions are shown in rectangular form with the logic function indicated by standard notation inside the rectangle.  The notation specifying the logic function is called the qualifying symbol.  Inversion is indicated by a 1/2 arrowhead. 8
  • 9.  One input and one output.  The output is the opposite logic level of the input.  The output is the complement of the input. 9
  • 10.  Inversion is indicated by a bar over the signal to be inverted. 10 AY 
  • 11.  Called a NOT gate or, more usually, an INVERTER.  Distinctive-shape symbol is a triangle with inversion bubble.  Rectangular-shape symbol uses “1” and the inversion 1/2 arrowhead. 11
  • 12. 12
  • 13.  Two or more inputs, one output.  Output is HIGH only when all of the inputs are HIGH.  Output is LOW whenever any input is LOW. 13
  • 14. A B Y 0 0 0 0 1 0 1 0 0 1 1 1 14
  • 15.  AND symbol is “•” or nothing at all. 15 ABY BAY  
  • 16.  Called an AND gate.  Distinctive-shape symbol uses AND designation.  Rectangular-shape symbol use “&” as designator. 16
  • 17. 17
  • 18. 18
  • 19. A B C Y 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 19
  • 20.  Two or more inputs, one output.  Output is HIGH whenever one or more input is HIGH.  Output is LOW only when all of the inputs are LOW. 20
  • 21. A B Y 0 0 0 0 1 1 1 0 1 1 1 1 21
  • 22.  OR symbol is “+”.  Y = A + B 22
  • 23.  Called an OR gate.  Distinctive-shape symbol uses OR designation.  Rectangular-shape symbol uses “” as designator. 23
  • 24. 24
  • 25.  The logic level defined as “ON” for a circuit.  When a logic HIGH is “ON”, the signal is active-HIGH.  When a logic LOW is “ON”, the signal is active-LOW. 25
  • 26.  Generated by inverting the output of the AND function.  Output is HIGH whenever any input is LOW.  Output is LOW only when all inputs are HIGH. 26
  • 27. A B Y 0 0 1 0 1 1 1 0 1 1 1 0 27
  • 28.  Uses AND with an inversion overbar. 28 BAY 
  • 29.  Called a NAND gate.  Uses the AND symbol with inversion on. 29
  • 30. 30
  • 31.  Generated by inverting the output of the OR function.  Output is HIGH only when all inputs are LOW.  Outputs is LOW whenever any input is HIGH. 31
  • 32. A B Y 0 0 1 0 1 0 1 0 0 1 1 0 32
  • 33.  Uses OR with an inversion overbar. 33 BAY 
  • 34.  Called a NOR gate.  Uses OR symbol with inversion on the output. 34
  • 35. 35
  • 36.  3 Input NAND:  3 Input NOR: 36 CBAY  CBAY 
  • 37. CBA A B C 0 0 0 1 1 0 0 1 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0 1 1 1 0 0 CBA  37 CBA
  • 38.  Two inputs, one output.  Output is HIGH when one, and only one, input is HIGH.  Output is LOW when both inputs are equal – both HIGH or both LOW. 38
  • 39. 39
  • 40. A B Y 0 0 0 0 1 1 1 0 1 1 1 0 40
  • 41.  Two inputs, one output.  Output is HIGH when both inputs are equal – both HIGH or both LOW.  Output is LOW when one, and only one, input is HIGH. 41
  • 42. 42
  • 43. A B Y 0 0 1 0 1 0 1 0 0 1 1 1 43
  • 44.  A NAND gate can be represented by an AND gate with inverted output.  A NAND gate can be represented by an OR gate with inverted inputs. 44
  • 45. 45
  • 46.  A NOR gate can be represented by an OR gate with inverted output.  A NOR gate can be represented by an AND gate with inverted inputs. 46
  • 47.  Change an AND function to an OR function and an OR function to an AND function.  Invert the inputs.  Invert the outputs. 47
  • 48.  Break the line and change the sign 48 BABA  BABA 
  • 49.  The following are two common errors associated with DeMorgan’s Theorem:   49 BABA  BABA 
  • 50.  Any INPUT or OUTPUT that has a BUBBLE is considered as active LOW.  Any INPUT or OUTPUT that has no BUBBLE is considered as active HIGH. 50
  • 51.   At least one input HIGH makes the output LOW.   All inputs LOW make the output HIGH. 51 BAY  BAY 
  • 52. 52
  • 53.  Provides a logic HIGH or LOW depending on switch position.  Commonly used types include normally-open pushbutton, normally-closed pushbutton, single-pole single-throw, and single-pole double-throw. 53
  • 54. 54
  • 55. 55
  • 56.  Two-pole push button allows for normally HIGH and normally LOW levels from the same switch. 56
  • 57. 57
  • 58.  Used to indicate the status of a digital output.  Has two terminals the anode and the cathode.  If the anode is approximately 1.5 V greater than the cathode, current flows and the LED illuminates. 58
  • 59. 59
  • 60. 60
  • 61.  Used to provide a visual indication of a logic state.  Can be wired to display active-HIGH or active-LOW. 61
  • 62. 62
  • 63. 63
  • 64.  The input to a gate that allows the output to respond to other inputs.  A logic LOW for an OR or NOR gate, a logic HIGH for an AND or NAND gate. 64
  • 65.  The input to a gate that forces the output to ignore any other input.  A logic HIGH for an OR or NOR gate, a logic LOW for an AND or NAND gate. 65
  • 66. 66
  • 67. 67
  • 68. 68
  • 69. 69
  • 70. 70
  • 71. 71
  • 72. Control AND OR NAND NOR XOR XNOR A = 0 Y = 0 Y = B Y = 1 Y = B A = 1 Y = B Y = 1 Y = 0 Y = BBY  BY  BY  72 BY 
  • 73.  Three output states, HIGH, LOW and high- impedance.  Requires a separate input to control which output state is selected. 73
  • 74. 74
  • 75. 75
  • 76.  Used to connect multiple outputs together.  Used in controlling the operation of buses. 76
  • 77. 77
  • 78.  Contains two groups of four non-inverting tri-state buffers.  Each group is controlled by a separate enable input. 78 G
  • 79. 79
  • 80.  Integrated Circuits (ICs) contain many components in a single package.  Several packaging options are available.  One common package is called dual-in-line (DIP). 80
  • 81. 81
  • 82.  One common form is transistor-transistor logic, called TTL.  The other common form is Complementary Metal-Oxide Semiconductor, called CMOS. 82
  • 83. Part Number Logic Family 74LS00 Low-power Schottky TTL 74ALS00 Advanced low-power Schottky TTL 74F00 FAST TTL 74HC00 High-speed CMOS 74CT00 High-speed CMOS (TTL-compatible inputs) 74LVX00 Low-voltage CMOS 74ABT00 Advanced BiCMOS (TTL/CMOS hybrid) 83
  • 84.  Standard form is 74XXFF, where 74 is the logic family identifier, XX is the logic family member and FF identifies the specific logic function.  SN74ALS00N 84
  • 85.  PLCC - plastic lead chip carrier  SOIC - small outline integrated circuit  TSSOP – thin shrink small outline package  QFP – quad flat pack  DIP – dual inline package  BGA – ball grid array 85
  • 86. 86
  • 87.  Can be mounted on the surface of a circuit board or mounted in a socket.  Pins are equally distributed on four sides.  Pin 1 placed on the center of one of the rows, as indicated by a dot.  Pins number counterclockwise from this point. 87
  • 88. 88