SlideShare a Scribd company logo
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Digital Electronics and Logic Design

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

NUMBER SYSTEMS
Many number systems are in use in digital technology. The most common
are the decimal, binary, octal, and hexadecimal systems. The decimal
system is clearly the most familiar to us because it is a tool that we use
every day. Examining some of its characteristics will help us to better
understand the other systems. In the next few pages we shall introduce
four numerical representation systems that are used in the digital
system. There are other systems, which we will look at briefly.
• Decimal
• Binary
• Octal
• Hexadecimal
2
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Decimal System
• The decimal system is composed of 10 numerals or symbols. These 10
symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Using these symbols as digits of a
number, we can express any quantity. The decimal system is also called
the base-10 system because it has 10 digits.
103

102

101

100

=1000

=100

=10

=1

Most Significant Digit

10-1
.

Decimal point

10-2

10-3

=0.1

=0.01

=0.001
Least Significant
Digit

3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Binary System
• In the binary system, there are only two symbols or possible digit values, 0
and 1. This base-2 system can be used to represent any quantity that can
be represented in decimal or other base system.

23

22

21

20

=8

=4

=2

=1

Most Significant Digit

2-1
.

Binary point

2-2

2-3

=0.5

=0.25

=0.125
Least Significant
Digit

4
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Digital Electronics and Logic Design

1. Number Systems

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Common Number Systems
System

Base Symbols

Used by
humans?

Used in
computers?

Decimal

10

0, 1, … 9

Yes

No

Binary

2

0, 1

No

Yes

Octal

8

0, 1, … 7

No

No

Hexadecimal

16

0, 1, … 9,
A, B, … F

No

No
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Quantities/Counting (1 of 3)
Decimal
0
1
2
3
4
5
6
7

HexaBinary Octal decimal
0
0
0
1
1
1

10
11
100
101
110
111

2
3
4
5
6
7

2
3
4
5
6
7

p. 33
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Quantities/Counting (2 of 3)
Decimal
8
9
10
11
12
13
14
15

HexaBinary Octal decimal
1000 10
8
1001 11
9

1010
1011
1100
1101
1110
1111

12
13
14
15
16
17

A
B
C
D
E
F
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Quantities/Counting (3 of 3)
Decimal
16
17

18
19
20
21
22
23

HexaBinary Octal decimal
10000 20
10
10001 21
11

10010
10011
10100
10101
10110
10111

22
23
24
25
26
27

12
13
14
15
16
17

Etc.
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Conversion Among Bases
• The possibilities:
Decimal

Binary

Octal

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Quick Example

2510 = 110012 = 318 = 1916
Base
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Decimal to Decimal (just for fun)
Decimal

Octal

Binary

Hexadecimal

Next slide…
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Weight

12510 =>

5 x 100=
5
2 x 101= 20
1 x 102= 100
125

Base

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Binary to Decimal
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Binary to Decimal
• Technique
– Multiply each bit by 2n, where n is the “weight” of
the bit
– The weight is the position of the bit, starting from
0 on the right
– Add the results
Subject Name
Digital Electronics and Logic Design

Bit “0”

1010112 =>

Code
DEL-244

Example
1 x 20 =
1 x 21
0 x 22
1 x 23
0 x 24
1 x 25

1
=
2
=
0
=
8
=
0
= 32
4310

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Octal to Decimal
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Octal to Decimal
• Technique
– Multiply each bit by 8n, where n is the “weight” of
the bit
– The weight is the position of the bit, starting from
0 on the right
– Add the results
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Example
7248 =>

4 x 80 =
2 x 81 =
7 x 82 =

4
16
448
46810

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Hexadecimal to Decimal
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Hexadecimal to Decimal
• Technique
– Multiply each bit by 16n, where n is the “weight”
of the bit
– The weight is the position of the bit, starting from
0 on the right
– Add the results
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Example
ABC16 =>

C x 160 = 12 x
1 =
12
B x 161 = 11 x 16 = 176
A x 162 = 10 x 256 = 2560
274810

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Decimal to Binary
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Decimal to Binary
• Technique
– Divide by two, keep track of the remainder
– First remainder is bit 0 (LSB, least-significant bit)
– Second remainder is bit 1
– Etc.
Subject Name
Digital Electronics and Logic Design

