Introduction To Digital System
Introduction To Digital System
DESIGN
THE IMPORTANCE OF
DIGITAL LOGIC
Most of electronic devices consist of two integrated
systems
Hardwar Softwar
e e
Circuits that execute Programs that control
the program hardware
commands to execute user wishes
To learn more about how To learn how to design
to design this you need to this you need to study
study Digital Logic Design Computer Science
2
COURSE OBJECTIVES
Why Digital Logic Design?
4
COURSE OUTLINE
1. Introduction
2. Gate-Level Minimization
3. Combinational Logic
4. Synchronous Sequential
Logic
5. Registers and Counters
6. Memories and
Programmable Logic
5
FLASHBACK ON
DIGITAL LOGIC DESIGN
HISTORY
6
HOW DID IT
ALL START?
1850: George Boole invents Boolean
algebra 11
HOW DID IT ALL START?
1
WHAT IS DIGITAL?
1
ANALOG VS. DIGITAL
An analog signal is any variable signal continuous in
both time and
amplitude. e.g. Sound
Example:
A typical analog device is a clock in which the hands move continuously
around the face. Such a clock is capable of indicating every possible
time of day. In contrast, a digital clock is capable of representing only a
finite number of times (every tenth of a second, for example).
1
WHY DIGITAL?
1
WHAT IS LOGIC DESIGN?
1
WHAT ARE THE BASIC UNITS
USED TO BUILD
THESE DIGITAL CIRCUITS?
■ Digital Logic Gates!
2
DIGITAL LOGIC LEVELS
(CONT.)
Electrical Signals (voltages or
currents) that exist throughout a
digital system are in either of two
recognizable
Voltage values (logic 1 or logic 0)
5
Logic – 1 range
Intermediate
region, 2
crossed only Transition (occurs
during state 0.8 between the two limits)
transition Logic – 0 range
0
Time
2
Boolean Algebra
2
BASIC DIGITAL LOGIC
GATES (CONT.)
X Z
AND Gate AN
Y D
●Represented by any of the
following Symbol
diagram
notations:
●X AND Y
●X . Y
●X Y
●Function definition: AND
X Y
Z=1 only if X=Y=1
0 otherwise Switch
representation
2
BASIC DIGITAL LOGIC
GATES (CONT.)
X O Z
OR Gate Y R
●Represented by any of the following Symbol
notations: diagram
●X OR Y
●X + Y
●X v Y X
●Function
OR
definition:
1 if X=1 or Y =1 or
Z both X=Y=1
= Y
0 if X=Y=0 Switch
representation
2
BASIC DIGITAL LOGIC
GATES (CONT.)
NOT (Inverter) Gate
●Represented by a bar over the X NO Z
T
variable
Symbol
X diagram
Function
X
definition:
Z is what X is not
NOT
It is also called the z
complement operation, Switch
as it changes 1s into 0s representation
and 0s into 1s.
2
LOGIC GATES TIMING
DIAGRAM
•Timing diagrams illustrate the response of any gate to all
possible input signal combinations.
•The horizontal axis of the timing diagram represents time and
the vertical axis represents the signal as it changes between the
two possible voltage levels 1 or 0
2
DIGITAL LOGIC GATES
(CONT.)
Gates can have more than
2 inputs
3
HOW TO DESCRIBE A LOGIC
SYSTEM?
By using one of the following two
methods:
•A Truth Table
•A Boolean Expression
3
TRUTH TABLES
3
BOOLEAN EXPRESSIONS FROM
TRUTH TABLES
Each 1 in the output of a truth table specifies one term in the
corresponding Boolean expression
3
ANOTHER EXAMPLE
A F
F=?
0 0
B
1
0 1
C
0 F= A’B’C +
0 1 A’BC’ +
0 0
0
AB’C’ +
0 1 ABC
1
0
0 3
BASIC LOGIC GATES
3
COMMUTATIVE LAW
The commutative law of addition for two
variables is
A+B = B+A
A
B
A+B
≡ B
A
B+A
3
ASSOCIATIVE LAW
The associative law of addition for 3
variables is
A+(B+C) = (A+B)+C A+B
≡
A A+(B+C) A
B B (A+B)+C
C B+C C
Duality
Duality
X+X=X X⋅X = X
4
DEMORGAN’S LAW
A⋅ B = A + B
≡
A + B = A⋅B
≡
4
8
EXA
MPLE
Get the logic function from the following truth table
and implement it using basic logic gates (AND, OR,
NOT)
A B P P = A’ B’ + A’B + A
B’
0 0 1
0 1 1 • It needs two inverters +
1 0 1 three AND + two OR
gates
1 1 0 = 7 gates to implement
Can we make this circuit better? the
• Cheaper: fewer gates The answer in the simplification of
function
• Faster: fewer delays from inputs to the logic function
outputs
4
9
SIMPLIFICATION OF THE
LOGIC FUNCTION
A’B’ + A’B +
AB’ = A’ * (B’ + B) + A *
B’ (Distributivity
= A’ * (B + B’) + A * )
=
B’ A’ * 1 + A * (x + x’ = 1)
B’ (Commutativi
(x +x’y)=(x+x’)(x+y)
= A’ + (A * B’) ty)
(Distributivity)
= (A’ + (De
B’) Morgan’s)
= (A 1 GATE (NAND)
B)’ ONLY
X Y Z X Y Z X Y Z X Y Z
0 0 1 0 0 1 0 0 0 0 0 1
0 1 1 0 1 0 0 1 1 0 1 0
1 0 1 1 0 0 1 0 1 1 0 0
1 1 0 1 1 0 1 1 0 1 1 1
5
1