SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Downloaden Sie, um offline zu lesen
1
Boolean Algebra & Logic Gates
Chapter 2
Chapter Outline
2
 Introduction
 Digital Logic Gates
 Other Logic Operators
 Logic levels and Digital signals
 Positive and Negative Logic
 Introduction to Boolean algebra
 Postulates and Theorems of Boolean Algebra
 Venn Diagram
 Boolean Functions
 Simplification of Boolean Expressions
 Canonical and Standard forms of logic functions
 Variables, literals and terms in Boolean expressions
 Dual of a Boolean expressions
Chapter 2: Boolean Algebra and Logic Gates
Introduction
 Boolean algebra is a mathematical model (system) that provides the basis for logic
operations. George Boole, an English mathematician, introduced this concept in
the study of mathematical theory of logic.
 Digital circuits contain hard ware element called “gates” that perform logic
operations.
Logic Gates
Basic logic gates
Boolean algebra uses three basic operations namely AND, OR, and NOT.
OR Gate: - the output of this gate will be "high" (1) if any of the inputs are "high" (1).
The output goes "low"(0) if and only if all inputs are "low" (0).
A B Y
0 0 0
0 1 1
1 0 1
1 1 1 3
AND Gate: - have one or more input and one output. The output of this
gate will be "high" (1) if and only if all inputs are "high" (1). If any
input(s) are "low" (0), the output will be "low" (0).
A B Y
0 0 0
0 1 0
1 0 0
1 1 1 4
Example: In figure below, what would the output pulse train
look like?
NOT (inverter) Gate : - a urinary operator that complement’s a variable
and it is written as . The output of NOT gate is "high" if and only if the
input is "low"
X Y
0 1
1 0
5
Example: In figure below, what would the output pulse train
look like‘?
Other Logic Operations
 The four other important logic operations are NOR, NAND,
Exclusive-OR (EX-OR), and Exclusive-NOR (EX-NOR).
NOR Gate (OR +NOT): - the output goes "low" (0) if any of the inputs are
made "high" (1). The output is "high" (1) only when all inputs are
"low" (0).
A B OR NOR
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
6
NAND Gate: - it behaves the same as an AND gate with a NOT
(inverter) gate connected to the output terminal.
A B AND NAND
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
7
Exclusive-OR (EX-OR) Gate: - the output is a "high" (1) logic level if the
inputs are at different logic levels, either 0 and 1 or 1 and 0. The output is
a "low" (0) logic level if the inputs are at the same logic levels. The
Exclusive-OR (sometimes called XOR) gate.
𝑌 = 𝐴 ∙ 𝐵 + 𝐴 ∙ 𝐵 = 𝐴 ⊕ 𝐵
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
8
Exclusive-NOR (EX-NOR) Gate:-means NOT of EX-OR, i.e. the logic
gate that we get by complementing the output of an EX-OR gate.
A B EX-0R EX-NOR
0 0 0 1
0 1 1 0
1 0 1 0
1 1 0 1
9
Universal Gates
 OR, AND, and NOT gates are the three basic logic gates as they
together can be used to construct the logic circuit for any given
Boolean expression.
 NOR and NAND gates have the property that they individually can be
used to hardware-implement a logic circuit corresponding to any
given Boolean expression.
 That is, it is possible to use either only NAND gates or only NOR
gates to implement any Boolean expression. This is so because a
combination of NAND gates or a combination of NOR gates can be
used to perform functions of any of the basic logic gates. It is for this
reason that NAND and NOR gates are universal gates.
10
11
Figure
Implementation of basic logic gates using only NAND gates.
Universal Gates
12
Figure
Implementation of basic logic gates using only NOR gates.
Universal Gates
Logic Levels and Digital Signals
13
14
Positive and Negative Logic
 The binary variables, as we know, can have either of the two states,
i.e. the logic ‘0’ state or the logic ‘1’ state.
 These logic states in digital systems such as computers, for instance,
are represented by two different voltage levels or two different
current levels.
 If the more positive of the two voltage or current levels represents a
logic ‘1’ and the less positive of the two levels represents a logic ‘0’,
then the logic system is referred to as a positive logic system.
 If the more positive of the two voltage or current levels represents a
logic ‘0’ and the less positive of the two levels represents a logic ‘1’,
then the logic system is referred to as a negative logic system.
15
Boolean Algebra
 Boolean algebra is defined as an algebra manipulation based on
binary number system.
 Like any algebra, Boolean algebra is based on a set of rules that
