SlideShare a Scribd company logo
1 of 28
Digital Logic Design
IT101LGD
Prepared By
Asst. Lect. Mohammed Salim
Department of IT
1 LFU 2014
Grading
LFU 20142
 Course Grading:
Midterm Exam 25%
Course Work and Assignments 15%
Final Exam 60%
Total 100%
What does this chapter give you?
LFU 20143
 Identify the basic gates and describe the behavior of
each.
 Describe the behavior of a gate or circuit using
Boolean expressions, truth tables, and logic
diagrams.
 Combine basic gates into circuits.
 How to build half adder
and a full adder.
Contents
LFU 20144
Introduction
Logic Gates
Half-Adder
Full-Adder
Introduction
LFU 20145
Boolean functions may be practically implemented by
using electronic gates. The following points are
important to understand:
1- Electronic gates require a power supply.
2- Gate INPUTS are driven by voltages having two
nominal values, e.g. 0V and 5V representing logic 0
and logic 1 respectively.
Introduction
LFU 20146
3- The OUTPUT of a gate provides two nominal values
of voltage only, e.g. 0V and 5V representing logic 0
and logic 1 respectively. In general, there is only one
output to a logic gate except in some special cases.
4- There is always a time delay between an input
being applied and the output responding.
Introduction
Transistor Building Block of Computers
 Microprocessors contain millions of transistors
 Intel Pentium 4 (2000): 48 million
 IBM PowerPC 750FX (2002): 38 million
 IBM/Apple PowerPC G5 (2003): 58 million
 Logically, each transistor acts as a switch
Combined to implement logic functions
 AND, OR, NOT
 Combined to build higher-level structures
 Adder, multiplexer, decoder, register, …
Logic Gates – Binary Logic
LFU 20148
 Binary variables take one of two values.
 Logical operators operate on binary values and
binary variables.
 Basic logical operators are the logic functions AND,
OR and NOT.
 Logic gates implement logic functions.
 Boolean Algebra: a useful mathematical system for
specifying and transforming logic functions.
 We study Boolean algebra as a foundation for
designing and analyzing digital systems!
Logic Gates – Binary Variables
LFU 20149
 Remember that the two binary values have different
names:
 True/False
 On/Off
 Yes/No
 1/0
 We use 1 and 0 to denote the two values.
 Variable identifier examples:
 A, B, y, z
Logic Gates – Logical operations
LFU 201410
 The three basic logical operations are:
 AND
 OR
 NOT
 AND is denoted by a dot (·).
 OR is denoted by a plus (+).
 NOT is denoted by an overbar ( ¯ ), a single quote
