Professional Documents
Culture Documents
EEE241
Digital Logic Design
CHAPTER NO. 2
DR. RIAZ HUSSAIN
ASSISTANT PROFESSOR
DEPARTMENT OF ELECTRICAL & COMPUTER ENGINEERING
COMSATS UNIVERSITY ISLAMABAD
Review
Why digital systems are more feasible?
Binary Operator:
“*” is a binary operator if
3. Commutative Law:
4. Identity Element:
5. Inverse:
6. Distributive
Basic Definitions…continued 3
7
Algebraic structure:
e.g.: Field
A field is a set of elements, together with two
binary operators, each having properties 1
through 5 and both operators combining to
give property 6.
Example: The set of real numbers, together with
the binary operators “+” and “.” , forms the field of
real numbers. The field of real numbers is the basis
for arithmetic and ordinary algebra.
Basic Definitions…continued 4
8
The
operators and postulates have the following
meanings:
The binary operator “+” defines addition.
The additive identity is 0.
The additive inverse defines subtraction.
The binary operator “.” defines multiplication.
The multiplicative identity is 1.
Fora ≠ 0, the multiplicative inverse of a = 1/a defines
division (i.e., a . 1/a = 1 ).
Theonly distributive law applicable is that of “.” over
“+”: a . (b + c) = (a . b) + (a . c)
Axiomatic Definition of Boolean Algebra
9
Developed by George Bool
A useful mathematical system for specifying and
transforming logic functions.
We study Boolean algebra as a foundation for
designing and analyzing digital systems
2. Identity Element:
(a) The element 0 is an identity element with respect to +; that is, x + 0 = 0 + x = x.
(b) The element 1 is an identity element with respect to “.” ; that is, x • 1 = 1 • x = x.
3. Commutative:
(a) The structure is commutative with respect to +; that is, x + y = y + x.
(b) The structure is commutative with respect to • ; that is, x • y = y • x.
4. Distributive:
(a) The operator “•” is distributive over +; that is, x • (y + z) = (x • y) + (x • z).
(b) The operator + is distributive over • ; that is, x + (y • z) = (x + y) • (x + z).
2. Distributive Law:
“+” over “•” (i.e., x + (y • z) = (x + y) • (x + z) ) is valid for Boolean algebra, but not for
ordinary algebra.
3. Inverse:
No additive or multiplicative inverse
So, no subtraction and no division operations
4. Complement:
Ordinary algebra does not have complement
x y z=x.y x y z=x+y
0 0 0 0 0 0
0 1 0 0 1 1
1 0 0 1 0 1
1 1 1 1 1 1
x z = x’
0 1
1 0
Two-Valued Boolean Algebra
…continued 2
13
1. Is the structure closed w.r.t.?
a) “+” (P-1(a))
b) “•” (P-1(b))
2. What are the identity elements?
a) “+” (P-2(a))
b) “•” (P-2(b))
3. Does it hold commutative law?
a) “+” (P-3(a))
b) “•” (P-3(b))
4. Verify the distributive law (• over +):
a) x • (y + z) = (x • y) + (x • z) (P-4(a))
b) (+ over •) (P-4(b))
5. Complement:
a) x + x’ = 1 (P-5(a))
b) x • x’ = 0 (P-5(b))
6. Postulate 6 is also satisfied as there are two elements “0” and “1” and 0 ≠ 1. (P-6)
14
Boolean Algebra Theorems
15
Duality
The dual of a Boolean algebraic expression is
obtained by interchanging the AND and the OR
operators and replacing the 1’s by 0’s and the 0’s
by 1’s.
If, x • ( y + z ) = ( x • y ) + ( x • z ), then using
duality x + ( y • z ) = ( x + y ) • ( x + z )
Duality is important because it doubles the
usefulness of everything about Boolean
algebra and manipulation of logic functions.
Boolean Algebra Theorems…continued 2
16
Theorem-1(T-1)
x•x=x x+x=x
Theorem-2(T-2)
x•0=0 x+1=1
Theorem 3: Involution (T-3)
( x’ )’ = x
F2 = x’ y’ z + x’y z + x y’
Now consider the possible simplification of the function by
applying some of the identities of Boolean algebra:
= x’z(y’ + y) + xy’
= x’z + xy’
26
EXAMPLE 2.1
Boolean Functions…continued 3
27
Complement of Functions:
DeMorgan’s Theorm
m’j = Mj
Standard Forms
35
Sum of Product (SOP)
Standard Forms…continued 2
36
Product of Sum (POS)
Standard Forms…continued 3
37
Standard form to Canonical form
F = A + B’C
= A(B+B’) + B’C(A+A’)
= AB + AB’ + AB’C +A’B’C
= AB(C+C’) + AB’(C+C’) + AB’C +A’B’C
= ABC + ABC’ + AB’C + AB’C’ + AB’C +A’B’C
= A’B’C + AB’C’ + AB’C + ABC’ + ABC
= m1 + m 4 + m5 + m 6 + m7
F(A,B,C) = Σ(1,4,5,6,7)
OR you can use the truth table for F
Two Level Implementation
38
Two Levels
AND x y AND
0 0 0
0 1 0
1 0 0
1 1 1
XNOR (Exclusive-NOR)
(Equivalence) x y XNOR
0 0 1
0 1 0
1 0 0
1 1 1
Logical Operators…continued 4
45
NOT (Inverter)
x NOT
0 1
1 0
Buffer x Buffer
0 0
1 1
Positive or Negative Logic
46
Positive Logic:
High level for 1
Negative Logic
High level for 0
Integrated Circuits
47
Chip:
Is a die of a silicon semiconductor crystal
On which IC is fabricated
IC has various gates, integrated inside
Chip is mounted on ceramic or plastic containers
Connections are welded to external pins
IC has numeric designation
Catalogs provide detailed specification
Integrated Circuits…continued 2
48
Level of Integration:
SSI:
Gates fewer than 10
Limit on number of pins available
MSI:
10 – 1000 gates
Perform elementary digital operation
LSI:
1000 – 1000000 (upto a million gates in a package)
e.g. Processor, memory chips, programmable logic devices
VLSI:
Millions of gates in a package
e.g. Micro-computer chips
Integrated Circuits…continued 3
49
Digital Logic Families:
The circuit technology is referred to as a digital logic family.
Each logic family has its own basic electronic circuit upon
which more complex digital circuits and components are
developed.
The basic circuits in each technology is a NAND, NOR, or
inverter gate.
e.g.:
TTL (Transistor-Transistor Logic)
http://math.stackexchange.com/questions/7717/difference-b
etween-axioms-theorems-postulates-corollaries-and-hypoth
esis
http://bscshortnote.blogspot.com/2012/11/canonical-forms-f
or-boolean-function.html
http://www.facstaff.bucknell.edu/mastascu/elessonshtml/Lo
gic/Logic1.html