Digital Logic Design Week 1 Lecture 1
Digital Logic Design Week 1 Lecture 1
1
A Brief History of Number and Civilization
Counting Sheep
• Scenario: You are a person from the pre-historic era, without any number
system!
2
A Brief History of Number and Civilization (Cont.)
3
A Brief History of Number and Civilization
Counting Sheep
• Scenario: You are a person from the pre-historic era, without any number
system!
4
A Brief History of Number and Civilization (Cont.)
5
A Brief History of Number and Civilization (Cont.)
Decimal Number System
1. Base-10 System: The decimal system is based on ten digits (0-9).
2. Historical Origin: It is believed that the decimal system was developed in ancient India
and later spread to other regions through trade and scholarship.
Babylonian (Base-60):
● The Babylonians used a base-60, or sexagesimal, system.
● They used two symbols to represent values from 1 to 59.
Roman Numerals:
● The Romans used letters (I, V, X, L, C, D, M) to represent numbers, which isn’t a
positional system.
6
A Brief History of Number and Civilization (Cont.)
Different Civilizations Different Number Systems
7
The Decimal Number System
● The decimal number system contain ten unique symbols 0,1,2,3,4,5,6,7,8 and 9.
● In decimal system 10 symbols are involved, so the base or radix is 10.
● It is a positional weighted system.
● The value attached to the symbol depends on its location with respect to the
decimal point.
For example:
9256.26 = 9 x 1000 (10 x 10 x 10) + 2 x 100 (10 x 10) + 5 x 10 + 6 x 1 + 2 x (1/10) + 6 x ( 1/100)
= 9 x 103 + 2 x 102 + 5 x 101 + 6 x 100 + 2 x 10-1 + 6 x 10-2
8
How can we understand the numbers of other civilizations ?
9
Number System Conversions
10
The Binary Number System
● The binary number system is a positional weighted system.
1010 != 1100
11
Decimal to Binary Number Conversion
12
The Binary Number System (Cont.)
13
Other Number Systems
Octal Number System: Hexadecimal Number System:
14
Types of Real Life Signals
Analogue Signal Digital Signal
15
Why is Binary Number Used?
Consider a system with 10 values representing the decimal digits. In such a system, the
voltages available—say, 0 to 1.0 volts—could be divided into 10 ranges, each of length
0.1 volt.
Binary Number can ensure the simplicity of the design of the circuits by
considering only two states.
16
Binary Numbers and Binary Encoding
• Given n binary digits (called bits), a binary code is a mapping from a set of represented
elements to a subset of the 2n binary numbers.
17
Binary Number and Binary Encoding (Cont.)
n = log2 M
Here M= 7
n = log2 M = log2 7 = 2.80
18
Binary Number and Binary Encoding (Cont.)
Suppose you are using n number of digits, in radix r, there are maximum of rn distinct
elements that can be represented.
Examples:
You can represent 4 elements in radix r = 2 with n = 2 digits: (00, 01, 10, 11).
You can also represent 4 elements in radix r = 2 with n = 4 digits: (0001, 0010, 0100,
1000).
19
Binary Number and Binary Encoding
You want to represent all the countries in the world, using binary
numbers. How many bits are required to do so?
Hint:
Total Countries if n,
Bit required is log 2 n
20
Binary Addition
21
Binary Subtraction
Subtract : Subtract :
11011 1110
(-) 1 0 1 1 0 (-) 111
———————– ———————–
22
Binary Multiplication
23
Binary Division
Division Rules:
● 1÷1 = 1
● 1÷0 = Meaningless
● 0÷1 = 0
● 0÷0 = Meaningless
24
Binary Division (Cont.)
Division Rules:
● 1÷1 = 1
● 1÷0 = Meaningless
● 0÷1 = 0
● 0÷0 = Meaningless
25
THANK YOU!
Reference:
Digital Logic and Computer Design. M. Morris Mano (1979).
26