derived from a small number of basic assumptions called Axioms.
Postulates and theorems of Boolean algebra
Assume that the following axioms are true.
1a. 0∙0 = 0 3a. 1 ∙ 1 = 1
1b. 0 + 0 = 0 3b. 1 + 1 = 1
2a. 0 ∙ 1 = 1 ∙ 0 = 0 4a. 𝐼𝑓 𝑥 = 0, 𝑡ℎ𝑒𝑛 𝑥 = 1
2b. 0 + 1 = 1 + 0 = 1 4b. 𝐼𝑓 𝑥 = 1, 𝑡ℎ𝑒𝑛 𝑥 = 0
16
Single variable theorem
From the axioms we can define some rules which are dealing
with a single variable. These rules are often called theorems. If 𝑥 is a
variable in B, then the following theorems hold true.
5a. 𝑥 ∙ 0 = 0 7a. 𝑥 ∙ 𝑥 = 𝑥 9. 𝑥 = 𝑥
5b. 𝑥 + 0 = 𝑥 7b. 𝑥 + 𝑥 = 𝑥
6a. 𝑥 ∙ 1 = 𝑥 8a. 𝑥 ∙ 𝑥 = 0
6b. 𝑥 + 1 = 1 8b.x + 𝑥 = 1
Note that it is easy to prove the validity of these theorems by
substituting the possible values of 𝑥. i.e. 0 or 1.
17
Two and three variables properties
Commutative
Associative
Distributive
Simplification
DE Morgan’s law
N: B: - theorems from 10a to 15b involve more than one variable and can
be proved by making truth table 18
X Y Z Y∙Z X+(Y∙Z) X+Y X+Z (X+Y)∙(X+Z)
0 0 0 0 0 0 0 0
0 0 1 0 0 0 1 0
0 1 0 0 0 1 0 0
0 1 1 1 1 1 1 1
1 0 0 0 1 1 1 1
1 0 1 0 1 1 1 1
1 1 0 0 1 1 1 1
1 1 1 1 1 1 1 1
For example, 12. 𝑏. 𝑋 + 𝑌 ∙ 𝑍 = (𝑋 + 𝑌) ∙ (𝑋 + 𝑍)
19
Variables, Literals and Terms in Boolean Expression
 Variablesare the different symbols in a Boolean expression. The
complement of a variable is not considered as a separate variable.
 Each occurrence of a variable or its complement is called a literal. For
two variables 𝑥 𝑎𝑛𝑑 𝑦, the literals are 𝑥, 𝑦, 𝑥 𝑎𝑛𝑑 𝑦.
 Example 1. 𝐴 + 𝐴 ∙ 𝐵 + 𝐴 ∙ 𝐶 + 𝐴 ∙ 𝐵 ∙ 𝐶
2. 𝑃 + 𝑄 ∙ 𝑅 + 𝑆 ∙ 𝑃 + 𝑄 + 𝑅
 In expressions (1) and (2) there are eight and seven literals
respectively.
 A Boolean function may contain several terms for example, ,
expressions(3) consists Six terms , which are inputs to OR gate. Each
term may include a single or multiple variables which may or may not
be complemented.
 Example:
3. 𝐹 = 𝐴 + 𝐴 ∙ 𝐵′ + 𝐴 ∙ 𝐵′ ∙ 𝐶 + 𝐴′ ∙ 𝐵 ∙ 𝐶′ + 𝐴 ∙ 𝐵 ∙ 𝐶 + 𝐴′ ∙ 𝐵′ ∙ 𝐶′
20
21
For example, 𝑓 = 𝑦 + 𝑥𝑦 = 𝑦 ∙ 1 ∙ 𝑥 = 𝑦
Then the dual f, 𝑓𝐷
𝑓𝐷 = 𝑦 ∙ 𝑥 + 𝑦 = 𝑦 ∙ 𝑥 + 𝑦 + 𝑦 = 𝑦 ∙ 𝑥 + 𝑦 = 𝑦 ∙ 𝑥 ∙ 1 = 𝑦
Hence, 𝑓 = 𝑓𝐷
Duality principle of Boolean Algebra
Duality principle states that a Boolean function remains valid if we take
the dual of the expressions on both sides of the equal sign. Dual can be
found by interchanging the (+) operator with (∙) operator and vice versa
and by replacing all 0’s with 1’s and vice versa.
Venn Diagram
 A helpful illustration that may be used to realize the relation among the variables
of a Boolean expression is called Venn diagram.
 This diagram consist overlapping circles inside a rectangle as shown in the figure
below.
Venn diagram for two variables
 Each circle labeled by a variable. We designate all points inside a circle as belonging
