Download as pdf or txt
Download as pdf or txt
You are on page 1of 35

Logic Gates – Truth Tables – Equations & Waveforms

Logic Design & Switching Theory


Faculty of Engineering - UCP

Prof. Mohammad Salman Aslam


Faculty of Engineering
University of Central Punjab

Lecture No: 6a
Logic Gates with their Truth Tables –
Equations and Waveforms Diagrams
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


 Up to this point in course and lectures, we are dealing with rather
abstract matters. We had so far discussed logic operations in an
Faculty of Engineering - UCP

algebra called switching algebra. The variables that are


manipulated in switching algebra are abstract switching variables.
 The relationship of these switching variables to anything in the
real world has to be made along with the connection between the
operations of switching algebra and physical devices.
 For switching algebra to carry out real tasks, physical devices
must exist that can carry out the operations of switching algebra as
accurately and with as little delay as possible. The switching
variables, which take on logic values of 0 and 1, must be identified
with real signals characterized by a physical variable, such as voltage.

2
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


 The generic name given to a physical device that carries out
Faculty of Engineering - UCP

any of the switching operations is gate. However, in


anticipation of discussing such devices, we will introduce
another abstract representation of switching operations, a
schematic representation for the real-life devices and for
their interconnection in actual switching circuits.

 Suppose that each operation in switching algebra is


represented by a different schematic symbol, with a distinct
terminal for each logic variable. Then any switching
expression can be represented by some interconnection of
these symbols.
3
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


 Digital logic circuits are electronic circuits that are
implementations of some Boolean function(s).
Faculty of Engineering - UCP

 A circuit is built up of gates, each gate implements some


simple logic function. The term gates is named for Bill Gates,
in much the same way as the term gore is named for Al Gore
the inventor of the Internet.
Block diagram of Gate symbol with Inputs and Output shown

A Output
Inputs Can be any function or gate f(A,B)
B
4
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Gates compute something!
 The output depends on the current inputs.
Faculty of Engineering - UCP

 If the input changes, the output might or might not change.


 If the inputs don’t change – the output does not change at all.
 A more common set of symbols for gates uses a distinct
shape for each operation as shown below,

5
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction (Timing Diagram)


Faculty of Engineering - UCP

A graphical time
representation
Of the truth table!
time

time

time

time
6
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Introduction - Representation - Equations – Truth Table
and Waveforms representation of AND gate
Faculty of Engineering - UCP

7
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


AND Gate Operation
Faculty of Engineering - UCP

Figure: All possible logic levels for a 2-input AND gate.

8
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Faculty of Engineering - UCP

AND Gate Truth Table

Figure: Boolean expressions for AND gates with two, three, and four inputs.
9
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


AND Gate Timing Diagram
Faculty of Engineering - UCP

Figure: Example of pulsed AND gate operation with a timing diagram


showing input and output relationships. 10
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


AND Gate Application Example
Faculty of Engineering - UCP

Figure: An AND gate performing an enable/inhibit function for a


frequency counter.
11
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Introduction - Representation - Equations – Truth Table
and Waveforms representation of OR gate
Faculty of Engineering - UCP

12
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


OR Gate Operation
Faculty of Engineering - UCP

Figure: All possible logic levels for a 2-input OR gate.

13
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Faculty of Engineering - UCP

OR Gate Truth Table

Figure: Boolean expressions for OR gates with two, three, and four inputs.
14
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


OR Gate Timing Diagram
Faculty of Engineering - UCP

Figure: Example of pulsed OR gate operation with a timing diagram


showing input and output relationships. 15
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


OR Gate Application Example
Faculty of Engineering - UCP

Figure: A simplified intrusion detection system using an OR gate.


16
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Introduction - Representation - Equations – Truth Table
and Waveforms representation of NOT gate
Faculty of Engineering - UCP

17
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Faculty of Engineering - UCP

NOT Gate Truth Table

Fig: The Inverter Complements an Input Variable

Fig: Inverter Operation with an Pulse Input 18


Logic Gates – Truth Tables – Equations & Waveforms
Faculty of Engineering - UCP

Logic Gates - Introduction


Inverter Gate Timing Diagram

19
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Introduction - Representation - Equations – Truth Table
and Waveforms representation of NAND gate
Faculty of Engineering - UCP

20
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


NAND Gate Operation
Faculty of Engineering - UCP

Figure: All possible logic levels for a 2-input NAND gate.

21
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Faculty of Engineering - UCP

NAND Gate Truth Table

Figure: Standard symbols representing the two equivalent


operations of a NAND gate. 22
Logic Gates – Truth Tables – Equations & Waveforms
Faculty of Engineering - UCP

Logic Gates - Introduction


NAND Gate Timing Diagram

23
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Introduction - Representation - Equations – Truth Table
and Waveforms representation of NOR gate
Faculty of Engineering - UCP

24
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


NOR Gate Operation
Faculty of Engineering - UCP

Figure: All possible logic levels for a 2-input NOR gate.

25
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Faculty of Engineering - UCP

NOR Gate Truth Table

Figure: Standard symbols representing the two equivalent


operations of a NOR gate. 26
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


NOR Gate Timing Diagram
Faculty of Engineering - UCP

Figure: Example of pulsed NOR gate operation with a timing diagram


showing input and output relationships.
27
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Introduction - Representation - Equations – Truth Table
and Waveforms representation of EX-OR gate
Faculty of Engineering - UCP

28
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


EX-OR Gate Operation
Faculty of Engineering - UCP

Figure: All possible logic levels for a 2-input EX-OR gate.

29
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


XOR gate Application Example
Faculty of Engineering - UCP

X  A B
Figure: An XOR gate used to add two bits. 30
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Introduction - Representation - Equations – Truth Table
and Waveforms representation of EX-NOR gate
Faculty of Engineering - UCP

31
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


EX-NOR Gate Operation
Faculty of Engineering - UCP

Figure: All possible logic levels for a 2-input EX-NOR gate.

32
Logic Gates – Truth Tables – Equations & Waveforms
Faculty of Engineering - UCP

EX-NOR Gate Truth Table


Logic Gates - Introduction

33
Logic Gates – Truth Tables – Equations & Waveforms
Faculty of Engineering - UCP

Logic Gates - Introduction

Figure: Logic Gate Summary


34
Logic Gates – Truth Tables – Equations & Waveforms

Logic Gates - Introduction


Faculty of Engineering - UCP

Figure: Pin configuration diagrams for some common fixed-function


IC gate configurations. 35

You might also like