12510 = ?2

Code
DEL-244

Credit Hours
3

2 125
Example
62
1
2

31

0

15

1

7

1

2

3

1

2

1

1

0

1

2
2

2

12510 = 11111012
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Octal to Binary
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Octal to Binary
• Technique
– Convert each octal digit to a 3-bit equivalent
binary representation
Subject Name
Digital Electronics and Logic Design

7058 = ?2

Code
DEL-244

Credit Hours
3

Example
7

0

5

111 000 101

7058 = 1110001012
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Hexadecimal to Binary
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Hexadecimal to Binary
• Technique
– Convert each hexadecimal digit to a 4-bit
equivalent binary representation

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Example

10AF16 = ?2

1

0

A

F

0001 0000 1010 1111

10AF16 = 00010000101011112
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Decimal to Octal
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Decimal to Octal
• Technique
– Divide by 8
– Keep track of the remainder

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

123410 = ?8

Code
DEL-244

Credit Hours
3

Example
8
8
8
8

1234
154

2

19

2

2

3

0

2

123410 = 23228
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Decimal to Hexadecimal
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Decimal to Hexadecimal
• Technique
– Divide by 16
– Keep track of the remainder

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

123410 = ?16

Code
DEL-244

Credit Hours
3

Example
16

16

1234
77

16

4

13 = D

0

4

2

123410 = 4D216
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Binary to Octal
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Binary to Octal
• Technique
– Group bits in threes, starting on right
– Convert to octal digits

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

10110101112 = ?8

Code
DEL-244

Credit Hours
3

Example
1 011 010 111

1

3

2

7

10110101112 = 13278
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Binary to Hexadecimal
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Binary to Hexadecimal
• Technique
– Group bits in fours, starting on right
– Convert to hexadecimal digits

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

10101110112 = ?16

Credit Hours
3

Example

10 1011 1011

2

B

B

10101110112 = 2BB16
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Octal to Hexadecimal
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Octal to Hexadecimal
• Technique
– Use binary as an intermediary

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Example

10768 = ?16
1

0

7

6

001

000

111

110

2

3

E

10768 = 23E16
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Hexadecimal to Octal
Decimal

Octal

Binary

Hexadecimal

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Hexadecimal to Octal
• Technique
– Use binary as an intermediary

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Example

1F0C16 = ?8
1

F

0

C

0001

1111

0000

1100

1

7

4

1

4

1F0C16 = 174148
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Exercise – Convert ...HexaDecimal
33

Binary

Octal

decimal

1110101

703
1AF
Don’t use a calculator!

Skip answer

Answer
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Answer

Exercise – Convert …HexaDecimal
33

Binary
100001

Octal
41

decimal

117

1110101

165

75

451

111000011

703

1C3

431

110101111

657

1AF

21
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Common Powers (1 of 2)
Power

• Base 10

Preface

Symbol

Value

10-12

pico

p

.000000000001

10-9

nano

n

.000000001

10-6

micro

10-3

milli

m

.001

103

kilo

k

1000

106

mega

M

1000000

109

giga

G

1000000000

1012

tera

T

1000000000000

.000001
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Common Powers (2 of 2)
Power

Symbol

Value

210

kilo

k

1024

220

mega

M

1048576

230

• Base 2

Preface

Giga

G

1073741824

• What is the value of “k”, “M”, and “G”?
• In computing, particularly w.r.t. memory,
the base-2 interpretation generally applies
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

In the lab…
1. Double click on My Computer
2. Right click on C:
3. Click on Properties

Example

/ 230 =
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Exercise – Free Space
• Determine the “free space” on all drives on a
Free space
Drive
machine in the lab Bytes
GB
A:
C:
D:
E:
etc.
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Review – multiplying powers
ab

ac = ab+c

• For common bases, add powers

26

210 = 216 = 65,536
or…

26

210 = 64

210 = 64k
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Binary Addition (1 of 2)
• Two 1-bit values
A
0
0
1
1

B
0
1
0
1

A+B
0
1
1
10
“two”

