Lecture Week 3-Digital Logic
Lecture Week 3-Digital Logic
or
Change Profile to Silent Mode
Digital Logic
Lecture 3
Logic & Problem Solving(Module Code:-MA4001NP)
Agenda
Review of week 2
Week 3 lecture coverage
• Logic Gates
• Digital Logic Families
• Concept of Boolean Algebra
3
Faster than a calculator…..
Review of Week 2
Question:
Describe the followings with suitable examples :
a. Tautology
b. Contradiction
c. Logical equivalence
d. Inverse ,converse and contra positive of conditional
5
Review of Week 2 (Contd)..
Question:
Determine the validity of the following arguments:
p → q , q → r , r ├ p
p q, q r ├ p r
If I am not in Malaysia, then I am not happy; if I am
happy, then I am singing; I am into singing;
therefore, I am not in Malaysia.
6
Any Questions?
7
Logic Gates:
• A logic gate is a simple digital circuit that corresponds
to one of the logical connectives. (i.e. NOT, OR, AND)
• Transistors are combined together to form logic gates
• A large number of electronic circuits (in computers,
control units, and so on) are made up of logic gates.
• These process signals which represent true or false.
8
Logic Gates (Contd.):
• Real life examples:
9
Common Logic Gates:
10
Not Gate:
• Input (A)
• Truth Table
A NOT A (A)
1 0
0 1
Output
(Not A)
11
OR Gate:
• Truth Table
A B A +B
0 0 0
0 1 1
1 0 1
1 1 1
12
AND Gate:
• Truth Table
A B A .B
0 0 0
0 1 0
1 0 0
1 1 1
13
NAND Gate
A A NAND B
B
• Truth Table
A B A NAND B
0 0 1
0 1 1
1 0 1
1 1 0
14
NOR Gate
A A NOR B
B
• Truth Table
A B A NOR B
0 0 1
0 1 0
1 0 0
1 1 0
15
XOR Gate:
• XOR, or exclusive OR gate
– An XOR gate produces 0 if its two inputs are the
same, and a 1 otherwise
– Note the difference between the XOR gate
and the OR gate; they differ only in one
input situation
– When both input signals are 1, the OR gate produces
a 1 and the XOR produces a 0
31
XOR Gate:
32
Logic Circuits:
• Gates can be combined together in various ways to
make circuits with output from one gate serving as
input (or part of the input) to another. Such circuits are
called logic circuits.
• Example: Labeling the circuit diagram
18
Logic Circuits (Contd.):
A AB AB
B
19
Logic Circuits (Contd.):
• Example
20
Logic Circuits (Contd.):
• Truth Table of Corresponding Circuit:
A A B C B AB (A B) + C
B 1 1 1 0 0 1
1 1 0 0 0 0
C 1 0 1 1 1 1
1 0 0 1 1 1
0 1 1 0 0 1
0 1 0 0 0 0
0 0 1 1 0 1
0 0 0 1 0 0
21
Boolean Algebra:
• Invented in 1854 by George Boole.
2. (A + B) + C A + (B + C)
(A B) C A (B C) Associative Laws
3. A (B + C) (A B) + (A C)
A + (B C) (A + B) (A + C) Distributive Laws
24
Boolean Algebra (Contd.)
4. A + low = A A high = A Identity Laws
(or A + 0 = A and A 1 = A)
25
Boolean Algebra (Contd.)
8. A + high = high A low = low Domination Laws
(A + 1 = 1) (A 0 = 0)
9. A + (A . B) = A A (A + B) = A Absorption Laws
26
Boolean Algebra (Contd.)
Boolean Algebra laws are very important for simplifying
Boolean expressions and the main objectives of
simplification is to minimize the number of gates .
27
Exercises …
Construct the logic circuit and truth table for the
following expressions.
1) Z ( A B) C
2) Z A B C
3) Z (A C) (B C )
4) Z (A B) (A C )
5) Z A (B C)
28
Any Questions?
29
Summary: Week 3 Lecture
• Concept of Boolean Algebra
• Logic Gates
• Digital Logic Families
30
What to Expect: Week 3 Tutorials
31
Thank you