to the named variable and all points outside a circle are not belonging to the
variable. For example, take the circle labeled x. if we are inside the circle, we say
that x = 1; when outside, we say x = 0. Now, with two overlapping circles, there are
four distinct areas inside the rectangle: these are
X'Y' = the area not belonging to either X or Y.
X'Y =the area inside a circle Y but outside X.
XY' = the area inside a circle X but outside Y.
XY = the area inside both circles.
22
Simplification using Boolean Algebra
Example: - Simplify the following expression using Boolean algebra
23
1. 𝐴 ∙ 𝐵 + 𝐴 ∙ 𝐵 + 𝐶 + 𝐵 ∙ (𝐵 + 𝐶)
2. (𝐴 ∙ 𝐵 + 𝐴 ∙ 𝐶)′ + 𝐴′ ∙ 𝐵′ ∙ 𝐶
3. 𝐴 ∙ 𝐵′ + 𝐶 + 𝐵 ∙ 𝐷 + 𝐴′ ∙ 𝐵′ ∙ 𝐶
4. 𝐴 ∙ 𝐵 + 𝐶 ∙ 𝐷) ∙ (𝐴′ + 𝐵′) ∙ (𝐶′ + 𝐷′
Canonical and Standard forms for logic functions
24
Canonical form
 Consider two variables X and Y combined with an AND operation.
There are four possible combinations: XY, X′Y, XY′, and X′Y′. This is
called minterm or a standard product.
 The variable is primed if the corresponding bit of binary number is 0.
 In a similar fashion, n variables forming an OR term, with each
variable primed or unprimed provide 2nd possible combinations called
maxtermsor a standard sums.
 The variable is unprimed if the corresponding bit is 0 and primed if it
is 1.
Minterms and Maxterms for 3 binary variables
25
Variables Minterms Maxterms
X Y Z Terms Designation Terms Designation
0 0 0 X’Y’Z’ 𝑚0 X+Y+Z 𝑀0
0 0 1 X’Y’Z 𝑚1 X+Y+Z’ 𝑀1
0 1 0 X’YZ’ 𝑚2 X+Y’+Z 𝑀2
0 1 1 X’YZ 𝑚3 X+Y’+Z’ 𝑀3
1 0 0 XY’Z’ 𝑚4 X’+Y+Z 𝑀4
1 0 1 XY’Z 𝑚5 X’+Y+Z’ 𝑀5
1 1 0 XYZ’ 𝑚6 X’+Y’+Z 𝑀6
1 1 1 XYZ 𝑚7 X’+Y’+Z’ 𝑀7
N: B each maxterm is the complement of its corresponding minterm
and vice versa.
 A Boolean function may be expressed algebraically from a given truth table. Form
minterm by forming a minterm for each combination of variables that produces a 1
in a function and then taking the OR of all those terms.
 For example: - function of 3 variables.
26
X Y Z Function 𝒇𝟏 Function 𝒇𝟐
0 0 0 0 0
0 0 1 1 0
0 1 0 0 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
𝑓1 = 𝑋′
𝑌′
𝑍 + 𝑋𝑌′
𝑍′
+ 𝑋𝑌𝑍 = 𝑚1 + 𝑚4 + 𝑚7 = 𝑚(1, 4, 7)
Similarly
𝑓2 = 𝑋′𝑌𝑍 + 𝑋𝑌′𝑍 + 𝑋𝑌𝑍′ + 𝑋𝑌𝑍 = 𝑚3 + 𝑚5 + 𝑚6 + 𝑚7 = 𝑚(3, 5, 6, 7)
This shows a Boolean function can be expressed as a sum of minterms.
 Now consider the complement of the Boolean function
𝑓1
′
= 𝑋′𝑌′𝑍′ + 𝑋′𝑌𝑍′ + 𝑋′𝑌𝑍 + 𝑋𝑌′𝑍 + 𝑋𝑌𝑍′
 If we take the complement of 𝑓1
′
, we obtain 𝑓1
𝑓1 = 𝑋 + 𝑌 + 𝑍 𝑋 + 𝑌′ + 𝑍 𝑋 + 𝑌′ + 𝑍′ 𝑋′ + 𝑌 + 𝑍′ 𝑋′ + 𝑌′ + 𝑍
𝑓1 = 𝑀0𝑀2𝑀3𝑀5𝑀6
𝑓1= 𝑀(0, 2, 3, 5, 6)
 It shows that any Boolean function can be expressed as a product of
maxterms.
 Boolean functions expressed as a sum of minterms or product of
maxterms are said to be in canonical form.
 Similarly, it is possible to read for 𝑓2 from the truth table.
Exercise: Express𝑓2interms of minterm and maxterm?
27
 It is another way of expressing a Boolean function. These are two
types of standards.
1. Sum of product (SOP)
2. Product of sum (POS)
 Sum of product is a Boolean function (expression) containing AND
terms, called product terms of one or more literals each. The sum
denotes the ORing of these terms.
Example: 𝐹1 = 𝑌′
+ 𝑋𝑌 + 𝑋′𝑌𝑍′
 A product of sum is a Boolean expression containing OR terms,
called sum terms. Each term may have any number of literals. The
product denotes the ANDing of these terms.
Example: 𝐹1 = 𝑋 𝑌′ + 𝑍 (𝑋′ + 𝑌 + 𝑍′ + 𝑊)
28
Standard forms
Standard SOP and POS
 SOP form can be converted to standard SOP by ANDing the terms in
the expression with terms formed by ORing the variable and it’s
complement which are not present in that term.
 Similarly, POS form can be converted to standard POS by ORing the
terms in the expression with terms formed by ANDing the variable
and it’s complement which are not present in that term.
Example:
i. convert 𝑌(𝑥1, 𝑥2, 𝑥3) = 𝑥1𝑥2 + 𝑥1𝑥3 + 𝑥2𝑥3 into standard SOP
ii. convert 𝑌 𝑥1, 𝑥2, 𝑥3 = (𝑥1+𝑥2) 𝑥1 + 𝑥3 (𝑥2 + 𝑥3)into standard POS
29
30
AND Gate
31
OR Gate
32
NOT Gate
33
NAND Gate
34
NOR Gate

Weitere ähnliche Inhalte

Ähnlich wie Chapter 2.pdf

1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdfsiliconvalley6203
 
Subject seminar boolean algebra by :-shivanshu
Subject seminar  boolean algebra  by :-shivanshuSubject seminar  boolean algebra  by :-shivanshu
Subject seminar boolean algebra by :-shivanshuShivanshu Dixit
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.mshoaib15
 
Boolean Logic.pptx
Boolean Logic.pptxBoolean Logic.pptx
Boolean Logic.pptxakshat205573
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdfssusere02873
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraMahiboobAliMulla
 
Rthch2nts 160709112024
Rthch2nts 160709112024Rthch2nts 160709112024
Rthch2nts 160709112024marangburu42
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesEr. Nawaraj Bhandari
 
Logic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andLogic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andMuruganandhanD
 
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
 
Digital notes
Digital notesDigital notes
Digital notesstivengo2
 

Ähnlich wie Chapter 2.pdf (20)

1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
 
Subject seminar boolean algebra by :-shivanshu
Subject seminar  boolean algebra  by :-shivanshuSubject seminar  boolean algebra  by :-shivanshu
Subject seminar boolean algebra by :-shivanshu
 
Chapter_11.pdf
Chapter_11.pdfChapter_11.pdf
Chapter_11.pdf
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
 
B sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) baB sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) ba
 