mark (') after, or (~) before the variable.
Logic Gates – Notation Examples
LFU 201411
 Examples:
 is read “Y is equal to A AND B.”
 is read “z is equal to x OR y.”
 is read “X is equal to NOT A.”
Note: The statement:
 1 + 1 = 2 (read “one plus one equals two”)
is not the same as
 1 + 1 = 1 (read “1 or 1 equals 1”).
= BAY 
yxz +=
AX =
Logic Gates
LFU 201412
 A Logical gate is a device that performs a basic
operation on electrical signals, and these gates are
combined into circuits to perform more complicated
tasks.
 All basic logic gates have the ability to accept either
one or two input signals (depending upon the type of
gate) and generate one output signal.
Logic Gates Representation
LFU 201413
 There are three different methods for describing the
behavior of gates and circuits:
 Boolean expressions
 Logic diagrams
 Truth tables
Logic Gates Representation
LFU 201414
 Boolean expressions: expressions in this algebraic
notation are an smart way to show the activity of
electrical circuits.
 Logic diagrams: a graphical representation of a
circuit and each type of gate is represented by a
specific graphical symbol
 Truth tables: defines the function of a gate by listing
all possible input combinations that the gate could
encounter, and the corresponding output
Logic Gates
LFU 201415
 Let’s take the processing of the following six types of
gates:
 NOT
 AND
 OR
 NAND
 NOR
 XOR
NOT Gate
LFU 201416
 A NOT gate accepts only one input value
and produces one output value
 By definition, if the input value for a NOT gate is 0,
the output value is 1, and if the input value is 1, the
output is 0
 A NOT gate is sometimes called as an inverter
because it inverts the input value
AND Gate
LFU 201417
 An AND gate accepts two input signals.
 If the two input values for an AND gate are both 1,
the output is 1; otherwise, the output is 0
OR Gate
LFU 201418
 An OR gate accepts two input signals.
 If the two input values are both 0, the output value is
0; otherwise, the output is 1
XOR , or exclusive OR Gate
LFU 201419
 An XOR gate produces 0 if its two inputs are the
same, and a 1 otherwise.
 Note the difference between the XOR gate
and the OR gate; they differ only in one
input situation, when both input signals are 1, the OR
gate produces a 1 and the XOR produces a 0
NAND and NOR Gates
LFU 201420
 The NAND and NOR gates are basically the
opposite of the AND and OR gates, respectively:
 NAND gate:
 NOR gate:
Review of Logic Gates
LFU 201421
 A NOT gate inverts its single input value .
 An AND gate produces 1 if both input values are 1 .
 An OR gate produces 1 if one or the other or both input
values are 1 .
 An XOR gate produces 1 if one or the other (but not both)
input values are 1 .
 A NAND gate produces the opposite results of an AND
gate .
 A NOR gate produces the opposite results of an OR gate
.
Logic Gates Processor Example
LFU 201422
Half Adder
LFU 201423
 Half adder is a combinational logic circuit with two
input and two output. The half adder circuit is
designed to add two single bit binary number A and
B. It is the basic building block for addition of two
single bit numbers. This circuit has two
outputs carry and sum.
Half Adder
LFU 201424
Full Adder
LFU 201425
 Full adder is developed to overcome the drawback of
Half Adder circuit. It can add two one-bit numbers A
and B, and carry c. The full adder is a three input
and two output combinational circuit.
Full Adder
LFU 201426
Full Adder
LFU 201427
End of Chapter 3
LFU 201428
 Note : The PowerPoint slides are taken from internet websites and a
variety of presentations.
All the basic logic gates

More Related Content

What's hot

Basic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraBasic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraHanu Kavi
 
Boolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsBoolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsJaipal Dhobale
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebraGagan Deep
 
Digital electronics
Digital electronicsDigital electronics
Digital electronicsnanishajieha
 
BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebra
BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebraBCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebra
BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebraRai University
 
Computer Architecture & Organization
Computer Architecture & OrganizationComputer Architecture & Organization
Computer Architecture & OrganizationNANDINI SHARMA
 
Introduction to Boolean Algebra
Introduction to Boolean AlgebraIntroduction to Boolean Algebra
Introduction to Boolean Algebrablaircomp2003
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA Shaik Aman
 
Introduction to digital logic
Introduction to digital logicIntroduction to digital logic
Introduction to digital logicKamal Acharya
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraMahiboobAliMulla
 

What's hot (20)

Basic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraBasic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebra
 
boolean algebra
boolean algebraboolean algebra
boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsBoolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuits
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
07 boolean algebra
07 boolean algebra07 boolean algebra
07 boolean algebra
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebra
BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebraBCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebra
BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebra
 
Computer Architecture & Organization
Computer Architecture & OrganizationComputer Architecture & Organization
Computer Architecture & Organization
 
Digital electronics - Basics
Digital electronics - BasicsDigital electronics - Basics
Digital electronics - Basics
 
Boolean+logic
Boolean+logicBoolean+logic
Boolean+logic
 
Introduction to Boolean Algebra
Introduction to Boolean AlgebraIntroduction to Boolean Algebra
Introduction to Boolean Algebra
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
 
DE notes
DE notesDE notes
DE notes
 
Digital design chap 2
Digital design    chap 2Digital design    chap 2
Digital design chap 2
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Introduction to digital logic
Introduction to digital logicIntroduction to digital logic
Introduction to digital logic
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebra
 

Viewers also liked

Viewers also liked (9)

DLD Intro
DLD IntroDLD Intro
DLD Intro
 
Math1003 1.15 - Integers and 2's Complement
Math1003 1.15 - Integers and 2's ComplementMath1003 1.15 - Integers and 2's Complement
Math1003 1.15 - Integers and 2's Complement
 
Complement
ComplementComplement
Complement
 
Complements
ComplementsComplements
Complements
 
2s complement arithmetic
2s complement arithmetic2s complement arithmetic
2s complement arithmetic
 
Analog and digital signal system : digital logic
Analog and digital signal system : digital logicAnalog and digital signal system : digital logic
Analog and digital signal system : digital logic
 
1s and 2s complement
1s and 2s complement1s and 2s complement
1s and 2s complement
 
Complements of numbers
Complements of numbersComplements of numbers
Complements of numbers
 
Two’s complement
Two’s complementTwo’s complement
Two’s complement
 

Similar to Digital logic mohammed salim ch3

Logic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andLogic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andMuruganandhanD
 
Basic gates and functions
Basic gates and functionsBasic gates and functions
Basic gates and functionspong_sk1
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptxAravindaAKumar1
 
1,basic and derived logic gates.pdf
1,basic and derived logic gates.pdf1,basic and derived logic gates.pdf
1,basic and derived logic gates.pdfDamotTesfaye
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxRithinA1
 
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdfM. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdfDr.Florence Dayana
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxWilliamJosephat1
 
boolean algrebra and logic gates in short
boolean algrebra and logic gates in shortboolean algrebra and logic gates in short
boolean algrebra and logic gates in shortRojin Khadka
 
ICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxChristianVelchez2
 
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa1608 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16John Todora
 
Basic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdfBasic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdfKINGZzofYouTube
 

Similar to Digital logic mohammed salim ch3 (20)

Logic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andLogic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers and
 
Basic gates and functions
Basic gates and functionsBasic gates and functions
Basic gates and functions
 
12733771.ppt
12733771.ppt12733771.ppt
12733771.ppt
 
BASIC LOGIC GATES.pdf
BASIC LOGIC GATES.pdfBASIC LOGIC GATES.pdf
BASIC LOGIC GATES.pdf
 
Class 12th Logic Gates
Class 12th Logic GatesClass 12th Logic Gates
Class 12th Logic Gates
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptx
 
1,basic and derived logic gates.pdf
1,basic and derived logic gates.pdf1,basic and derived logic gates.pdf
1,basic and derived logic gates.pdf
 
Chapter+13.ppt
Chapter+13.pptChapter+13.ppt
Chapter+13.ppt
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptx
 
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdfM. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptx
 
boolean algrebra and logic gates in short
boolean algrebra and logic gates in shortboolean algrebra and logic gates in short
boolean algrebra and logic gates in short
 
Digital logic
Digital logicDigital logic
Digital logic
 
ICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptx
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Deld lab manual
Deld lab manualDeld lab manual
Deld lab manual
 
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa1608 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
 
Logic gates 07 11-2014
Logic gates 07 11-2014Logic gates 07 11-2014
Logic gates 07 11-2014
 
Basic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdfBasic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdf
 
INTRODUCTION OF LOGIC GATES
INTRODUCTION OF LOGIC GATESINTRODUCTION OF LOGIC GATES
INTRODUCTION OF LOGIC GATES
 

Recently uploaded

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 

Recently uploaded (20)

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 

Digital logic mohammed salim ch3

  • 1. Digital Logic Design IT101LGD Prepared By Asst. Lect. Mohammed Salim Department of IT 1 LFU 2014
  • 2. Grading LFU 20142  Course Grading: Midterm Exam 25% Course Work and Assignments 15% Final Exam 60% Total 100%
  • 3. What does this chapter give you? LFU 20143  Identify the basic gates and describe the behavior of each.  Describe the behavior of a gate or circuit using Boolean expressions, truth tables, and logic diagrams.  Combine basic gates into circuits.  How to build half adder and a full adder.
  • 5. Introduction LFU 20145 Boolean functions may be practically implemented by using electronic gates. The following points are important to understand: 1- Electronic gates require a power supply. 2- Gate INPUTS are driven by voltages having two nominal values, e.g. 0V and 5V representing logic 0 and logic 1 respectively.
  • 6. Introduction LFU 20146 3- The OUTPUT of a gate provides two nominal values of voltage only, e.g. 0V and 5V representing logic 0 and logic 1 respectively. In general, there is only one output to a logic gate except in some special cases. 4- There is always a time delay between an input being applied and the output responding.
  • 7. Introduction Transistor Building Block of Computers  Microprocessors contain millions of transistors  Intel Pentium 4 (2000): 48 million  IBM PowerPC 750FX (2002): 38 million  IBM/Apple PowerPC G5 (2003): 58 million  Logically, each transistor acts as a switch Combined to implement logic functions  AND, OR, NOT  Combined to build higher-level structures  Adder, multiplexer, decoder, register, …
  • 8. Logic Gates – Binary Logic LFU 20148  Binary variables take one of two values.  Logical operators operate on binary values and binary variables.  Basic logical operators are the logic functions AND, OR and NOT.  Logic gates implement logic functions.  Boolean Algebra: a useful mathematical system for specifying and transforming logic functions.  We study Boolean algebra as a foundation for designing and analyzing digital systems!
  • 9. Logic Gates – Binary Variables LFU 20149  Remember that the two binary values have different names:  True/False  On/Off  Yes/No  1/0  We use 1 and 0 to denote the two values.  Variable identifier examples:  A, B, y, z
  • 10. Logic Gates – Logical operations LFU 201410  The three basic logical operations are:  AND  OR  NOT  AND is denoted by a dot (·).  OR is denoted by a plus (+).  NOT is denoted by an overbar ( ¯ ), a single quote mark (') after, or (~) before the variable.
  • 11. Logic Gates – Notation Examples LFU 201411  Examples:  is read “Y is equal to A AND B.”  is read “z is equal to x OR y.”  is read “X is equal to NOT A.” Note: The statement:  1 + 1 = 2 (read “one plus one equals two”) is not the same as  1 + 1 = 1 (read “1 or 1 equals 1”). = BAY  yxz += AX =
  • 12. Logic Gates LFU 201412  A Logical gate is a device that performs a basic operation on electrical signals, and these gates are combined into circuits to perform more complicated tasks.  All basic logic gates have the ability to accept either one or two input signals (depending upon the type of gate) and generate one output signal.
  • 13. Logic Gates Representation LFU 201413  There are three different methods for describing the behavior of gates and circuits:  Boolean expressions  Logic diagrams  Truth tables
  • 14. Logic Gates Representation LFU 201414  Boolean expressions: expressions in this algebraic notation are an smart way to show the activity of electrical circuits.  Logic diagrams: a graphical representation of a circuit and each type of gate is represented by a specific graphical symbol  Truth tables: defines the function of a gate by listing all possible input combinations that the gate could encounter, and the corresponding output
  • 15. Logic Gates LFU 201415  Let’s take the processing of the following six types of gates:  NOT  AND  OR  NAND  NOR  XOR
  • 16. NOT Gate LFU 201416  A NOT gate accepts only one input value and produces one output value  By definition, if the input value for a NOT gate is 0, the output value is 1, and if the input value is 1, the output is 0  A NOT gate is sometimes called as an inverter because it inverts the input value
  • 17. AND Gate LFU 201417  An AND gate accepts two input signals.  If the two input values for an AND gate are both 1, the output is 1; otherwise, the output is 0
  • 18. OR Gate LFU 201418  An OR gate accepts two input signals.  If the two input values are both 0, the output value is 0; otherwise, the output is 1
  • 19. XOR , or exclusive OR Gate LFU 201419  An XOR gate produces 0 if its two inputs are the same, and a 1 otherwise.  Note the difference between the XOR gate and the OR gate; they differ only in one input situation, when both input signals are 1, the OR gate produces a 1 and the XOR produces a 0
  • 20. NAND and NOR Gates LFU 201420  The NAND and NOR gates are basically the opposite of the AND and OR gates, respectively:  NAND gate:  NOR gate:
  • 21. Review of Logic Gates LFU 201421  A NOT gate inverts its single input value .  An AND gate produces 1 if both input values are 1 .  An OR gate produces 1 if one or the other or both input values are 1 .  An XOR gate produces 1 if one or the other (but not both) input values are 1 .  A NAND gate produces the opposite results of an AND gate .  A NOR gate produces the opposite results of an OR gate .
  • 22. Logic Gates Processor Example LFU 201422
  • 23. Half Adder LFU 201423  Half adder is a combinational logic circuit with two input and two output. The half adder circuit is designed to add two single bit binary number A and B. It is the basic building block for addition of two single bit numbers. This circuit has two outputs carry and sum.
  • 25. Full Adder LFU 201425  Full adder is developed to overcome the drawback of Half Adder circuit. It can add two one-bit numbers A and B, and carry c. The full adder is a three input and two output combinational circuit.
  • 28. End of Chapter 3 LFU 201428  Note : The PowerPoint slides are taken from internet websites and a variety of presentations. All the basic logic gates