pp. 3638
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Binary Addition (2 of 2)
• Two n-bit values
– Add individual bits
– Propagate carries
1
1
10101
– E.g.,
+ 11001
101110

21
+ 25
46

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Multiplication (1 of 3)
• Decimal (just for fun) 35
x 105
175
000
35
3675
pp. 39
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Multiplication (2 of 3)
• Binary, two 1-bit values
A
B
0
0
1
1

0
1
0
1

A B
0
0
0
1

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Multiplication (3 of 3)
• Binary, two n-bit values
1110
– As with decimal values
x 1011
– E.g.,
1110
1110
0000
1110
10011010

Credit Hours
3
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Fractions
• Decimal to decimal (just for fun)
3.14 =>

4 x 10-2 = 0.04
1 x 10-1 = 0.1
3 x 100 = 3
3.14

pp. 4650
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Fractions
10.1011 =>
1 x
• Binary to decimal

2-4 = 0.0625
1 x 2-3 =
0 x 2-2 =
1 x 2-1 =
0 x 20 =
1 x 21 =

0.125
0.0
0.5
0.0
2.0
2.6875

pp. 4650
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Fractions
3.14579

• Decimal to binary

11.001001...

Credit Hours
3

.14579
x
2
0.29158
x
2
0.58316
x
2
1.16632
x
2
0.33264
x
2
0.66528
x
2
1.33056
etc.
p. 50
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Exercise – Convert ...
Decimal
29.8

Binary

Octal

Credit Hours
3

Hexadecimal

101.1101
3.07

C.82
Don’t use a calculator!

Skip answer

Answer
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Answer

Exercise – Convert …
Decimal
29.8

Binary
Octal
11101.110011… 35.63…

Hexadecimal

1D.CC…

5.8125

101.1101

5.64

5.D

3.109375

11.000111

3.07

3.1C

12.5078125

1100.10000010

14.404

C.82
Subject Name
Digital Electronics and Logic Design

Code
DEL-244

Credit Hours
3

Thank you

Next topic

More Related Content

What's hot

Digital notes
Digital notesDigital notes
Digital notes
stivengo2
 
01 indirect indexed_addressing_and_arrays_sp15
01 indirect indexed_addressing_and_arrays_sp1501 indirect indexed_addressing_and_arrays_sp15
01 indirect indexed_addressing_and_arrays_sp15
John Todora
 

What's hot (20)

Lecture 01 dld 2018
Lecture 01 dld  2018Lecture 01 dld  2018
Lecture 01 dld 2018
 
Ip basics
Ip basicsIp basics
Ip basics
 
Digital notes
Digital notesDigital notes
Digital notes
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
 
Objective Questions Digital Electronics
Objective Questions Digital ElectronicsObjective Questions Digital Electronics
Objective Questions Digital Electronics
 
Digital design chap 1
Digital design  chap 1Digital design  chap 1
Digital design chap 1
 
Logic design and switching theory
Logic design and switching theoryLogic design and switching theory
Logic design and switching theory
 
Chapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsChapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital Systems
 
Number system logic gates
Number system logic gatesNumber system logic gates
Number system logic gates
 
Vhdl introduction
Vhdl introductionVhdl introduction
Vhdl introduction
 
Parallel adders
Parallel addersParallel adders
Parallel adders
 
Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Dee2034 chapter 2 boolean algebra part a
Dee2034 chapter 2 boolean algebra part aDee2034 chapter 2 boolean algebra part a
Dee2034 chapter 2 boolean algebra part a
 
Digital Logic & Design
Digital Logic & DesignDigital Logic & Design
Digital Logic & Design
 
01 indirect indexed_addressing_and_arrays_sp15
01 indirect indexed_addressing_and_arrays_sp1501 indirect indexed_addressing_and_arrays_sp15
01 indirect indexed_addressing_and_arrays_sp15
 
Data Reprersentation
Data Reprersentation  Data Reprersentation
Data Reprersentation
 
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCETDigital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
 
Chapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSIChapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSI
 
LOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAVLOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAV
 

Viewers also liked

Flip flop& RAM ROM
Flip flop& RAM ROMFlip flop& RAM ROM
Flip flop& RAM ROM
Bala Ganesh
 
