DLD
DLD
EEE241
1
Digital Logic Design
°Digital
- Concerned with the interconnection among digital
components and modules
» Best Digital System example is General Purpose
Computer
°Logic Design
- Deals with the basic concepts and tools used to design
digital hardware consisting of logic circuits
» Circuits to perform arithmetic operations (+, -, x, ÷)
2
Digital Signals
° Decimal values are difficult to represent in electrical
systems. It is easier to use two voltage values than
ten.
° Digital Signals have two basic states:
1 (logic “high”, or H, or “on”)
0 (logic “low”, or L, or “off”)
° Digital values are in a binary format. Binary means
2 states.
° A good example of binary is a light (only on or off)
on off
Power switches have labels “1” for on and “0” for off.
3
Digital Logic Design
°Bits and Pieces of DLD History
°George Boole
- Mathematical Analysis of Logic (1847)
- An Investigation of Laws of Thoughts; Mathematical
Theories of Logic and Probabilities (1854)
°Claude Shannon
- Rediscovered the Boole
- “ A Symbolic Analysis of Relay and Switching Circuits “
- Boolean Logic and Boolean Algebra were Applied to Digital
Circuitry
5
Objectives
6
Text Book
°Primary Text:
“Digital Design” By M. Morris Mano and Michael D.
Ciletti
°Complementary Material
“Logic and Computer Design Fundamentals” By M.
Morris Mano & Charles R Kime.
7
Digital Logic Design
Lecture 1
Number Systems
8
Number Systems
9
Overview
°Digital systems
°Understanding decimal numbers
°Binary and octal numbers
• The basis of computers!
10
Analog vs. Digital
Consider a faucet
Digital
Water can be flowing or NOT flowing
from the faucet
Two States
• On
• Off
Analog
How much water is flowing from the
faucet?
Advantages of Digital
Replication
• Analog
Try replicating the exact flow
from a faucet
• Digital
Try replicating ON or OFF 11
Advantages of Digital
o Error Correction/Detection
• Small errors don’t propagate
o Miniaturization of Circuits
o Programmability
• Digital computers are programmable
°Two discrete values are used in digital systems.
°How are discrete elements represented?
• Signals are the physical quantities used to represent discrete
elements of information in a digital system.
°Electric signals used:
• Voltage
• Current
12
Advantages of Digital/Representation of Binary Values
6.0
5.0
4.0
High
Volts
3.0
2.0
1.0
Low
0.0
-1.0
15
Understanding Decimal Numbers
16
Understanding Octal Numbers
17
Understanding Binary Numbers
18
Why Use Binary Numbers?
AND Gate
1
0
0
19
Binary
In Binary, there are only 0’s and 1’s. These numbers are called “Base-2” ( Example:
0102)
Base 2 = Base 10
We count in “Base-10”
000 = 0 (0 to 9)
Decimal
001 = 1
°Binary number has base 2
010 = 2 °Each digit is one of two
numbers: 0 and 1
011 = 3
Binary to
21
A Simple Switch
Vcc Vcc
Vcc, or 1 Gnd, or 0
22
Binary digits
Bit
100101112
Radix
Byte
23
Conversion Between Number Bases
Octal(base 8)
Hexadecimal
(base16)
° Learn to convert between bases.
° Already demonstrated how to convert
from binary to decimal.
° Hexadecimal described in next
lecture.
24
Number Systems
Used by Used in
System Base Symbols humans? computers?
Decimal 10 0, 1, … 9 Yes No
Binary 2 0, 1 No Yes
Octal 8 0, 1, … 7 No No
Hexa- 16 0, 1, … 9, No No
decimal A, B, … F
25
Conversion Among Bases
The possibilities:
Decimal Octal
Binary Hexadecimal
26
Convert an Integer from Decimal to Another Base
27
Convert an Fraction from Decimal to Another Base
28
The Growth of Binary Numbers
n 2n n 2n
0 20=1 8 28=256
1 21=2 9 29=512
2 22=4 10 210=1024
3 23=8 11 211=2048
4 24=16 12 212=4096
27=128 Tera
7 40 240=1T
29
Binary Addition
1 1 1 1 1 1 carries
1 1 1 1 0 1
+ 1 0 1 1 1
---------------------
1 0 1 0 1 0 0
30
Binary Subtraction
1 10 borrows
0 10 10 0 0 10
1 0
0 1 1 0 1
- 1 0 1 1 1
------------------------
1 1 0 1 1 0
31
Binary Multiplication
10 1 1 1
X 1 0 1 0
-----------------------
0 0 0 0 0
1 0 1 1 1
0 0 0 0 0
1 0 1 1 1
-----------------------
1 1 1 0 0 1 1 0
32
Convert an Integer from Decimal to Octal
33
Convert an Fraction from Decimal to Octal
0.3125 x 8 = 2 + 5 a-1 = 2
0.5000 x 8 = 4 + 0 a-2 = 4
34
Summary
35