DLD Chapter-2.pdf
DLD Chapter-2.pdfDLD Chapter-2.pdf
DLD Chapter-2.pdf
 
Boolean Logic.pptx
Boolean Logic.pptxBoolean Logic.pptx
Boolean Logic.pptx
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdf
 
Boolean algebra1
Boolean algebra1Boolean algebra1
Boolean algebra1
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebra
 
Rthch2nts 160709112024
Rthch2nts 160709112024Rthch2nts 160709112024
Rthch2nts 160709112024
 
Boolean algebra and logic gates
Boolean algebra and logic gatesBoolean algebra and logic gates
Boolean algebra and logic gates
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic Gates
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
 
Logic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andLogic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers and
 
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
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
2dig circ
2dig circ2dig circ
2dig circ
 
Digital notes
Digital notesDigital notes
Digital notes
 
Digital 1 8
Digital 1 8Digital 1 8
Digital 1 8
 

Mehr von ssuserf7cd2b

English Communication (AEC-01).pdf
English Communication (AEC-01).pdfEnglish Communication (AEC-01).pdf
English Communication (AEC-01).pdfssuserf7cd2b
 
The Oxford Dictionary of English Grammar ( PDFDrive ).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ).pdfThe Oxford Dictionary of English Grammar ( PDFDrive ).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ).pdfssuserf7cd2b
 
Attachment_0 (2).pdf
Attachment_0 (2).pdfAttachment_0 (2).pdf
Attachment_0 (2).pdfssuserf7cd2b
 
Attachment_0 (1).pdf
Attachment_0 (1).pdfAttachment_0 (1).pdf
Attachment_0 (1).pdfssuserf7cd2b
 
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdfThe Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdfssuserf7cd2b
 
AdvancedSkillsforComm.-BookI.doc
AdvancedSkillsforComm.-BookI.docAdvancedSkillsforComm.-BookI.doc
AdvancedSkillsforComm.-BookI.docssuserf7cd2b
 
VA118-15-N-0042-001.docx
VA118-15-N-0042-001.docxVA118-15-N-0042-001.docx
VA118-15-N-0042-001.docxssuserf7cd2b
 
Noor-Book.com دليلك الكامل لمهارات الإتصال بالانجليزية.pdf
Noor-Book.com  دليلك الكامل لمهارات الإتصال بالانجليزية.pdfNoor-Book.com  دليلك الكامل لمهارات الإتصال بالانجليزية.pdf
Noor-Book.com دليلك الكامل لمهارات الإتصال بالانجليزية.pdfssuserf7cd2b
 
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdfssuserf7cd2b
 
StandardIPinSpace.pdf
StandardIPinSpace.pdfStandardIPinSpace.pdf
StandardIPinSpace.pdfssuserf7cd2b
 
04 - Networking Technologies.ppt
04 - Networking Technologies.ppt04 - Networking Technologies.ppt
04 - Networking Technologies.pptssuserf7cd2b
 
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...ssuserf7cd2b
 
Protocol_specification_testing_and_verif.pdf
Protocol_specification_testing_and_verif.pdfProtocol_specification_testing_and_verif.pdf
Protocol_specification_testing_and_verif.pdfssuserf7cd2b
 