Encoders and Decoders
Encoders and DecodersEncoders and Decoders
Encoders and Decoders
Nic JM
 
Error Detection and Correction - Data link Layer
Error Detection and Correction - Data link LayerError Detection and Correction - Data link Layer
Error Detection and Correction - Data link Layer
Abdullaziz Tagawy
 

Viewers also liked (20)

Bcd to excess 3 code converter
Bcd to excess 3 code converterBcd to excess 3 code converter
Bcd to excess 3 code converter
 
karnaugh maps
karnaugh mapskarnaugh maps
karnaugh maps
 
Flip flop& RAM ROM
Flip flop& RAM ROMFlip flop& RAM ROM
Flip flop& RAM ROM
 
The BCD to excess-3 converter
The BCD to excess-3 converterThe BCD to excess-3 converter
The BCD to excess-3 converter
 
Math aruthmetic geometric series
Math aruthmetic geometric seriesMath aruthmetic geometric series
Math aruthmetic geometric series
 
01.number systems
01.number systems01.number systems
01.number systems
 
Full Custom IC Design Implementation of Priority Encoder
Full Custom IC Design Implementation of Priority EncoderFull Custom IC Design Implementation of Priority Encoder
Full Custom IC Design Implementation of Priority Encoder
 
Full custom digital ic design of priority encoder
Full custom digital ic design of priority encoderFull custom digital ic design of priority encoder
Full custom digital ic design of priority encoder
 
Multiplexer
MultiplexerMultiplexer
Multiplexer
 
Encoder
EncoderEncoder
Encoder
 
Encoder
EncoderEncoder
Encoder
 
Multiplexer & de multiplexer
Multiplexer & de multiplexerMultiplexer & de multiplexer
Multiplexer & de multiplexer
 
Encoders and Decoders
Encoders and DecodersEncoders and Decoders
Encoders and Decoders
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
multiplexer and d-multiplexer
multiplexer and d-multiplexermultiplexer and d-multiplexer
multiplexer and d-multiplexer
 
Error Detection and Correction - Data link Layer
Error Detection and Correction - Data link LayerError Detection and Correction - Data link Layer
Error Detection and Correction - Data link Layer
 
Rain Water Harvesting- its simple!!!
Rain Water Harvesting- its simple!!!Rain Water Harvesting- its simple!!!
Rain Water Harvesting- its simple!!!
 
Number system
Number systemNumber system
Number system
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 

Similar to DEL-244Chep i

Number systems
Number systemsNumber systems
Number systems
Kumar
 
Kaizen cso002 l1
Kaizen cso002 l1Kaizen cso002 l1
Kaizen cso002 l1
asslang
 

Similar to DEL-244Chep i (20)

microprocessor
microprocessormicroprocessor
microprocessor
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.ppt
 
ITC lecture 3.pptx
ITC lecture 3.pptxITC lecture 3.pptx
ITC lecture 3.pptx
 
chapter 1.pptx
chapter 1.pptxchapter 1.pptx
chapter 1.pptx
 
Number systems
Number systemsNumber systems
Number systems
 
DSD.pptx
DSD.pptxDSD.pptx
DSD.pptx
 
Number systems
Number systemsNumber systems
Number systems
 
B.sc cs-ii -u-1.1 digital logic circuits, digital component floting and fixed...
B.sc cs-ii -u-1.1 digital logic circuits, digital component floting and fixed...B.sc cs-ii -u-1.1 digital logic circuits, digital component floting and fixed...
B.sc cs-ii -u-1.1 digital logic circuits, digital component floting and fixed...
 
Mca i-u-1.1 digital logic circuits, digital component floting and fixed point
Mca i-u-1.1 digital logic circuits, digital component floting and fixed pointMca i-u-1.1 digital logic circuits, digital component floting and fixed point
Mca i-u-1.1 digital logic circuits, digital component floting and fixed point
 
digital logic circuits, digital component floting and fixed point
digital logic circuits, digital component floting and fixed pointdigital logic circuits, digital component floting and fixed point
digital logic circuits, digital component floting and fixed point
 
Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...
Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...
Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...
 
