Basic Gates and Boolean Algebra
Basic Gates and Boolean Algebra
OR operator → A + B = B + A
AND operator → A . B = B . A
Associative Law
It states that the AND operation are done on two or more than two
variables.
For example:
Distributive Law
It states that the multiplication of two variables and adding the result with a
variable will result in the same value as multiplication of addition of the
variable
with individual variables. For example:
Theorems
De Morgan's Theorem
Duality Principle:
To find the dual of any expression:
- change the operator
- 0 > 1, 1>0
Eg: a+a’= 1 dual : a.a’=0
• (x+y)(x’+z)(y+z)
= (x+y)(x’+z)(y+z+x.x’) [x.x’ = 0]
= (x+y)(x’+z)(y+z+x) (y+z+x’) [distributive property]
= (x+y)(x’+z)(x+y+z) (x’+y+z)
Let; (x+y)=A and (x’+z)=B
= A.B.(A+z).(B+y)
= A.(A+z).B.(B+y) = A.A+A.z.BB+By = A+A.z.B+By = A(1+z).B(1+y)
= A.B
= (x+y).(x’+z)
Find the complement of F = x+y’z.
Also prove F.F’= 0 and F+F’= 1.
Implement F = xy+x’y’+yz’
• using AND,OR and NOT gates
• using NOT and OR only
• using NOT and AND only
Q= A’B’+A’C+B’C’
Q= A’C+B’C’
Redundant Theorem:
1. 3 variables
2. Each variable repeated twice
3. One variable must be complemented
F = AB+BC’+AC = BC’+AC
F =(A+B).(A’+C).(B+C) = A+B).(A’+C)
Find the complement of F = x+y’z.
Also prove F.F’= 0 and F+F’= 1.
F’ = (x+y’z)’ = x’.(y’.z)’ = x’.(y+z’) = x’y+x’z’
To prove: F.F’=0
LHS. (X+y’z). (x’y+x’z’ )
To prove: F+F’=1
LHS. X+y’z+x’y+x’z’
= x+x’y+y’z+x’z’
= X+y+y’z+x’z’
= x+x’z’+y+y’z
= A+ 1
=1
F+F’ = [(F+F’)’]’ = [(F’.F)]’ = [0]’ = 1
Canonical and Standard Forms
Boolean functions expressed as a sum of minterms or
product of maxterms are said to be in canonical.
Minterms and Maxterms
Sum-of-Minterms and Product-of- Maxterms
Product and Sum terms
Sum-of-Products (SOP) and Product-of-Sums (POS)
No of minterms = no of maxterms = 2n
Definitions
Literal: A variable or its complement
Product term: literals connected by •
Sum term: literals connected by +
Minterm: a product term in which all the variables
appear exactly once, either complemented or
uncomplemented
Maxterm: a sum term in which all the variables
appear exactly once, either complemented or
uncomplemented
Minterm
Represents exactly one combination in the truth
table.
Denoted by mj, where j is the decimal equivalent of
the minterm’s corresponding binary combination
(bj).
A variable in mj is complemented if its value in bj is
0, otherwise is uncomplemented.
Example: Assume 3 variables (A,B,C), and j=3.
Then, bj = 011 and its corresponding minterm is
denoted by mj = A’BC
Maxterm
Represents exactly one combination in the truth
table.
Denoted by Mj, where j is the decimal equivalent of
the maxterm’s corresponding binary combination
(bj).
A variable in Mj is complemented if its value in bj is
1, otherwise is uncomplemented.
Example: Assume 3 variables (A,B,C), and j=3.
Then, bj = 011 and its corresponding maxterm is
denoted by Mj = A+B’+C’
Truth Table notation for Minterms and
Maxterms
Minterms and x y z Minterm Maxterm
Maxterms are easy to
0 0 0 x’y’z’ = m0 x+y+z = M0
denote using a truth
table. 0 0 1 x’y’z = m1 x+y+z’ = M1
Example: 0 1 0 x’yz’ = m2 x+y’+z = M2
Assume 3 variables x,y,z 0 1 1 x’yz = m3 x+y’+z’= M3
(order is fixed)
1 0 0 xy’z’ = m4 x’+y+z = M4