Вы находитесь на странице: 1из 39

Digital Logic Design

Lecture#1
An Introduction, Orientation,
Number System

WEEK#1
By: Engr. Muhammad Adnan Malik 19,OCT,2016
Class of BSC‐ELECTRICAL, TIMES, MULTAN.
ORIENTATION
TEXT BOOK
Digital Design By Morris Mano
(Available in your library)

COURSE OUTLINE
WILL BE MADE AVAILABLE ON GROUP
Kindly Provide your Email ID for joining 
the group

 No files will be personally given to anyone, kindly find


all the related material on the group.

 All quizzes announcements, assignments will be


uploaded to the group, no announcement will be made in
class.

 You need a GMAIL account for joining the group.

 Send your email ID list before midnight today.


What do you understand by term
“Digital Logic Design”

• What is digital?

• What is logic?

• How to design logic?
What do you understand by term
“Digital Logic Design”

• What is digital?

• Digital is a discrete signal, that is either it 1 or 0 or 

on and off, i.e, it has only two possible states.
What do you understand by term
“Digital Logic Design”
• What is Logic?

• A logic is a predefined way to understand things or 
to perform tasks. Take daily life examples of logical 
tasks.
– How can you solve math?

– How can you drive car?
What do you understand by term
“Digital Logic Design”
• How can a computer or machine can make these 
logics?

• This is what this course is all about.
NUMBER SYSTEMS
What do you mean by a Number?

• Say, what is meant by digit “2” or digit “3”?

• A number is actually a symbol which is used by us 
to solve our daily life problems.
What is a system of a number?
Take simple Example Of a clock
• A number system of clock is from 1 to 12.
Take simple Example Of a clock

• A clock is a number system, which has hours from 
1 to 12, what happens if we have more than 12hr?

• For example, what will b the time after 24hr from 
now on?

• Surely clock has no 24 digit on it, so we need to 
convert it, so that we can have any digit between 
1‐12
Number Systems

• This how other number systems are made.

• There are many types of number systems we need 
to study in order to understand the operation 
performed by computers
Types of Number Systems
Types of Number Systems

• Binary Number System

• Decimal Number System

• Octal Number System

• Hexadecimal Number System
Baes or Radix of a number
• In mathematical numeral systems, 
the radix or base is the number of unique digits, 
including zero, used to represent numbers in a 
positional numeral system. For example, for the 
decimal system (the most common system in use 
today) the radix is ten, because it uses the ten 
digits from 0 through 9.
Binary Number System

• A binary number system has two digits 0 and 1, 
and so its base or radix is 2

• Example (100100)2
Decimal Number System

• A decimal number system has 10 digits 
0,1,2,3,4,5,6,7,8,9 and so its base or radix is 10.

• Example  (1394)10
Octal Number System

• An octal number system has eight digits 
0,1,2,3,4,5,6,7 and so its base or radix is 8.

• Example (127)8
Hexadecimal Number System

• A hexadecimal number system has sixteen digits 
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F, and so its base or 
radix is 16.

• A=10, B=11, C=12, D=13, E=14, F=15

• Example: (A08)16
Time to test you
• Which One is true or false:

–(134)10
–(A139)16
–(192)8
–(A76)10
–(29)2
Conversions Between Number Systems
Conversions Between Number Systems
• Sometimes we need to convert our number system 
into another number system so that our machines 
or computers can understand our statements or 
logics.
• For example computer onlu understand Logic 0 or 
logic 1, than how it is going to understand number 
(14)10 ?
• Its mean we need to convert our number given in 
decimal, into Binary Number.
We will do all following Conversions
REMEMBER
• A number can be in whole form or with decimal 
point.

• Example: Without Decimal Point  (1009)10

• Example: With Decimal Point (11.21)10

• We will do both.
Important
• Weight of a number.

• What is weight of number given in decimal system 
(134)10?
૛ ૚ ૙
• (1x +(3x )+(4x )=(134)10

• Weight of a number in octal binay hexadecimal 
gives a number in decimal system.
Converting Binary, Octal or Hexadecimal 
to decimal
HELP TABLE FOR POWERS
NUMBERS WITHOUT DECIMAL POINT

• From Binary To Decimal (1101)2=(?)10

• ANS:13

• From Octal To Decimal (126)8=( ? )10

• ANS: (86)10

• From Hexadecimal To Decimal (A2)16=( ? )10

• ANS: (162)10
NUMBERS WITH DECIMAL POINT
• From Binary To Decimal (1101.1)2=(?)10

• ANS: (13.5)10

• From Octal To Decimal (126.2)8=( ? )10

• ANS: (86.25)10

• From Hexadecimal To Decimal (A2.10)16=( ? )10

• ANS: (162.0625)10
Any Number to binary
NUMBERS WITHOUT DECIMAL POINT
Convert following into binary:
• (124)8
• Ans: (1010100)2    
• (140)10
• Ans:(10001100)2
• (A4)16
• Ans:(10100100)2
• (19)8 **
• Ans: 9 is not in octal system 
Important
• REMEMBER FOLLOWING

• We know 

• So each number is 3 bit.
Important
• REMEMBER FOLLOWING

• We know 

• So each number is 4 bit.
HEXADECIMAL 4‐BIT TABLE
NUMBERS WITH DECIMAL POINT

• Convert following into binary:
• (124.3)8   
• Ans: (001 010 100.011)2     
• (140.5)10
• Ans: (10001100.1)2    
• (A4.7)16
• Ans: (1010 0100.0111)2    
Summary
• We have done:
– What is significance of digital system, why we need to 
design digital logics?
– We talked about number systems.
– We did following two conversions
• Any number system to decimal (With or without decimal).
• Any number to binary (With or without decimal).

Вам также может понравиться