Kaizen cso002 l1
Kaizen cso002 l1Kaizen cso002 l1
Kaizen cso002 l1
 
Mazidi Presentation.pdf
Mazidi Presentation.pdfMazidi Presentation.pdf
Mazidi Presentation.pdf
 
Cse115 lecture01numbersystems
Cse115 lecture01numbersystemsCse115 lecture01numbersystems
Cse115 lecture01numbersystems
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
DDCArv_Ch1.pptx
DDCArv_Ch1.pptxDDCArv_Ch1.pptx
DDCArv_Ch1.pptx
 
Basic arithmetic, instruction execution and program
Basic arithmetic, instruction execution and programBasic arithmetic, instruction execution and program
Basic arithmetic, instruction execution and program
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 
Number Systems
Number SystemsNumber Systems
Number Systems
 

More from Bala Ganesh (20)

DDL,DML,1stNF
DDL,DML,1stNFDDL,DML,1stNF
DDL,DML,1stNF
 
sfdfds
sfdfdssfdfds
sfdfds
 
Dbms chapter viii
Dbms chapter viiiDbms chapter viii
Dbms chapter viii
 
Dbms chapter vii
Dbms chapter viiDbms chapter vii
Dbms chapter vii
 
Dbms chapter v
Dbms chapter vDbms chapter v
Dbms chapter v
 
Dbms chapter iv
Dbms chapter ivDbms chapter iv
Dbms chapter iv
 
Dbms chapter iii
Dbms chapter iiiDbms chapter iii
Dbms chapter iii
 
Dmbs chapter vi
Dmbs chapter viDmbs chapter vi
Dmbs chapter vi
 
Dbms chapter ii
Dbms chapter iiDbms chapter ii
Dbms chapter ii
 
Dbms chap i
Dbms chap iDbms chap i
Dbms chap i
 
Software engineering Questions and Answers
Software engineering Questions and AnswersSoftware engineering Questions and Answers
Software engineering Questions and Answers
 
Software testing
Software testingSoftware testing
Software testing
 
Design
DesignDesign
Design
 
Comp 107 cep 8
Comp 107 cep 8Comp 107 cep 8
Comp 107 cep 8
 
Comp 107 cep 7
Comp 107 cep 7Comp 107 cep 7
Comp 107 cep 7
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
Software Requirements
Software RequirementsSoftware Requirements
Software Requirements
 
Comp107 chep6
Comp107 chep6Comp107 chep6
Comp107 chep6
 
Comp 111chp iv vi
Comp 111chp iv viComp 111chp iv vi
Comp 111chp iv vi
 
Comp 111 cep ii
Comp 111 cep iiComp 111 cep ii
Comp 111 cep ii
 

Recently uploaded

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 

Recently uploaded (20)

2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 

