Docsity

Logic Circuits-Digital Logic-Lecture 02 Slides-Electrical and Computer Engineering, Slides of Digital Logic Design and Programming

Toggle sidebar
bg1
1
Dr. D. J. Jackson Lecture 2-1Electrical & Computer Engineering
ECE380 Digital Logic
Introduction to Logic Circuits:
Variables, functions, truth tables,
gates and networks
Dr. D. J. Jackson Lecture 2-2Electrical & Computer Engineering
Logic circuits
• Logic circuits perform
operations on digital
signals
– Implemented as
electronic circuits where
signal values are
restricted to a few
discrete values
•Inbinary logic circuits
there are only two
values, 0 and 1
• The general form of a
logic circuit is a
switching network
Switching
Network
X1
X2
X3
Xm
Y1
Y2
Y3
Yn
discrete values
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Logic Circuits-Digital Logic-Lecture 02 Slides-Electrical and Computer Engineering and more Slides Digital Logic Design and Programming in PDF only on Docsity!

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

ECE380 Digital Logic

Introduction to Logic Circuits:

Variables, functions, truth tables,

gates and networks

Logic circuits

• Logic circuits perform

operations on digital

signals

  • Implemented as

electronic circuits where

signal values are

restricted to a few

discrete values

• In binary logic circuits

there are only two

values, 0 and 1

• The general form of a

logic circuit is a

switching network

Switching

Network

X 1

X 2

X 3

Xm

Y 1

Y 2

Y 3

Y n

discrete values

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

Boolean algebra

• Direct application to switching networks

– Work with 2-state devices Æ 2-valued Boolean

algebra (switching algebra)

– Use a Boolean variable (X, Y, etc.) to represent an

input or output of a switching network

– Variable may take on only two values (0, 1)

– X=0, X=

– These symbols are not binary numbers, they

simply represent the 2 states of a Boolean

variable

– They are not voltage levels, although they

commonly refer to the low or high voltage

input/output of some circuit element

Variables and functions

• The simplest binary element is a switch that

has two states

• If the switch is controlled by x , we say the

switch is open if x =0 and closed if x =

x = 0 x = 1

(a) Two states of a switch

S

x

(b) Symbol for a switch

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

Variables and functions (OR)

• Using a parallel connection, the light will be

on only if either or both switches are closed

– L( x 1 , x 2 )= x 1 + x 2

– L=1 if x 1 OR x 2 is 1 (or both)

S

x 1

L

Power

supply S

x 2

The logical OR function (parallel connection)

Light

“ +” OR operator

The circuit implements

a logical OR function

Variables and functions

• Various series-parallel connections would

realize various logic functions

– L( x 1 , x 2 , x 3 )= ( x 1 + x 2 ) · x 3

S

x 1

L

Power

supply S

x 2

Light

S

x 3

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

Variables and functions

• What would the following logic function look

like if implemented via switches?

– L( x 1 , x 2 , x 3 , x 4 )= ( x 1 · x 2 ) + ( x 3 · x 4 )

S

x 1

L

Power

supply S

x

Light

S

x 2

S

x

Inversion

• Before, actions occur when a switch is closed.

What about the possibility of an action

occurring when a switch is opened?

– L( x )= x

– Where L=1 if x =0 and L=0 if x =

• L( x ) is the inverse (or complement) of x

x S L

Power

supply

R

The circuit implements

a logical NOT function

x , x’ , NOT x

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

Truth tables

• Truth table for AND and OR functions of three

variables

Truth tables of functions

• If L(x,y,z)=x+yz, then the truth table for L

is:

x y z yz x+yz 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

Logic gates and networks

• Each basic logic operation (AND, OR, NOT)

can be implemented resulting in a circuit

element called a logic gate

• A logic gate has one or more inputs and one

output that is a function of its inputs

x 1 x 2

xn

x 1 x 2 x 1 ⋅ x 2 x 1 ⋅ x 2 ⋅ … ⋅ xn

AND gates

Logic gates and networks

x 1 x 2

xn

x 1 + x 2 + … + xn

x 1 x 2 x 1 + x 2

OR gates

x x

NOT gate

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

Analysis of a logic network

• To determine the functional behavior of a

logic network, we can apply all possible input

signals to it

x 1

x 2

1 → 1 → 0 → 0

f 0 → 0 → 0 → 1

1 → 1 → 0 → 1

0 → 0 → 1 → 1

0 → 1 → 0 → 1

Network that implements f = x 1 + x 1 ⋅ x 2

A

B

Analysis of a logic network

• The function of a logic network can also be

described by a timing diagram (gives

dynamic behavior of the network)

1 0 1 0 1 0 1 0 1 0 x 1

x 2

A

B

f Time Timing diagram