SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Downloaden Sie, um offline zu lesen
1. DIGITAL LOGIC GATES
A logic gate is the basic building block of digital circuits. A digital logic gate is an
electronic device that makes logical decision based on the different combination of inputs.
There are three basic logic gates, namely the OR gate,the AND gate and the NOT gate.
Other logic gates that are derived from these basic gates are the NAND gate, the NOR gate,
the EXCLUSIVE-OR (XOR) gate and the EXCLUSIVE-NOR (XNOR) gate.
AND gate:
The AND gate gives a low output (0) if any one of its input is low. A dot (.) is used to
show the AND operation.
OR gate:
The OR gate gives a high output (1) if any one of its input is high. A plus (+) is used to
show the OR operation.
NOT gate:
The NOT gate produces an inverted (complement) version of the input at its output. It
is also known as an inverter.
1
NAND gate:
The NAND gate gives a high output (1) if any one of its inputs is low (0). The
NAND gate operation is inversion of AND gate operation.
NOR gate:
The NOR gate gives a low output (0) if any one of its input is high. The NOR gate
operation is inversion of OR gate operation.
XOR:
Exclusive-OR gate gives a high output (1), if the inputs are at different logic levels i.e
either (0 and 1) or (1 and 0) and its output is low (0) if the inputs are at the same logic levels.
An encircled plus sign (⊕) is used to show the XOR operation.
A⊕B =A’B + AB’
2
XNOR:
The Exclusive-NOR gate gives a high (1) output only if both of its inputs are same and
its output is low (0) if the inputs are at different logic levels, either (0 and 1) or (0 and 1). An
encircled dot sign (⊙) is used to show the XNOR operation.
A ⊙ B =AB + A’B’
2. BOOLEAN ALGEBRA
Boolean Algebra is an algebra that deals with binary variables and logic operations.
2.1. Rules in Boolean Algebra:
Following are the important rules used in Boolean algebra.
▪ Variable used can have only two values. Binary 1 for HIGH and Binary 0 for LOW.
▪ Logical AND operation of the variables is represented by a dot (.) sign between the
variables eg: (A.B.C) or (ABC).
▪ Logical OR operation of the variables is represented by a plus (+) sign between the
variables eg: (A+B+C).
▪ Logical NOT operation of a variable (eg) ‘x’ is represented by a bar ( 𝑥 ) or prime
(x').
2.2. Variables, Literals and constant in Boolean Functions:
Boolean function or Boolean Expression:
a. Boolean function consists of binary variables and logical operations (AND, OR,
NOT) and constants (0 and 1).
b. It has one of the two possible outputs either ‘0’ or ‘1’.
Eg: F(A,B,C) = AB+BC'+CA'
● Binary Variables or Variables:
The variables are designated by alphabets such as A, B, C, X, Y, Z and so on.
● Literals:
Each occurrence of a variable or its complement in the Boolean expression is called
as a literal.
Eg: F( X, Y ,Z) = XY+YZ'+X'Z
There are 6 literals in the above example.
● Constant :
Constant is a value that does not change.
Y = A + 1 or Y = A + 0 (here 0 and 1 are constants)
3
2.3. Duality principle:
Dual of the Boolean expression is obtained by interchanging all AND’s and OR’s and
all 0’s and 1’s. The Boolean expression remains valid.
Eg: A+A' = 1
After applying duality principle,
A.A' = 0
2.4. Theorems and postulates of Boolean algebra
The theorems and postulates of Boolean algebra can be used to simplify the
Boolean expression by reducing the number of literals.
Some of the important Boolean postulates (Basic Assumptions) are
1. Identity: x + 0 = x
x . 1= x
2. Distributive: x . (y+ z) = (x . y) + (x . z)
x + (y . z) = (x + y) . (x + z)
3. Commutative: (x . y) = (y . x)
x + y = y + x
4. Complement: x + x' = 1
x . x' = 0
Some of the important Boolean theorems are
Theorem 1: Idempotency: x + x = x
x . x = x
Theorem 2: Annulment: x + 1 = 1
x . 0 = 0
Theorem 3: Involution: (x')' = x
Theorem 4: Associative: (x . y) . z = x . (y . z)
(x + y) + z = x + (y + z)
Theorem 5: Absorption x + x . y = x
x . (x + y) = x
Theorem 6: De-Morgan theorem:
(𝐴 + 𝐵) = 𝐴 . 𝐵
(𝐴 . 𝐵) = 𝐴 + 𝐵
4
2.5. Boolean Functions
Boolean function can be represented in a truth table, which lists all binary combinations
of input variables (2n , where n is the number of variables) and their corresponding output
values. Consider the following Boolean function: F (A,B,C) = A+ B'C
Truth table: Implementation using logic circuit:
Inputs Output
A
B C F
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
Other examples of implementation of Boolean function using logic circuit:
F1 = AB + CD + E F2 = W'Z + WZ'(X+Y')
2.6. Minimization of Boolean Functions
using Boolean theorems
Examples:
1. x(x' + y)
x(x' + y) = xx' + xy
= 0 + xy
= xy
2. (x + y)(x + y')
(x + y)(x + y') = x + xy + xy' + yy'
= x(1 + y + y') [i.e., 1+x=1]
= x
3. (x + y)(x' + z)(y + z)
= (x+y)(z+x'y) [i.e., (x+y).(y+z) = y+(x.z)]
= xz+xx'y+yz+yx'y [i.e., x.x'=0 & y.y=y]
= xz+0+yz+x'y
= xz+ x'y+yz
5
Examples:
Minimization of Boolean function using demorgan’s theorem
1. (A + B + C) ' = A' .(B + C) ' by DeMorgan’s theorem
= A' . (B' . C') by DeMorgan’s theorem
= A'B'C'
2. (A. B .C) ' = A' + (B . C) ' by DeMorgan’s theorem
= A'+ (B'+C') by DeMorgan’s theorem
= A'+B' +C'
2.7. Complement ofa Boolean Function:
Examples:
1. Find complements using De-Morgans theorem: F1 = x'yz'+ x'y'z ; F2 = x(y'z'+ yz).
F1' = (x'yz' + x'y'z) ' = (x'yz')' . (x'y'z)'
= (x + y' + z) . (x + y + z')
F2' = [x(y'z' + yz)] ' = x' + (y'z' + yz) ' = x' + (y'z') ' (yz) '
= x' + (y + z)(y' + z')
= x' +y y'+ yz' + y'z +z z' [i.e., y . y'=0]
= x' + yz' + y'z
2. Find the complement of the functions F1 and F2 by applying duality principle and
complementing each literal.
F1 = x'yz' + x'y'z.
The duality of F1 = (x' + y + z')(x' + y' + z).
Complement each literal F1 = (x + y' + z)(x + y + z')
F1' = (x + y' + z)(x + y + z')
F2 = x(y'z' + yz)
The duality of F2 = x + (y'+ z')(y + z).
Complement each literal F2 = x'+ (y + z)(y' + z')
F2' = x'+ (y + z)(y' + z')
3. CANONICAL AND STANDARD FORMS
There are two ways to express a Boolean expression
1. Standard form
2. Canonical form
There are two types of standard forms. They are
● Sum of products (SOP)
● Products of sums (POS)
6
3.1. Sum of products:
A Sum of products (SOP) expressions will appear as two or more AND terms ORed
together.
3.2. Product of sums:
Product of Sums (POS) expressions will appear as two or more OR terms ANDed
together.
3.3. CANONICAL FORM:
Boolean functions expressed as a Sum of Minterms (or) Product of Maxterms are
said to be in canonical form.
All the terms in the given expression should be present in either minterm or maxterm
with each variable in either primed (complemented) or unprimed (True) form.
Example: F(A,B,C) = ABC+AB'C+A'BC'
In the above example, A,B,C are variables. All variables are present in each term.
3.3.1. MINTERM (Standard Products):
Minterm are called standard products because they are the logical ‘AND’ of a set of
variables.
The pr
oduct t
er
m cont
ains all ‘n’ var
iables of t
he funct
ion in
eit
her pr
im
ed (com
plem
ent
) or unpr
im
ed (nor
m
al) for
m
. Each
m
int
er
m is obt
ained by an AND oper
at
ion of t
he var
iables in t
heir
primed or unprimed form. It is denoted by a symbol (∑)
If the bit is 0, the variable is primed. If the bit is 1, the variable is unprimed.
7
Minterms for 3 variables is shown in the table:
For example:
Inputs Output
X Y Z F
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
F(X,Y,Z) = XYZ+X'YZ+XY'Z' = ∑ (7,3,4)
= ∑ (3,4,7)
8
3.3.2. MAXTERM (Standard Sums):
Maxterms are called standard sums because they are the logical ‘OR’ of a set of variables.
The sum term containing all n variables of the function in either primed (complemented)
or unprimed (Normal) form. Each maxterm is obtained by an OR operation of the variables in
their primed or unprimed form. It is denoted by a symbol (П).
If the bit is 1 the variable is primed. If the bit is 0 the variable is unprimed.
Maxterm for 3 variables as shown in below table:
For example:
Inputs Output
X Y Z F
0 0 0 1
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
F(X,Y,Z)= (X+Y'+Z).(X'+Y+Z) = П( 2, 4)
9
Problems:
1. Express the function F(X,Y,Z)= X'Y'Z'+X'Y'Z+XYZ' in sum of minterms
= 000+001+110
=m0+m1+m6
Answer =∑ (0,1,6)
2. Express the function F(A,B,C,D) =(A+B+C+D').(A'+B+C+D').(A'+B'+C'+D) in
product of maxterm
= (0+0+0+1).(1+0+0+1).(1+1+1+0)
=M1.M9.M14
Answer=П(1,9,14)
4. CONVERSIONS – SOP, POS & CANONICAL FORM
a) CONVERSION BETWEEN CANONICAL FORMS:
Problems:
Convert the following sum of minterms to the product of maxterm.
F(X,Y,Z) =∑(1,3,7)
Answer = П(0,2,4,5,6)
Convert the following product of maxterm to the sum of minterms form.
F(X,Y,Z) =П(2,5,7)
Answer= ∑(0,1,3,4,6)
b) SOP TO CANONICAL FORM:
Procedure:
Step 1: Check whether the given expression contains all the variables.
Step 2: If there is a missing of variables in any minterm then “AND” the
corresponding minterm with expression (x+x'), where x be the missing
variable.
Step 3: Expand the terms by applying distributive law and reorder the literals
in the product terms.
Step 4: If two minterms are identical, eliminate one of the minterms.
Problems:
1. Express the Boolean function F (A,B,C) = A + B'C as a sum of minterms
Step 1: B, C variables is missed in 1st term and A variable is missed in 2nd term
Step 2: Missing variables are ‘AND’ operation with the corresponding minterms
= A(B+B')(C + C') + B'C(A+A')
Step 3:Expand the expression
= ABC + ABC' + AB'C + AB'C' + A'B'C+ AB'C
Step 4:Eliminate one of the repeated terms
= ABC + ABC' + AB'C + AB'C' + A'B'C+ AB'C
= ABC + ABC' + AB'C + AB'C' + A'B'C [i.e., x+x=x]
= m1 + m4 + m5 + m6 + m7
Answer: F(A, B, C) = ∑(1, 4, 5, 6, 7)
10
2. Express the Boolean function F (X,Y,Z) = X'Y+YZ'+XZ' as a sum of
minterms
= X'Y(Z+Z')+YZ'(X+X')+XZ'(Y+Y') [by Step 2]
=X'YZ+X'YZ'+XYZ'+X'YZ'+XYZ'+XY'Z' [by Step 3]
= X'YZ+X'YZ'+XYZ' +XY'Z' [by Step 4]
=m3+m2+m6+m4
Answer: F(X,Y,Z)=∑(2,3,4,6)
c) POS TO CANONICAL FORM:
Procedure:
Step 1: Check whether the given expression contains all the variables.
Step 2: If there is missing of variables in any maxterm then “OR” the
corresponding maxterm with expression (x.x'), where x be the missing variable
Step 3: Expand the terms by applying distributive law and reorder the literals in
the sum terms.
Step 4: If two maxterms are identical, eliminate one of the maxterms.
Problems:
1. Express the Boolean function F (A,B,C) = (A+B') .( B+C').(A'+C) as a
product of maxterms
Step 1: C, variable is missed in 1st term and A, variable is missed in 2nd
term and B variable is missed in 3rd term.
Step 2: Missing variables are ‘OR’ operation with the corresponding
minterms
= (A+B' + (C.C')). (B+C' + (A.A')). ( A' +C +(B.B'))
Step 3: Expand the expression
= (A+B'+C). (A+B'+C'). (A+B+C').(A'+B+C').(A'+B+C).(A'+B'+C)
Answer: F(A, B, C) = П(1, 2, 3,4,5, 6)
2. Express the Boolean function F (X,Y,Z) = (X+Z') .( Y'+Z) as a product of
maxterms
=(X+Z'+(Y.Y')).(Y'+Z+(X.X')) [ by step 2]
=(X+Y+Z').(X+Y'+Z').(X+Y'+Z).(X'+Y'+Z) [ by step 3]
Answer: F(X,Y,Z) = П(1,2, 3, 6)
Limitations of Boolean algebra:
1. To reduce the Boolean expression it is necessary to have the knowledge of all the
Boolean laws, rules and theorems.
2. It lacks specific rules to predict each succeeding step in the minimization process.

Weitere ähnliche Inhalte

Was ist angesagt?

boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplificationUnsa Shakir
 
Bcd to excess 3 code converter
Bcd to excess 3 code converterBcd to excess 3 code converter
Bcd to excess 3 code converterUshaswini Chowdary
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic GatesKumar
 
8085 arithmetic instructions
8085 arithmetic instructions8085 arithmetic instructions
8085 arithmetic instructionsprashant1271
 
8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture pptParvesh Gautam
 
8085 Microprocessor Architecture
8085 Microprocessor Architecture8085 Microprocessor Architecture
8085 Microprocessor Architecturedeval patel
 
Sequential Logic Circuits
Sequential Logic CircuitsSequential Logic Circuits
Sequential Logic CircuitsDilum Bandara
 
boolean algebra exercises
boolean algebra exercisesboolean algebra exercises
boolean algebra exercisesi i
 
Registers
RegistersRegisters
RegistersGaditek
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...Bilal Amjad
 
Flag Registers (Assembly Language)
Flag Registers (Assembly Language)Flag Registers (Assembly Language)
Flag Registers (Assembly Language)Anwar Hasan Shuvo
 
Floating point representation
Floating point representationFloating point representation
Floating point representationmissstevenson01
 
Binary number ppt
Binary number pptBinary number ppt
Binary number pptAnkit Gupta
 

Was ist angesagt? (20)

boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplification
 
Bcd to excess 3 code converter
Bcd to excess 3 code converterBcd to excess 3 code converter
Bcd to excess 3 code converter
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 
MICROCONTROLLER 8051
MICROCONTROLLER 8051MICROCONTROLLER 8051
MICROCONTROLLER 8051
 
8085 arithmetic instructions
8085 arithmetic instructions8085 arithmetic instructions
8085 arithmetic instructions
 
8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture ppt
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
8085 Microprocessor Architecture
8085 Microprocessor Architecture8085 Microprocessor Architecture
8085 Microprocessor Architecture
 
ALU
ALUALU
ALU
 
Sequential Logic Circuits
Sequential Logic CircuitsSequential Logic Circuits
Sequential Logic Circuits
 
boolean algebra exercises
boolean algebra exercisesboolean algebra exercises
boolean algebra exercises
 
Memory interfacing
Memory interfacingMemory interfacing
Memory interfacing
 
Registers
RegistersRegisters
Registers
 
K map.
K map.K map.
K map.
 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...
 
Registers
RegistersRegisters
Registers
 
Flag Registers (Assembly Language)
Flag Registers (Assembly Language)Flag Registers (Assembly Language)
Flag Registers (Assembly Language)
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 
Binary number ppt
Binary number pptBinary number ppt
Binary number ppt
 

Ähnlich wie 18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems

1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdfsiliconvalley6203
 
102_2_digitalSystem_Chap_2_part_1.ppt
102_2_digitalSystem_Chap_2_part_1.ppt102_2_digitalSystem_Chap_2_part_1.ppt
102_2_digitalSystem_Chap_2_part_1.pptSATHYARAJECE
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.mshoaib15
 
Chapter2 (1).pptx
Chapter2 (1).pptxChapter2 (1).pptx
Chapter2 (1).pptxMitKumar2
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebraRobert Geofroy
 
Boolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdfBoolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdfSangitaBose2
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraMahiboobAliMulla
 
DigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdfDigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdfk vimal kumar
 

Ähnlich wie 18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems (20)

13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Chapter 2.pdf
Chapter 2.pdfChapter 2.pdf
Chapter 2.pdf
 
DLD Chapter-2.pdf
DLD Chapter-2.pdfDLD Chapter-2.pdf
DLD Chapter-2.pdf
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
102_2_digitalSystem_Chap_2_part_1.ppt
102_2_digitalSystem_Chap_2_part_1.ppt102_2_digitalSystem_Chap_2_part_1.ppt
102_2_digitalSystem_Chap_2_part_1.ppt
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
 
Chapter2 (1).pptx
Chapter2 (1).pptxChapter2 (1).pptx
Chapter2 (1).pptx
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
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
 
Math task 3
Math task 3Math task 3
Math task 3
 
Boolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdfBoolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdf
 
Bitwise
BitwiseBitwise
Bitwise
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebra
 
DigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdfDigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdf
 
2dig circ
2dig circ2dig circ
2dig circ
 

Mehr von arunachalamr16

Mehr von arunachalamr16 (20)

Pipeline r014
Pipeline   r014Pipeline   r014
Pipeline r014
 
Registers r011
Registers   r011Registers   r011
Registers r011
 
08 logic simplification
08 logic simplification08 logic simplification
08 logic simplification
 
Boolean algebra r009
Boolean algebra   r009Boolean algebra   r009
Boolean algebra r009
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010
 
Central processing unit and stack organization r013
Central processing unit and stack organization   r013Central processing unit and stack organization   r013
Central processing unit and stack organization r013
 
Combinational circuits r011
Combinational circuits   r011Combinational circuits   r011
Combinational circuits r011
 
Counters r012
Counters  r012Counters  r012
Counters r012
 
Flipflop r012
Flipflop   r012Flipflop   r012
Flipflop r012
 
Code conversion r006
Code conversion r006Code conversion r006
Code conversion r006
 
Binary coded decimal r004
Binary coded decimal   r004Binary coded decimal   r004
Binary coded decimal r004
 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001a
 
Universal gates r008
Universal gates   r008Universal gates   r008
Universal gates r008
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
Logic gates r007
Logic gates   r007Logic gates   r007
Logic gates r007
 
Error detection and correction codes r006
Error detection and correction codes   r006Error detection and correction codes   r006
Error detection and correction codes r006
 
Codes r005
Codes  r005Codes  r005
Codes r005
 
1sand2scomplement r004
1sand2scomplement  r0041sand2scomplement  r004
1sand2scomplement r004
 
1’s and 2’s complements
1’s and 2’s complements1’s and 2’s complements
1’s and 2’s complements
 
Pill camera
Pill cameraPill camera
Pill camera
 

Kürzlich hochgeladen

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 

Kürzlich hochgeladen (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 

18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems

  • 1. 1. DIGITAL LOGIC GATES A logic gate is the basic building block of digital circuits. A digital logic gate is an electronic device that makes logical decision based on the different combination of inputs. There are three basic logic gates, namely the OR gate,the AND gate and the NOT gate. Other logic gates that are derived from these basic gates are the NAND gate, the NOR gate, the EXCLUSIVE-OR (XOR) gate and the EXCLUSIVE-NOR (XNOR) gate. AND gate: The AND gate gives a low output (0) if any one of its input is low. A dot (.) is used to show the AND operation. OR gate: The OR gate gives a high output (1) if any one of its input is high. A plus (+) is used to show the OR operation. NOT gate: The NOT gate produces an inverted (complement) version of the input at its output. It is also known as an inverter.
  • 2. 1 NAND gate: The NAND gate gives a high output (1) if any one of its inputs is low (0). The NAND gate operation is inversion of AND gate operation. NOR gate: The NOR gate gives a low output (0) if any one of its input is high. The NOR gate operation is inversion of OR gate operation. XOR: Exclusive-OR gate gives a high output (1), if the inputs are at different logic levels i.e either (0 and 1) or (1 and 0) and its output is low (0) if the inputs are at the same logic levels. An encircled plus sign (⊕) is used to show the XOR operation. A⊕B =A’B + AB’
  • 3. 2 XNOR: The Exclusive-NOR gate gives a high (1) output only if both of its inputs are same and its output is low (0) if the inputs are at different logic levels, either (0 and 1) or (0 and 1). An encircled dot sign (⊙) is used to show the XNOR operation. A ⊙ B =AB + A’B’ 2. BOOLEAN ALGEBRA Boolean Algebra is an algebra that deals with binary variables and logic operations. 2.1. Rules in Boolean Algebra: Following are the important rules used in Boolean algebra. ▪ Variable used can have only two values. Binary 1 for HIGH and Binary 0 for LOW. ▪ Logical AND operation of the variables is represented by a dot (.) sign between the variables eg: (A.B.C) or (ABC). ▪ Logical OR operation of the variables is represented by a plus (+) sign between the variables eg: (A+B+C). ▪ Logical NOT operation of a variable (eg) ‘x’ is represented by a bar ( 𝑥 ) or prime (x'). 2.2. Variables, Literals and constant in Boolean Functions: Boolean function or Boolean Expression: a. Boolean function consists of binary variables and logical operations (AND, OR, NOT) and constants (0 and 1). b. It has one of the two possible outputs either ‘0’ or ‘1’. Eg: F(A,B,C) = AB+BC'+CA' ● Binary Variables or Variables: The variables are designated by alphabets such as A, B, C, X, Y, Z and so on. ● Literals: Each occurrence of a variable or its complement in the Boolean expression is called as a literal. Eg: F( X, Y ,Z) = XY+YZ'+X'Z There are 6 literals in the above example. ● Constant : Constant is a value that does not change. Y = A + 1 or Y = A + 0 (here 0 and 1 are constants)
  • 4. 3 2.3. Duality principle: Dual of the Boolean expression is obtained by interchanging all AND’s and OR’s and all 0’s and 1’s. The Boolean expression remains valid. Eg: A+A' = 1 After applying duality principle, A.A' = 0 2.4. Theorems and postulates of Boolean algebra The theorems and postulates of Boolean algebra can be used to simplify the Boolean expression by reducing the number of literals. Some of the important Boolean postulates (Basic Assumptions) are 1. Identity: x + 0 = x x . 1= x 2. Distributive: x . (y+ z) = (x . y) + (x . z) x + (y . z) = (x + y) . (x + z) 3. Commutative: (x . y) = (y . x) x + y = y + x 4. Complement: x + x' = 1 x . x' = 0 Some of the important Boolean theorems are Theorem 1: Idempotency: x + x = x x . x = x Theorem 2: Annulment: x + 1 = 1 x . 0 = 0 Theorem 3: Involution: (x')' = x Theorem 4: Associative: (x . y) . z = x . (y . z) (x + y) + z = x + (y + z) Theorem 5: Absorption x + x . y = x x . (x + y) = x Theorem 6: De-Morgan theorem: (𝐴 + 𝐵) = 𝐴 . 𝐵 (𝐴 . 𝐵) = 𝐴 + 𝐵
  • 5. 4 2.5. Boolean Functions Boolean function can be represented in a truth table, which lists all binary combinations of input variables (2n , where n is the number of variables) and their corresponding output values. Consider the following Boolean function: F (A,B,C) = A+ B'C Truth table: Implementation using logic circuit: Inputs Output A B C F 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 Other examples of implementation of Boolean function using logic circuit: F1 = AB + CD + E F2 = W'Z + WZ'(X+Y') 2.6. Minimization of Boolean Functions using Boolean theorems Examples: 1. x(x' + y) x(x' + y) = xx' + xy = 0 + xy = xy 2. (x + y)(x + y') (x + y)(x + y') = x + xy + xy' + yy' = x(1 + y + y') [i.e., 1+x=1] = x 3. (x + y)(x' + z)(y + z) = (x+y)(z+x'y) [i.e., (x+y).(y+z) = y+(x.z)] = xz+xx'y+yz+yx'y [i.e., x.x'=0 & y.y=y] = xz+0+yz+x'y = xz+ x'y+yz
  • 6. 5 Examples: Minimization of Boolean function using demorgan’s theorem 1. (A + B + C) ' = A' .(B + C) ' by DeMorgan’s theorem = A' . (B' . C') by DeMorgan’s theorem = A'B'C' 2. (A. B .C) ' = A' + (B . C) ' by DeMorgan’s theorem = A'+ (B'+C') by DeMorgan’s theorem = A'+B' +C' 2.7. Complement ofa Boolean Function: Examples: 1. Find complements using De-Morgans theorem: F1 = x'yz'+ x'y'z ; F2 = x(y'z'+ yz). F1' = (x'yz' + x'y'z) ' = (x'yz')' . (x'y'z)' = (x + y' + z) . (x + y + z') F2' = [x(y'z' + yz)] ' = x' + (y'z' + yz) ' = x' + (y'z') ' (yz) ' = x' + (y + z)(y' + z') = x' +y y'+ yz' + y'z +z z' [i.e., y . y'=0] = x' + yz' + y'z 2. Find the complement of the functions F1 and F2 by applying duality principle and complementing each literal. F1 = x'yz' + x'y'z. The duality of F1 = (x' + y + z')(x' + y' + z). Complement each literal F1 = (x + y' + z)(x + y + z') F1' = (x + y' + z)(x + y + z') F2 = x(y'z' + yz) The duality of F2 = x + (y'+ z')(y + z). Complement each literal F2 = x'+ (y + z)(y' + z') F2' = x'+ (y + z)(y' + z') 3. CANONICAL AND STANDARD FORMS There are two ways to express a Boolean expression 1. Standard form 2. Canonical form There are two types of standard forms. They are ● Sum of products (SOP) ● Products of sums (POS)
  • 7. 6 3.1. Sum of products: A Sum of products (SOP) expressions will appear as two or more AND terms ORed together. 3.2. Product of sums: Product of Sums (POS) expressions will appear as two or more OR terms ANDed together. 3.3. CANONICAL FORM: Boolean functions expressed as a Sum of Minterms (or) Product of Maxterms are said to be in canonical form. All the terms in the given expression should be present in either minterm or maxterm with each variable in either primed (complemented) or unprimed (True) form. Example: F(A,B,C) = ABC+AB'C+A'BC' In the above example, A,B,C are variables. All variables are present in each term. 3.3.1. MINTERM (Standard Products): Minterm are called standard products because they are the logical ‘AND’ of a set of variables. The pr oduct t er m cont ains all ‘n’ var iables of t he funct ion in eit her pr im ed (com plem ent ) or unpr im ed (nor m al) for m . Each m int er m is obt ained by an AND oper at ion of t he var iables in t heir primed or unprimed form. It is denoted by a symbol (∑) If the bit is 0, the variable is primed. If the bit is 1, the variable is unprimed.
  • 8. 7 Minterms for 3 variables is shown in the table: For example: Inputs Output X Y Z F 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 F(X,Y,Z) = XYZ+X'YZ+XY'Z' = ∑ (7,3,4) = ∑ (3,4,7)
  • 9. 8 3.3.2. MAXTERM (Standard Sums): Maxterms are called standard sums because they are the logical ‘OR’ of a set of variables. The sum term containing all n variables of the function in either primed (complemented) or unprimed (Normal) form. Each maxterm is obtained by an OR operation of the variables in their primed or unprimed form. It is denoted by a symbol (П). If the bit is 1 the variable is primed. If the bit is 0 the variable is unprimed. Maxterm for 3 variables as shown in below table: For example: Inputs Output X Y Z F 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 F(X,Y,Z)= (X+Y'+Z).(X'+Y+Z) = П( 2, 4)
  • 10. 9 Problems: 1. Express the function F(X,Y,Z)= X'Y'Z'+X'Y'Z+XYZ' in sum of minterms = 000+001+110 =m0+m1+m6 Answer =∑ (0,1,6) 2. Express the function F(A,B,C,D) =(A+B+C+D').(A'+B+C+D').(A'+B'+C'+D) in product of maxterm = (0+0+0+1).(1+0+0+1).(1+1+1+0) =M1.M9.M14 Answer=П(1,9,14) 4. CONVERSIONS – SOP, POS & CANONICAL FORM a) CONVERSION BETWEEN CANONICAL FORMS: Problems: Convert the following sum of minterms to the product of maxterm. F(X,Y,Z) =∑(1,3,7) Answer = П(0,2,4,5,6) Convert the following product of maxterm to the sum of minterms form. F(X,Y,Z) =П(2,5,7) Answer= ∑(0,1,3,4,6) b) SOP TO CANONICAL FORM: Procedure: Step 1: Check whether the given expression contains all the variables. Step 2: If there is a missing of variables in any minterm then “AND” the corresponding minterm with expression (x+x'), where x be the missing variable. Step 3: Expand the terms by applying distributive law and reorder the literals in the product terms. Step 4: If two minterms are identical, eliminate one of the minterms. Problems: 1. Express the Boolean function F (A,B,C) = A + B'C as a sum of minterms Step 1: B, C variables is missed in 1st term and A variable is missed in 2nd term Step 2: Missing variables are ‘AND’ operation with the corresponding minterms = A(B+B')(C + C') + B'C(A+A') Step 3:Expand the expression = ABC + ABC' + AB'C + AB'C' + A'B'C+ AB'C Step 4:Eliminate one of the repeated terms = ABC + ABC' + AB'C + AB'C' + A'B'C+ AB'C = ABC + ABC' + AB'C + AB'C' + A'B'C [i.e., x+x=x] = m1 + m4 + m5 + m6 + m7 Answer: F(A, B, C) = ∑(1, 4, 5, 6, 7)
  • 11. 10 2. Express the Boolean function F (X,Y,Z) = X'Y+YZ'+XZ' as a sum of minterms = X'Y(Z+Z')+YZ'(X+X')+XZ'(Y+Y') [by Step 2] =X'YZ+X'YZ'+XYZ'+X'YZ'+XYZ'+XY'Z' [by Step 3] = X'YZ+X'YZ'+XYZ' +XY'Z' [by Step 4] =m3+m2+m6+m4 Answer: F(X,Y,Z)=∑(2,3,4,6) c) POS TO CANONICAL FORM: Procedure: Step 1: Check whether the given expression contains all the variables. Step 2: If there is missing of variables in any maxterm then “OR” the corresponding maxterm with expression (x.x'), where x be the missing variable Step 3: Expand the terms by applying distributive law and reorder the literals in the sum terms. Step 4: If two maxterms are identical, eliminate one of the maxterms. Problems: 1. Express the Boolean function F (A,B,C) = (A+B') .( B+C').(A'+C) as a product of maxterms Step 1: C, variable is missed in 1st term and A, variable is missed in 2nd term and B variable is missed in 3rd term. Step 2: Missing variables are ‘OR’ operation with the corresponding minterms = (A+B' + (C.C')). (B+C' + (A.A')). ( A' +C +(B.B')) Step 3: Expand the expression = (A+B'+C). (A+B'+C'). (A+B+C').(A'+B+C').(A'+B+C).(A'+B'+C) Answer: F(A, B, C) = П(1, 2, 3,4,5, 6) 2. Express the Boolean function F (X,Y,Z) = (X+Z') .( Y'+Z) as a product of maxterms =(X+Z'+(Y.Y')).(Y'+Z+(X.X')) [ by step 2] =(X+Y+Z').(X+Y'+Z').(X+Y'+Z).(X'+Y'+Z) [ by step 3] Answer: F(X,Y,Z) = П(1,2, 3, 6) Limitations of Boolean algebra: 1. To reduce the Boolean expression it is necessary to have the knowledge of all the Boolean laws, rules and theorems. 2. It lacks specific rules to predict each succeeding step in the minimization process.