Chapter 3 - EEE1036 T3 (2230) 2022 - 2023
Chapter 3 - EEE1036 T3 (2230) 2022 - 2023
Trimester 3 2022/2023
Chapter 3
Truth table of
three different
circuit …..
Truth Tables
● Truth tables list all possible input combinations and the corresponding
output level.
● The number of input combination depends on the number of inputs.
● The no. of input combinations will be equal to 2N for an N-input truth
table. For instance, for a 5-input truth table, the input combinations will
be 25 = 32.
No. of output = 2N
Logic Operation : OR
● Note :
Output f is at logic 1 when at least one of the inputs (of the input
combination) is at logic 1.
The output f is 0 when both the inputs are 0.
OR Operation
AND operation
f = A∙ B symbol
● Note :
Output f is at logic 1 ONLY when all the inputs (of the input combination) is
at logic 1.
The output f is 0 for other input combinations.
AND Operation
a
f
b
c
Logic Operation : NOT
a
f
b
Logic Operation : NAND
a f
b
Logic Operation : XOR (Exclusive OR)
a
f
b
Logic Operation : XNOR (Exclusive NOR)
A B
A
0 0 1
0 1 0
f
B
1 0 0
1 1 1 XNOR gate
Truth table Circuit symbol
a
f
b
Waveforms for XOR gate and XNOR gate operation.
Drawing Logic Circuit
z z'
Analysing Logic Circuit
A' A'B'
B' A'B'+C (A'B'+C)'
F4
C
F4 = (A'B'+C)'
Analysing Logic Circuit
x x.y
y F5 =(x.y+y.z)
z y.z
Analysing Logic Circuit
A
B x
C
D
Evaluating Logic Circuit output
1
A=0 1
B=1 x=
C= 0
1
D=1 1 0
Boolean expression:
Switching Algebra
Postulate # 6 : Complement
● For each a in B, there exists an element a’ in B (the complement of a)
such that
(i) a + a’ =1
(ii) a • a’ =0
Fundamental Theorems of Boolean Algebra
Duality Principle
● If a Boolean expression is valid in Boolean algebra, the dual of the
expression is also valid.
● Dual expression is derived from the original by replacing AND ( •)
operations by OR (+) operations and vice versa, and replacing constant
logic 0’s by logic 1’s and vice versa, while leaving the literals unchanged.
Example
1. Valid expression : a + (b • c) = (a + b) • (a + c)
Dual expression : a • (b + c) = (a • b) + (a • c)
Proof
(i) a + a = (a + a) . 1 by postulate: P2(ii) a . 1 = a
= (a + a) . (a + a') P6(i) a +a’ =1
= (a + aa') P5(i) a + (b • c) = (a + b) • (a + c)
= (a + 0) P6(ii) a • a’ =0
=a P2(i) a + 0 = a
(ii) a . a = a . a + 0 by postulate: P2(i)
= a . a + a . a' P6(ii)
= a (a + a') P5(ii)
=a.1 P6(i)
=a P2(ii)
Fundamental Theorems of Boolean Algebra
Proof
(i) a + 1 = (a + 1) . 1 by postulate: P2(ii)
= 1 . (a + 1) P3(ii)
= (a + a') (a + 1) P6(i)
= a + a’ . 1 P5(i)
= a + a’ P2(ii)
=1 P6(i)
(ii) a . 0 = 0
as a + 1 = 1 is a valid expression, it’s dual that is, a . 0 = 0 is also valid
Fundamental Theorems of Boolean Algebra
Theorem # 3 : Involution
Proof
From postulate 6, a + a’=1 and a.a’=0, which defines the complements of a.
The complement of a’ is a and is also (a’)’. Since the complement is unique,
therefore (a’)’ = a.
Fundamental Theorems of Boolean Algebra
Theorem # 4 : Absorption
(i) a + (a.b) = a
(ii) a . (a + b) = a
Proof
(i) a + a.b = a . 1 + ab by postulate: P2(ii)
= a(1 + b) P5(ii)
= a(b + 1) P3(i)
=a.1 by theorem: P2(i)
=a P2(ii)
(ii) a.(a+b) = a + ab by duality principle
= a.1 + ab P2(ii)
= a(1 + b) P5(ii)
=a.1 T2(i)
=a P2(ii)
Fundamental Theorems of Boolean Algebra
Theorem # 5
(i) a + a’b = a + b
(ii) a(a’ + b) = ab
Proof
(i) a + a’b = (a + a’) (a + b) P5(i)
= 1 . (a + b) P6(i)
= (a + b) . 1 P3(ii)
= (a + b) P2(ii)
Theorem # 6
(i) ab + ab’ = a
(ii) (a + b)(a + b’) = a
Proof
(i) ab + ab’ = a (b + b’) P5(ii)
=a.1 P6(i)
=a P2(ii)
Theorem # 7
(i) ab + ab’c = ab + ac
(ii) (a+b)(a+b’+c) = (a+b)(a+c)
Proof
(i) ab + ab’c = a(b + b’c) P5(ii)
= a(b + c) T5(i)
= ab+ac P5(ii)
Fundamental Theorems of Boolean Algebra
Answer
Apply P6(ii)
Apply T2(ii)
Apply P2(i)
Fundamental Theorems of Boolean Algebra
Answer
Apply T1(ii)
Apply P6(i)
Apply P2(ii)
Fundamental Theorems of Boolean Algebra
Proof
(i) Let x = a+b and x’ = (a+b)’. By postulate 6, x.x’=0 and x+x’=1. If we can
prove that x.y = 0 and x+y = 1, then y = x’ because the complement of x is
unique. Therefore, we let y=a’b’ and test x . y and x + y.
x.y = (a+b) (a’b’) x+y = (a+b) + (a’b’)
= (a’b’) (a + b) P3(ii) = (b + a) + (a’b’) P3(i)
= (a’b’)a + (a’b’)b P5(i) = b + (a + a’b’) P4(i)
= (aa’)b’ + a’(b’b) P4(ii) = b + (a + b’) T5(i)
= 0.b’ + a’(b.b’) P6(ii), P3(ii) = (a + b’) + b P3(i)
= b’.0 + a’.0 P3(ii), P6(ii) = a + (b’ + b) P4(i)
=0+0 T2(ii) = a + (b + b’) P3(i)
=0 T2(i) =a+1 P6(i)
=1 T2(i)
Therefore, by the uniqueness of x’, y = x’, and therefore a’b’ = (a+b)’
Induction proof of DeMorgan’s Theorems
X Y X' Y' (X + Y)' X' • Y' X Y X' Y' (X • Y)' X' + Y'
0 0 1 1 1 1 0 0 1 1 1 1
0 1 1 0 0 0 0 1 1 0 1 1
1 0 0 1 0 0 1 0 0 1 1 1
1 1 0 0 0 0 1 1 0 0 0 0
Fundamental Theorems of Boolean Algebra
Theorem # 9 : Consencus
(i) ab + bc + a’c = ab + a’c
(ii) (a+b)(b+c)(a’+c) = (a+b)(a’+c)
Proof
(i) ab + a’c + bc = ab + a’c + 1.bc P2(ii)
= ab + a’c + (a+a’)bc T6(i)
= ab + a’c + abc + a’bc P5(ii)
= (ab + abc) + (a’c + a’bc)
= ab + a’c T4(i)
Universal Gates: NAND and NOR
● NAND gate is self-sufficient (can build any logic circuit with it).
● Can be used to implement AND/OR/NOT.
● Implementing an inverter (NOT) using NAND gate:
x x'
(x.y)'
x
x.y ((xy)'(xy)')' = ((xy)')' idempotency
y = (xy) involution
x'
x
x+y
x x'
Procedure:
(i) Obtain Boolean expression:
e.g. F3 = xy'+x'z
e.g. F3 = xy'+x'z
= (xy'+x'z) ' ' by involution
= ((xy')' . (x'z)')' DeMorgan
Implementation using NAND gates
x (xy')'
y'
F3 = ((xy')'.(x'z)')'
= xy' + x'z
x'
z (x'z)'
Implementation using NOR gates
((x’+y)’ + (x+z’)’)’
x' (x’+y)'
y
F6
(x’+y)’ + (x+z’)’
x
=xy’+x’z
z' (x+z’)'
F6 = xy'+x'z
= (x’+y)’ + (x+z’)’ DeMorgan
Positive & Negative Logic
Active High:
Enable 0: Disabled
1: Enabled
● Active-low signal names are usually written in complemented form.
Active Low:
0: Enabled
Enable
1: Disabled
Positive & Negative Logic
Positive & Negative Logic
Positive & Negative Logic
Switching Functions
● Let the function f(x1, x2, x3…xn); where x1, x2, x3…xn are the Boolean
variables, each of which represents either the element 0 or 1.
● Therefore, the function f represents the value 0 or value 1 depending on
the set of values assigned to x1, x2, x3…xn.
● As there are n variables and each variable has two possible values (0, 1),
2n combinations are possible. Furthermore, there are two possible values
for the function f(x1, x2, x3…xn), which results different switching
functions of n variables.
Minterms
● For a function of n variables, a product term in which each of the n
variables appears once is called a minterm.
Algebraic Forms of Switching Functions
Maxterms
● A maxterm is defined as an ORed sum of literals in which each variable
appears exactly once in either true or complemented form, but not both.
Algebraic Forms of Switching Functions:
Canonical Representation
●
Canonical Representation
A B C minterms
F in canonical form:
0 0 0 A'B'C' m0
F(A, B, C) = Σm(1,3,5,6,7)
0 0 1 A'B'C m1
= m1 + m3 + m5 + m6 + m7
0 1 0 A'BC' m2
= A'B'C + A'BC + AB'C + ABC' + ABC
0 1 1 A'BCm3
1 0 0 AB'C' m4
canonical form ≠ minimal form
1 0 1 AB'Cm5
F(A, B, C) = A'B'C + A'BC + AB'C + ABC' + ABC
1 1 0 ABC'm6
= (A'B' + A'B + AB' + AB)C + ABC'
1 1 1 ABC m7
= ((A' + A)(B' + B))C + ABC'
short-hand notation for = C + ABC'
minterms of 3 variables = ABC' + C
= AB + C
Canonical Representation
A B C F F'
0 0 0 0 1
0 0 1 1 0
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 0
F' = (A + B + C') (A + B' + C') (A' + B + C') (A' + B' + C) (A' + B' + C')
Canonical Representation
(x’.y’.z)
x
(x’.y.z)
y f
z
(x.y.z’)
Canonical Product Implementation
● f =(x+y+z).(x+y’+z).(x’+y+z).(x’+y+z’).(x’+y’+z’)
(x+y+z)
x (x+y’+z)
y
(x’+y’+z) f
z
(x’+y+z’)
(x’+y+z’)
Logic Function Simplification
(x’.z)
x
f
y (x.y.z’)
z
Derivation of Canonical Forms
a P1
b
P4
a' P2
c
f(a,b,c)
P3
b
c' Functionally
equivalent b
f(a,b,
c
c)
Analysis of Combinational Circuits
A (A.B)
F = A.B+C
B
C
Analysis of Combinational Circuits
Truth Table Method
● Switching expression is evaluated from the truth table.
● Example :
Consider the
following
logic circuit:
Describing Logic Circuit Algebraically
• Alternative method:
• Alternative method:
• Example:
i. Implement the following Boolean expression by using
NAND gates only:
Solution:
Universality of NAND & NOR Gates
Solution:
Input and Output Waveforms
• Example:
Determine the output waveform if the inputs are varying
according to the timing diagram below:
Input and Output Waveforms
• Solution:
Input and Output Waveforms
• Example:
Determine the output waveform if the inputs are varying
according to the timing diagram below:
Input and Output Waveforms
Input and Output Waveforms
Appendix
Electronic Gates
Faults
Internal
• shorted inputs or outputs to ground or supply
• open circuited
• short between pins
External
• open signal lines
• shorted signal lines
• faulty power supply
• output loading
Propagation Delay
CHAPTER 3
Postulates/ Theorems OR Form (Addition) AND Form (Product)
Identity a+0=a a.1=a
Null/ dominance a+1=1 a.0=0
Idempotent a+a=a a.a=a
Complement/ inverse a + a’ = 1 a . a’ = 0
Involution/ double
complement
Commutative a+b=b+a a.b=b.a
Associative (a+b+c) = a + (b+c) = (a+b) + c (a.b.c) = a . (b.c) = (a.b) . c
Distributive a(b+c) = (ab) + (ac) a + (bc) = (a+b)(a+c)
Absorption/ covering a(a + b) = a a + (ab) = a
(Simplify)
Adsorption (Simplify) a(a’+b) = ab a + a’b = a + b
Combining/ uniting (Simplify) (a+b)(a+b’) = a ab + ab’ = a
DeMorgan’s
Shanon’s expansion f(x1, x2, … xn) = x1 . f(1, x2, . xn) + x’1 . f(0, x2, … f(x1, x2, … xn) = [x1 + f(0, x2, … xn)] [ x’1 + f(1, x2,
xn) … xn)]
Other a ⊕ b = (ab’) + (a’b)