ITN_Module_17.pptx
ITN_Module_17.pptxITN_Module_17.pptx
ITN_Module_17.pptxssuserf7cd2b
 
03 - Cabling Standards, Media, and Connectors.ppt
03 - Cabling Standards, Media, and Connectors.ppt03 - Cabling Standards, Media, and Connectors.ppt
03 - Cabling Standards, Media, and Connectors.pptssuserf7cd2b
 
02 - LANs, WANs, MANs.ppt
02 - LANs, WANs, MANs.ppt02 - LANs, WANs, MANs.ppt
02 - LANs, WANs, MANs.pptssuserf7cd2b
 

Mehr von ssuserf7cd2b (20)

English Communication (AEC-01).pdf
English Communication (AEC-01).pdfEnglish Communication (AEC-01).pdf
English Communication (AEC-01).pdf
 
The Oxford Dictionary of English Grammar ( PDFDrive ).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ).pdfThe Oxford Dictionary of English Grammar ( PDFDrive ).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ).pdf
 
Attachment_0 (2).pdf
Attachment_0 (2).pdfAttachment_0 (2).pdf
Attachment_0 (2).pdf
 
Attachment_0.pdf
Attachment_0.pdfAttachment_0.pdf
Attachment_0.pdf
 
Attachment_0 (1).pdf
Attachment_0 (1).pdfAttachment_0 (1).pdf
Attachment_0 (1).pdf
 
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdfThe Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdf
 
AdvancedSkillsforComm.-BookI.doc
AdvancedSkillsforComm.-BookI.docAdvancedSkillsforComm.-BookI.doc
AdvancedSkillsforComm.-BookI.doc
 
VA118-15-N-0042-001.docx
VA118-15-N-0042-001.docxVA118-15-N-0042-001.docx
VA118-15-N-0042-001.docx
 
Noor-Book.com دليلك الكامل لمهارات الإتصال بالانجليزية.pdf
Noor-Book.com  دليلك الكامل لمهارات الإتصال بالانجليزية.pdfNoor-Book.com  دليلك الكامل لمهارات الإتصال بالانجليزية.pdf
Noor-Book.com دليلك الكامل لمهارات الإتصال بالانجليزية.pdf
 
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf
 
Applications.docx
Applications.docxApplications.docx
Applications.docx
 
Chapter-04.pdf
Chapter-04.pdfChapter-04.pdf
Chapter-04.pdf
 
StandardIPinSpace.pdf
StandardIPinSpace.pdfStandardIPinSpace.pdf
StandardIPinSpace.pdf
 
04 - Networking Technologies.ppt
04 - Networking Technologies.ppt04 - Networking Technologies.ppt
04 - Networking Technologies.ppt
 
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
Protocol_specification_testing_and_verif.pdf
Protocol_specification_testing_and_verif.pdfProtocol_specification_testing_and_verif.pdf
Protocol_specification_testing_and_verif.pdf
 
ITN_Module_17.pptx
ITN_Module_17.pptxITN_Module_17.pptx
ITN_Module_17.pptx
 
03 - Cabling Standards, Media, and Connectors.ppt
03 - Cabling Standards, Media, and Connectors.ppt03 - Cabling Standards, Media, and Connectors.ppt
03 - Cabling Standards, Media, and Connectors.ppt
 
02 - LANs, WANs, MANs.ppt
02 - LANs, WANs, MANs.ppt02 - LANs, WANs, MANs.ppt
02 - LANs, WANs, MANs.ppt
 

Kürzlich hochgeladen

专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degreeyuu sss
 
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一diploma 1
 
306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social Media306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social MediaD SSS
 
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10uasjlagroup
 
Design and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industryDesign and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industryrioverosanniejoy
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书zdzoqco
 
Passbook project document_april_21__.pdf
Passbook project document_april_21__.pdfPassbook project document_april_21__.pdf
Passbook project document_april_21__.pdfvaibhavkanaujia
 
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一Fi L
 
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一z xss
 
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一D SSS
 
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024CristobalHeraud
 
Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxmapanig881
 
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCRdollysharma2066
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIyuj
 
group_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdfgroup_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdfneelspinoy
 
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...katerynaivanenko1
 
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 

Kürzlich hochgeladen (20)

专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
 
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一
 
306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social Media306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social Media
 
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
 
Design and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industryDesign and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industry
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
 
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
 
Passbook project document_april_21__.pdf
Passbook project document_april_21__.pdfPassbook project document_april_21__.pdf
Passbook project document_april_21__.pdf
 
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一
 
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
 
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一
 
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
 
Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptx
 
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AI
 
Call Girls in Pratap Nagar, 9953056974 Escort Service
Call Girls in Pratap Nagar,  9953056974 Escort ServiceCall Girls in Pratap Nagar,  9953056974 Escort Service
Call Girls in Pratap Nagar, 9953056974 Escort Service
 
group_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdfgroup_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdf
 
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
 
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
 

