module.2
module.2
1/52
2 - Logic Family and Logic Gates
2.2 Digital logic gates, Universal gates, Realization
using NAND and NOR gates, Boolean Algebra,
De Morgan’s Theorem.
Books referred:
1. John F. Warkerly, “Digital Design Principles and
Practices”, Pearson Education, Fifth Edition
(2018).
2. R. P. Jain, “Modern Digital Electronics”, Tata
McGraw Hill Education, Forth Edition (2010).
2
Difference between Analog and Digital
signals
An analog signal is a time varying signal that can take
on any value across a continuous range of voltage,
current or any other metric. This type of signals are
continuous signals and can have any value.
A digital signal is modeled as taking on, at any time,
only one of two discrete values, which we call 0 and 1
(or Low and High, or False and True) The signal will
always be of one of the two levels. Here, the actual
value of the signal is immaterial as long as it is within
the specified range.
3/52
Logic levels & Representations
Two different representations of digital signals are
shown in figure below. In each case there are two
discrete levels.
5
Complement, Prime operator
A logic circuit whose output signal level is the
opposite (or complement ) of its input signal level is
called an inverter. We use a prime ( ꞌ ) to denote an
inverter’s function. If a variable X denotes an
inverter’s input signal, then Xꞌ denotes the value of a
signal on the inverter’s output. This notation is
formally specified in the second pair of axioms
(A2) If X = 0, then X′ = 1 (A2′) If X = 1 then X′ = 0
(~, !, )
6
Algebraic operator, expression
14
XOR
15
16
17
18
19
20
DeMorgan’s Theorems
DeMorgan’s theorems (T13 and T13′) are probably the
most commonly used of all the theorems of switching
algebra.
25
DeMorgan’s Theorems
A similar symbolic equivalence can be inferred from
theorem T13′. As shown in Figure (a), a NOR gate
may be realized as an OR gate followed by an inverter,
the symbol of which is as shown in Figure (b).
34
Principle of Duality
Duality is important because it doubles the usefulness
of everything that you learn about switching algebra
and manipulation of switching functions. Stated more
practically, from a student’s point of view, it halves
the amount that you have to learn! For example, once
you learn how to synthesize two-stage AND-OR logic
circuits from sum-of-products expressions, you
automatically know a dual technique to synthesize
OR-AND circuits from product-of-sums expressions.
35
Assignment 6:
36
Assignment 6:
1. Explain laws of Boolean algebra.
2. Design XOR and XNOR using all universal gates.
3. Prove that a dual of exclusive or is also its
complement.
4. Using Boolean algebra, prove that
AB+BC+A’C=AB+A’C.
37
Assignment 6:
5. What are universal gates? Why are they so called?
Design any one basic logic gate using only
universal gates.
i) Implement the XOR using minimum number of
universal gates
ii) Also implement AND operation using universal
gates.
38
Assignment 6:
6. State and Prove DeMorgan’s Theorem.
7. Justify NAND and NOR gates are universal gates.
8. Which of the following expressions is equivalent to
Z = [(A(AB)′)′·(B(AB)′)′]′
i) , ii) , iii) , iv)
Prove it.
39
Z = [(A(AB)′)′·(B(AB)′)′]′
• Z=(A(AB)′)′‘ + (B(AB)′)′′
• Z=(A(AB)′) + (B(AB)′)
• Z=A(A′+B′)+B(A′+B′)
• Z=AA′+AB′ +A′B+BB′
• Z=AB’+ A′B
• Where (AB)’=A’+B’
• AA′=0
• A’’=A
40
41
42
43