0% found this document useful (0 votes)
14 views32 pages

Lecture Week 3-Digital Logic

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
14 views32 pages

Lecture Week 3-Digital Logic

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 32

Switch off your Mobile Phone

or
Change Profile to Silent Mode
Digital Logic

Digital logic and Boolean Algebra

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:

Various representations of an 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

• Note: The labeling is always carried out from left to


right (i.e. from input through to output).

18
Logic Circuits (Contd.):

A AB AB
B

• There are two input signals to the circuit.


• If these are labeled A and B they are initially inputs to the
AND gate.
• This transforms them to the output A · B which is then input
to the NOT gate. The final output from the circuit is therefore
AB

19
Logic Circuits (Contd.):
• Example

• In the circuit, There are THREE inputs and the


output is (A  B) + C

20
Logic Circuits (Contd.):
• Truth Table of Corresponding Circuit:

A A B C B AB (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.

• Boolean Algebra is a type of mathematical Operation


that, unlike regular algebra works with binary digits
(bits) i.e 0 and 1.

• Where 1 represents True and 0 represents False.

• Computers can perform simple to extremely complex


operations with the use of Boolean algebra.
22
Boolean Algebra:
• The Complement is the inverse of a variable and is
indicated by a bar over variable (overbar).

For example, the complement of the variable A is A. If


A = 1, the A = 0. If A = 0, then A = 1.

• In Boolean Algebra, the truth tables A + B, A  B and A


for OR, AND and NOT gates are identical to those for
A  B, A  B, A.
23
Boolean Algebra (Contd.)

The operations +,  and ͞ consequently satisfy the basic


laws 1, 2 and 3 of Boolean algebra. That is:
1. A+BB+A
ABBA Commutative Laws

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)

5. A + A = high A  A = low Complement Laws


(or A + A = 1 and A  A = 0)

6. low = high high = low Negation Laws


(0=1) (1=0)

7. A + A = A AA=A Idempotent Laws

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

10. A = A Double Negation


Law

11. A + B = A  B AB=A+B De Morgan’s 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 .

You all are requested to practice the Boolean algebra


laws thoroughly and be able to use it whenever it is
necessary .

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

• Review and practice Digital Logic problems through


in-class assignments to actually acquire them.
• Practice problems to know how to design Digital logic
circuits.

31
Thank you

You might also like