DEL-244Chep i

  • 1. Subject Name Digital Electronics and Logic Design Code DEL-244 Digital Electronics and Logic Design Credit Hours 3
  • 2. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 NUMBER SYSTEMS Many number systems are in use in digital technology. The most common are the decimal, binary, octal, and hexadecimal systems. The decimal system is clearly the most familiar to us because it is a tool that we use every day. Examining some of its characteristics will help us to better understand the other systems. In the next few pages we shall introduce four numerical representation systems that are used in the digital system. There are other systems, which we will look at briefly. • Decimal • Binary • Octal • Hexadecimal 2
  • 3. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Decimal System • The decimal system is composed of 10 numerals or symbols. These 10 symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Using these symbols as digits of a number, we can express any quantity. The decimal system is also called the base-10 system because it has 10 digits. 103 102 101 100 =1000 =100 =10 =1 Most Significant Digit 10-1 . Decimal point 10-2 10-3 =0.1 =0.01 =0.001 Least Significant Digit 3
  • 4. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Binary System • In the binary system, there are only two symbols or possible digit values, 0 and 1. This base-2 system can be used to represent any quantity that can be represented in decimal or other base system. 23 22 21 20 =8 =4 =2 =1 Most Significant Digit 2-1 . Binary point 2-2 2-3 =0.5 =0.25 =0.125 Least Significant Digit 4
  • 5. Subject Name Digital Electronics and Logic Design Code DEL-244 Digital Electronics and Logic Design 1. Number Systems Credit Hours 3
  • 6. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Common Number Systems System Base Symbols Used by humans? Used in computers? Decimal 10 0, 1, … 9 Yes No Binary 2 0, 1 No Yes Octal 8 0, 1, … 7 No No Hexadecimal 16 0, 1, … 9, A, B, … F No No
  • 7. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Quantities/Counting (1 of 3) Decimal 0 1 2 3 4 5 6 7 HexaBinary Octal decimal 0 0 0 1 1 1 10 11 100 101 110 111 2 3 4 5 6 7 2 3 4 5 6 7 p. 33
  • 8. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Quantities/Counting (2 of 3) Decimal 8 9 10 11 12 13 14 15 HexaBinary Octal decimal 1000 10 8 1001 11 9 1010 1011 1100 1101 1110 1111 12 13 14 15 16 17 A B C D E F
  • 9. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Quantities/Counting (3 of 3) Decimal 16 17 18 19 20 21 22 23 HexaBinary Octal decimal 10000 20 10 10001 21 11 10010 10011 10100 10101 10110 10111 22 23 24 25 26 27 12 13 14 15 16 17 Etc.
  • 10. Subject Name Digital Electronics and Logic Design Code DEL-244 Conversion Among Bases • The possibilities: Decimal Binary Octal Hexadecimal Credit Hours 3
  • 11. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Quick Example 2510 = 110012 = 318 = 1916 Base
  • 12. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Decimal to Decimal (just for fun) Decimal Octal Binary Hexadecimal Next slide…
  • 13. Subject Name Digital Electronics and Logic Design Code DEL-244 Weight 12510 => 5 x 100= 5 2 x 101= 20 1 x 102= 100 125 Base Credit Hours 3
  • 14. Subject Name Digital Electronics and Logic Design Code DEL-244 Binary to Decimal Decimal Octal Binary Hexadecimal Credit Hours 3
  • 15. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Binary to Decimal • Technique – Multiply each bit by 2n, where n is the “weight” of the bit – The weight is the position of the bit, starting from 0 on the right – Add the results
  • 16. Subject Name Digital Electronics and Logic Design Bit “0” 1010112 => Code DEL-244 Example 1 x 20 = 1 x 21 0 x 22 1 x 23 0 x 24 1 x 25 1 = 2 = 0 = 8 = 0 = 32 4310 Credit Hours 3
  • 17. Subject Name Digital Electronics and Logic Design Code DEL-244 Octal to Decimal Decimal Octal Binary Hexadecimal Credit Hours 3
  • 18. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Octal to Decimal • Technique – Multiply each bit by 8n, where n is the “weight” of the bit – The weight is the position of the bit, starting from 0 on the right – Add the results
  • 19. Subject Name Digital Electronics and Logic Design Code DEL-244 Example 7248 => 4 x 80 = 2 x 81 = 7 x 82 = 4 16 448 46810 Credit Hours 3
  • 20. Subject Name Digital Electronics and Logic Design Code DEL-244 Hexadecimal to Decimal Decimal Octal Binary Hexadecimal Credit Hours 3
  • 21. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Hexadecimal to Decimal • Technique – Multiply each bit by 16n, where n is the “weight” of the bit – The weight is the position of the bit, starting from 0 on the right – Add the results
  • 22. Subject Name Digital Electronics and Logic Design Code DEL-244 Example ABC16 => C x 160 = 12 x 1 = 12 B x 161 = 11 x 16 = 176 A x 162 = 10 x 256 = 2560 274810 Credit Hours 3
  • 23. Subject Name Digital Electronics and Logic Design Code DEL-244 Decimal to Binary Decimal Octal Binary Hexadecimal Credit Hours 3
  • 24. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Decimal to Binary • Technique – Divide by two, keep track of the remainder – First remainder is bit 0 (LSB, least-significant bit) – Second remainder is bit 1 – Etc.
  • 25. Subject Name Digital Electronics and Logic Design 12510 = ?2 Code DEL-244 Credit Hours 3 2 125 Example 62 1 2 31 0 15 1 7 1 2 3 1 2 1 1 0 1 2 2 2 12510 = 11111012
  • 26. Subject Name Digital Electronics and Logic Design Code DEL-244 Octal to Binary Decimal Octal Binary Hexadecimal Credit Hours 3
  • 27. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Octal to Binary • Technique – Convert each octal digit to a 3-bit equivalent binary representation
  • 28. Subject Name Digital Electronics and Logic Design 7058 = ?2 Code DEL-244 Credit Hours 3 Example 7 0 5 111 000 101 7058 = 1110001012
  • 29. Subject Name Digital Electronics and Logic Design Code DEL-244 Hexadecimal to Binary Decimal Octal Binary Hexadecimal Credit Hours 3
  • 30. Subject Name Digital Electronics and Logic Design Code DEL-244 Hexadecimal to Binary • Technique – Convert each hexadecimal digit to a 4-bit equivalent binary representation Credit Hours 3
  • 31. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Example 10AF16 = ?2 1 0 A F 0001 0000 1010 1111 10AF16 = 00010000101011112
  • 32. Subject Name Digital Electronics and Logic Design Code DEL-244 Decimal to Octal Decimal Octal Binary Hexadecimal Credit Hours 3
  • 33. Subject Name Digital Electronics and Logic Design Code DEL-244 Decimal to Octal • Technique – Divide by 8 – Keep track of the remainder Credit Hours 3
  • 34. Subject Name Digital Electronics and Logic Design 123410 = ?8 Code DEL-244 Credit Hours 3 Example 8 8 8 8 1234 154 2 19 2 2 3 0 2 123410 = 23228
  • 35. Subject Name Digital Electronics and Logic Design Code DEL-244 Decimal to Hexadecimal Decimal Octal Binary Hexadecimal Credit Hours 3
  • 36. Subject Name Digital Electronics and Logic Design Code DEL-244 Decimal to Hexadecimal • Technique – Divide by 16 – Keep track of the remainder Credit Hours 3
  • 37. Subject Name Digital Electronics and Logic Design 123410 = ?16 Code DEL-244 Credit Hours 3 Example 16 16 1234 77 16 4 13 = D 0 4 2 123410 = 4D216
  • 38. Subject Name Digital Electronics and Logic Design Code DEL-244 Binary to Octal Decimal Octal Binary Hexadecimal Credit Hours 3
  • 39. Subject Name Digital Electronics and Logic Design Code DEL-244 Binary to Octal • Technique – Group bits in threes, starting on right – Convert to octal digits Credit Hours 3
  • 40. Subject Name Digital Electronics and Logic Design 10110101112 = ?8 Code DEL-244 Credit Hours 3 Example 1 011 010 111 1 3 2 7 10110101112 = 13278
  • 41. Subject Name Digital Electronics and Logic Design Code DEL-244 Binary to Hexadecimal Decimal Octal Binary Hexadecimal Credit Hours 3
  • 42. Subject Name Digital Electronics and Logic Design Code DEL-244 Binary to Hexadecimal • Technique – Group bits in fours, starting on right – Convert to hexadecimal digits Credit Hours 3
  • 43. Subject Name Digital Electronics and Logic Design Code DEL-244 10101110112 = ?16 Credit Hours 3 Example 10 1011 1011 2 B B 10101110112 = 2BB16
  • 44. Subject Name Digital Electronics and Logic Design Code DEL-244 Octal to Hexadecimal Decimal Octal Binary Hexadecimal Credit Hours 3
  • 45. Subject Name Digital Electronics and Logic Design Code DEL-244 Octal to Hexadecimal • Technique – Use binary as an intermediary Credit Hours 3
  • 46. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Example 10768 = ?16 1 0 7 6 001 000 111 110 2 3 E 10768 = 23E16
  • 47. Subject Name Digital Electronics and Logic Design Code DEL-244 Hexadecimal to Octal Decimal Octal Binary Hexadecimal Credit Hours 3
  • 48. Subject Name Digital Electronics and Logic Design Code DEL-244 Hexadecimal to Octal • Technique – Use binary as an intermediary Credit Hours 3
  • 49. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Example 1F0C16 = ?8 1 F 0 C 0001 1111 0000 1100 1 7 4 1 4 1F0C16 = 174148
  • 50. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Exercise – Convert ...HexaDecimal 33 Binary Octal decimal 1110101 703 1AF Don’t use a calculator! Skip answer Answer
  • 51. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Answer Exercise – Convert …HexaDecimal 33 Binary 100001 Octal 41 decimal 117 1110101 165 75 451 111000011 703 1C3 431 110101111 657 1AF 21
  • 52. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Common Powers (1 of 2) Power • Base 10 Preface Symbol Value 10-12 pico p .000000000001 10-9 nano n .000000001 10-6 micro 10-3 milli m .001 103 kilo k 1000 106 mega M 1000000 109 giga G 1000000000 1012 tera T 1000000000000 .000001
  • 53. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Common Powers (2 of 2) Power Symbol Value 210 kilo k 1024 220 mega M 1048576 230 • Base 2 Preface Giga G 1073741824 • What is the value of “k”, “M”, and “G”? • In computing, particularly w.r.t. memory, the base-2 interpretation generally applies
  • 54. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 In the lab… 1. Double click on My Computer 2. Right click on C: 3. Click on Properties Example / 230 =
  • 55. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Exercise – Free Space • Determine the “free space” on all drives on a Free space Drive machine in the lab Bytes GB A: C: D: E: etc.
  • 56. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Review – multiplying powers ab ac = ab+c • For common bases, add powers 26 210 = 216 = 65,536 or… 26 210 = 64 210 = 64k
  • 57. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Binary Addition (1 of 2) • Two 1-bit values A 0 0 1 1 B 0 1 0 1 A+B 0 1 1 10 “two” pp. 3638
  • 58. Subject Name Digital Electronics and Logic Design Code DEL-244 Binary Addition (2 of 2) • Two n-bit values – Add individual bits – Propagate carries 1 1 10101 – E.g., + 11001 101110 21 + 25 46 Credit Hours 3
  • 59. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Multiplication (1 of 3) • Decimal (just for fun) 35 x 105 175 000 35 3675 pp. 39
  • 60. Subject Name Digital Electronics and Logic Design Code DEL-244 Multiplication (2 of 3) • Binary, two 1-bit values A B 0 0 1 1 0 1 0 1 A B 0 0 0 1 Credit Hours 3
  • 61. Subject Name Digital Electronics and Logic Design Code DEL-244 Multiplication (3 of 3) • Binary, two n-bit values 1110 – As with decimal values x 1011 – E.g., 1110 1110 0000 1110 10011010 Credit Hours 3
  • 62. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Fractions • Decimal to decimal (just for fun) 3.14 => 4 x 10-2 = 0.04 1 x 10-1 = 0.1 3 x 100 = 3 3.14 pp. 4650
  • 63. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Fractions 10.1011 => 1 x • Binary to decimal 2-4 = 0.0625 1 x 2-3 = 0 x 2-2 = 1 x 2-1 = 0 x 20 = 1 x 21 = 0.125 0.0 0.5 0.0 2.0 2.6875 pp. 4650
  • 64. Subject Name Digital Electronics and Logic Design Code DEL-244 Fractions 3.14579 • Decimal to binary 11.001001... Credit Hours 3 .14579 x 2 0.29158 x 2 0.58316 x 2 1.16632 x 2 0.33264 x 2 0.66528 x 2 1.33056 etc. p. 50
  • 65. Subject Name Digital Electronics and Logic Design Code DEL-244 Exercise – Convert ... Decimal 29.8 Binary Octal Credit Hours 3 Hexadecimal 101.1101 3.07 C.82 Don’t use a calculator! Skip answer Answer
  • 66. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Answer Exercise – Convert … Decimal 29.8 Binary Octal 11101.110011… 35.63… Hexadecimal 1D.CC… 5.8125 101.1101 5.64 5.D 3.109375 11.000111 3.07 3.1C 12.5078125 1100.10000010 14.404 C.82
  • 67. Subject Name Digital Electronics and Logic Design Code DEL-244 Credit Hours 3 Thank you Next topic