Chapter 2.pdf

  • 1. 1 Boolean Algebra & Logic Gates Chapter 2
  • 2. Chapter Outline 2  Introduction  Digital Logic Gates  Other Logic Operators  Logic levels and Digital signals  Positive and Negative Logic  Introduction to Boolean algebra  Postulates and Theorems of Boolean Algebra  Venn Diagram  Boolean Functions  Simplification of Boolean Expressions  Canonical and Standard forms of logic functions  Variables, literals and terms in Boolean expressions  Dual of a Boolean expressions
  • 3. Chapter 2: Boolean Algebra and Logic Gates Introduction  Boolean algebra is a mathematical model (system) that provides the basis for logic operations. George Boole, an English mathematician, introduced this concept in the study of mathematical theory of logic.  Digital circuits contain hard ware element called “gates” that perform logic operations. Logic Gates Basic logic gates Boolean algebra uses three basic operations namely AND, OR, and NOT. OR Gate: - the output of this gate will be "high" (1) if any of the inputs are "high" (1). The output goes "low"(0) if and only if all inputs are "low" (0). A B Y 0 0 0 0 1 1 1 0 1 1 1 1 3
  • 4. AND Gate: - have one or more input and one output. The output of this gate will be "high" (1) if and only if all inputs are "high" (1). If any input(s) are "low" (0), the output will be "low" (0). A B Y 0 0 0 0 1 0 1 0 0 1 1 1 4 Example: In figure below, what would the output pulse train look like?
  • 5. NOT (inverter) Gate : - a urinary operator that complement’s a variable and it is written as . The output of NOT gate is "high" if and only if the input is "low" X Y 0 1 1 0 5 Example: In figure below, what would the output pulse train look like‘?
  • 6. Other Logic Operations  The four other important logic operations are NOR, NAND, Exclusive-OR (EX-OR), and Exclusive-NOR (EX-NOR). NOR Gate (OR +NOT): - the output goes "low" (0) if any of the inputs are made "high" (1). The output is "high" (1) only when all inputs are "low" (0). A B OR NOR 0 0 0 1 0 1 1 0 1 0 1 0 1 1 1 0 6
  • 7. NAND Gate: - it behaves the same as an AND gate with a NOT (inverter) gate connected to the output terminal. A B AND NAND 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 7
  • 8. Exclusive-OR (EX-OR) Gate: - the output is a "high" (1) logic level if the inputs are at different logic levels, either 0 and 1 or 1 and 0. The output is a "low" (0) logic level if the inputs are at the same logic levels. The Exclusive-OR (sometimes called XOR) gate. 𝑌 = 𝐴 ∙ 𝐵 + 𝐴 ∙ 𝐵 = 𝐴 ⊕ 𝐵 A B Y 0 0 0 0 1 1 1 0 1 1 1 0 8
  • 9. Exclusive-NOR (EX-NOR) Gate:-means NOT of EX-OR, i.e. the logic gate that we get by complementing the output of an EX-OR gate. A B EX-0R EX-NOR 0 0 0 1 0 1 1 0 1 0 1 0 1 1 0 1 9
  • 10. Universal Gates  OR, AND, and NOT gates are the three basic logic gates as they together can be used to construct the logic circuit for any given Boolean expression.  NOR and NAND gates have the property that they individually can be used to hardware-implement a logic circuit corresponding to any given Boolean expression.  That is, it is possible to use either only NAND gates or only NOR gates to implement any Boolean expression. This is so because a combination of NAND gates or a combination of NOR gates can be used to perform functions of any of the basic logic gates. It is for this reason that NAND and NOR gates are universal gates. 10
  • 11. 11 Figure Implementation of basic logic gates using only NAND gates. Universal Gates
  • 12. 12 Figure Implementation of basic logic gates using only NOR gates. Universal Gates
  • 13. Logic Levels and Digital Signals 13
  • 14. 14
  • 15. Positive and Negative Logic  The binary variables, as we know, can have either of the two states, i.e. the logic ‘0’ state or the logic ‘1’ state.  These logic states in digital systems such as computers, for instance, are represented by two different voltage levels or two different current levels.  If the more positive of the two voltage or current levels represents a logic ‘1’ and the less positive of the two levels represents a logic ‘0’, then the logic system is referred to as a positive logic system.  If the more positive of the two voltage or current levels represents a logic ‘0’ and the less positive of the two levels represents a logic ‘1’, then the logic system is referred to as a negative logic system. 15
  • 16. Boolean Algebra  Boolean algebra is defined as an algebra manipulation based on binary number system.  Like any algebra, Boolean algebra is based on a set of rules that derived from a small number of basic assumptions called Axioms. Postulates and theorems of Boolean algebra Assume that the following axioms are true. 1a. 0∙0 = 0 3a. 1 ∙ 1 = 1 1b. 0 + 0 = 0 3b. 1 + 1 = 1 2a. 0 ∙ 1 = 1 ∙ 0 = 0 4a. 𝐼𝑓 𝑥 = 0, 𝑡ℎ𝑒𝑛 𝑥 = 1 2b. 0 + 1 = 1 + 0 = 1 4b. 𝐼𝑓 𝑥 = 1, 𝑡ℎ𝑒𝑛 𝑥 = 0 16
  • 17. Single variable theorem From the axioms we can define some rules which are dealing with a single variable. These rules are often called theorems. If 𝑥 is a variable in B, then the following theorems hold true. 5a. 𝑥 ∙ 0 = 0 7a. 𝑥 ∙ 𝑥 = 𝑥 9. 𝑥 = 𝑥 5b. 𝑥 + 0 = 𝑥 7b. 𝑥 + 𝑥 = 𝑥 6a. 𝑥 ∙ 1 = 𝑥 8a. 𝑥 ∙ 𝑥 = 0 6b. 𝑥 + 1 = 1 8b.x + 𝑥 = 1 Note that it is easy to prove the validity of these theorems by substituting the possible values of 𝑥. i.e. 0 or 1. 17
  • 18. Two and three variables properties Commutative Associative Distributive Simplification DE Morgan’s law N: B: - theorems from 10a to 15b involve more than one variable and can be proved by making truth table 18
  • 19. X Y Z Y∙Z X+(Y∙Z) X+Y X+Z (X+Y)∙(X+Z) 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 1 0 0 0 1 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 0 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 For example, 12. 𝑏. 𝑋 + 𝑌 ∙ 𝑍 = (𝑋 + 𝑌) ∙ (𝑋 + 𝑍) 19
  • 20. Variables, Literals and Terms in Boolean Expression  Variablesare the different symbols in a Boolean expression. The complement of a variable is not considered as a separate variable.  Each occurrence of a variable or its complement is called a literal. For two variables 𝑥 𝑎𝑛𝑑 𝑦, the literals are 𝑥, 𝑦, 𝑥 𝑎𝑛𝑑 𝑦.  Example 1. 𝐴 + 𝐴 ∙ 𝐵 + 𝐴 ∙ 𝐶 + 𝐴 ∙ 𝐵 ∙ 𝐶 2. 𝑃 + 𝑄 ∙ 𝑅 + 𝑆 ∙ 𝑃 + 𝑄 + 𝑅  In expressions (1) and (2) there are eight and seven literals respectively.  A Boolean function may contain several terms for example, , expressions(3) consists Six terms , which are inputs to OR gate. Each term may include a single or multiple variables which may or may not be complemented.  Example: 3. 𝐹 = 𝐴 + 𝐴 ∙ 𝐵′ + 𝐴 ∙ 𝐵′ ∙ 𝐶 + 𝐴′ ∙ 𝐵 ∙ 𝐶′ + 𝐴 ∙ 𝐵 ∙ 𝐶 + 𝐴′ ∙ 𝐵′ ∙ 𝐶′ 20
  • 21. 21 For example, 𝑓 = 𝑦 + 𝑥𝑦 = 𝑦 ∙ 1 ∙ 𝑥 = 𝑦 Then the dual f, 𝑓𝐷 𝑓𝐷 = 𝑦 ∙ 𝑥 + 𝑦 = 𝑦 ∙ 𝑥 + 𝑦 + 𝑦 = 𝑦 ∙ 𝑥 + 𝑦 = 𝑦 ∙ 𝑥 ∙ 1 = 𝑦 Hence, 𝑓 = 𝑓𝐷 Duality principle of Boolean Algebra Duality principle states that a Boolean function remains valid if we take the dual of the expressions on both sides of the equal sign. Dual can be found by interchanging the (+) operator with (∙) operator and vice versa and by replacing all 0’s with 1’s and vice versa.
  • 22. Venn Diagram  A helpful illustration that may be used to realize the relation among the variables of a Boolean expression is called Venn diagram.  This diagram consist overlapping circles inside a rectangle as shown in the figure below. Venn diagram for two variables  Each circle labeled by a variable. We designate all points inside a circle as belonging to the named variable and all points outside a circle are not belonging to the variable. For example, take the circle labeled x. if we are inside the circle, we say that x = 1; when outside, we say x = 0. Now, with two overlapping circles, there are four distinct areas inside the rectangle: these are X'Y' = the area not belonging to either X or Y. X'Y =the area inside a circle Y but outside X. XY' = the area inside a circle X but outside Y. XY = the area inside both circles. 22
  • 23. Simplification using Boolean Algebra Example: - Simplify the following expression using Boolean algebra 23 1. 𝐴 ∙ 𝐵 + 𝐴 ∙ 𝐵 + 𝐶 + 𝐵 ∙ (𝐵 + 𝐶) 2. (𝐴 ∙ 𝐵 + 𝐴 ∙ 𝐶)′ + 𝐴′ ∙ 𝐵′ ∙ 𝐶 3. 𝐴 ∙ 𝐵′ + 𝐶 + 𝐵 ∙ 𝐷 + 𝐴′ ∙ 𝐵′ ∙ 𝐶 4. 𝐴 ∙ 𝐵 + 𝐶 ∙ 𝐷) ∙ (𝐴′ + 𝐵′) ∙ (𝐶′ + 𝐷′
  • 24. Canonical and Standard forms for logic functions 24 Canonical form  Consider two variables X and Y combined with an AND operation. There are four possible combinations: XY, X′Y, XY′, and X′Y′. This is called minterm or a standard product.  The variable is primed if the corresponding bit of binary number is 0.  In a similar fashion, n variables forming an OR term, with each variable primed or unprimed provide 2nd possible combinations called maxtermsor a standard sums.  The variable is unprimed if the corresponding bit is 0 and primed if it is 1.
  • 25. Minterms and Maxterms for 3 binary variables 25 Variables Minterms Maxterms X Y Z Terms Designation Terms Designation 0 0 0 X’Y’Z’ 𝑚0 X+Y+Z 𝑀0 0 0 1 X’Y’Z 𝑚1 X+Y+Z’ 𝑀1 0 1 0 X’YZ’ 𝑚2 X+Y’+Z 𝑀2 0 1 1 X’YZ 𝑚3 X+Y’+Z’ 𝑀3 1 0 0 XY’Z’ 𝑚4 X’+Y+Z 𝑀4 1 0 1 XY’Z 𝑚5 X’+Y+Z’ 𝑀5 1 1 0 XYZ’ 𝑚6 X’+Y’+Z 𝑀6 1 1 1 XYZ 𝑚7 X’+Y’+Z’ 𝑀7 N: B each maxterm is the complement of its corresponding minterm and vice versa.
  • 26.  A Boolean function may be expressed algebraically from a given truth table. Form minterm by forming a minterm for each combination of variables that produces a 1 in a function and then taking the OR of all those terms.  For example: - function of 3 variables. 26 X Y Z Function 𝒇𝟏 Function 𝒇𝟐 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 𝑓1 = 𝑋′ 𝑌′ 𝑍 + 𝑋𝑌′ 𝑍′ + 𝑋𝑌𝑍 = 𝑚1 + 𝑚4 + 𝑚7 = 𝑚(1, 4, 7) Similarly 𝑓2 = 𝑋′𝑌𝑍 + 𝑋𝑌′𝑍 + 𝑋𝑌𝑍′ + 𝑋𝑌𝑍 = 𝑚3 + 𝑚5 + 𝑚6 + 𝑚7 = 𝑚(3, 5, 6, 7) This shows a Boolean function can be expressed as a sum of minterms.
  • 27.  Now consider the complement of the Boolean function 𝑓1 ′ = 𝑋′𝑌′𝑍′ + 𝑋′𝑌𝑍′ + 𝑋′𝑌𝑍 + 𝑋𝑌′𝑍 + 𝑋𝑌𝑍′  If we take the complement of 𝑓1 ′ , we obtain 𝑓1 𝑓1 = 𝑋 + 𝑌 + 𝑍 𝑋 + 𝑌′ + 𝑍 𝑋 + 𝑌′ + 𝑍′ 𝑋′ + 𝑌 + 𝑍′ 𝑋′ + 𝑌′ + 𝑍 𝑓1 = 𝑀0𝑀2𝑀3𝑀5𝑀6 𝑓1= 𝑀(0, 2, 3, 5, 6)  It shows that any Boolean function can be expressed as a product of maxterms.  Boolean functions expressed as a sum of minterms or product of maxterms are said to be in canonical form.  Similarly, it is possible to read for 𝑓2 from the truth table. Exercise: Express𝑓2interms of minterm and maxterm? 27
  • 28.  It is another way of expressing a Boolean function. These are two types of standards. 1. Sum of product (SOP) 2. Product of sum (POS)  Sum of product is a Boolean function (expression) containing AND terms, called product terms of one or more literals each. The sum denotes the ORing of these terms. Example: 𝐹1 = 𝑌′ + 𝑋𝑌 + 𝑋′𝑌𝑍′  A product of sum is a Boolean expression containing OR terms, called sum terms. Each term may have any number of literals. The product denotes the ANDing of these terms. Example: 𝐹1 = 𝑋 𝑌′ + 𝑍 (𝑋′ + 𝑌 + 𝑍′ + 𝑊) 28 Standard forms
  • 29. Standard SOP and POS  SOP form can be converted to standard SOP by ANDing the terms in the expression with terms formed by ORing the variable and it’s complement which are not present in that term.  Similarly, POS form can be converted to standard POS by ORing the terms in the expression with terms formed by ANDing the variable and it’s complement which are not present in that term. Example: i. convert 𝑌(𝑥1, 𝑥2, 𝑥3) = 𝑥1𝑥2 + 𝑥1𝑥3 + 𝑥2𝑥3 into standard SOP ii. convert 𝑌 𝑥1, 𝑥2, 𝑥3 = (𝑥1+𝑥2) 𝑥1 + 𝑥3 (𝑥2 + 𝑥3)into standard POS 29