SlideShare a Scribd company logo
1 of 20
Created by,
Vinoth Loganathan
RTL Design Engineer
Number Systems
Types of Number System
Number
System
Radix / Base
Decimal
2
Binary
10
Octal
8
Hexadecimal
16
Human Knowledge Recent
Processor / Controller
Old
Processors / Controllers
SpecifyingAddress
Created byVinoth Loganathan in interest ofVLSI Design
Guidance2
Decimal Number System
Base (also called radix) = 10
10 digits { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }
Digit Position
Integer & fraction
DigitWeight
Weight = (Base) Position
Magnitude
Sum of “Digit x Weight”
Created byVinoth Loganathan in interest ofVLSI Design
Guidance3
Binary Number System
Base = 2
2 digits { 0, 1 }, called binary digits or “bits”
Weights
Weight = (Base)
Position
Magnitude
Sum of “Bit x Weight”
Groups of bits 4 bits = Nibble
8 bits = Byte
Created byVinoth Loganathan in interest ofVLSI Design
Guidance4
Octal Number System
Base = 8
8 digits { 0, 1, 2, 3, 4, 5, 6, 7 }
Weights
Weight = (Base)
Position
Magnitude
Sum of “Digit x Weight”
Created byVinoth Loganathan in interest ofVLSI Design
Guidance5
Hexadecimal Number System
Base = 16
16 digits { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,A, B, C, D, E, F }
Weights
Weight = (Base)
Position
Magnitude
Sum of “Digit x Weight”
Created byVinoth Loganathan in interest ofVLSI Design
Guidance6
Conversion
Hexadecimal
Decimal Octal
Binary
Created byVinoth Loganathan in interest ofVLSI Design
Guidance7
Decimal Binary Octal
Hexa-
decimal
0 0 0 0
1 1 1 1
2 10 2 2
3 11 3 3
4 100 4 4
5 101 5 5
6 110 6 6
7 111 7 7
Decimal Binary Octal
Hexa-
decimal
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
Conversion Table
Created byVinoth Loganathan in interest ofVLSI Design
Guidance8
Base conversion from binary
Conversion to octal / hex
Binary: 10011110001
Octal: 10 | 011 | 110 | 001 = 23618
Hex: 100 | 1111 | 0001 = 4F116
Conversion to decimal
1012 = 1×22
+ 0×21
+ 1×20
= 510
Created byVinoth Loganathan in interest ofVLSI Design
Guidance9
Formulation of Decimal number
system
10K-1 10k-2 ∙ ∙ 102 101 100
N = ± SK-1 SK-2 ∙ ∙ S2 S1 S0
N = ± SK-1 X 10K-1 + SK-1 X 10k-2 + ∙∙∙ + S2 X 102 + S1 X 101 + S0 X 100
10K-1 10k-2 ∙ ∙ 101 100 . 10-1 . . .
N = ± SK-1 SK-2 ∙ ∙ S1 S0 . S-1
. . .
N = ± SK-1 X 10K-1 + ∙∙∙ + S0 X 100 . S-1 X 10-1 + S-2 X 10-2 ∙∙∙
The Base(10) will be replaced for other number systemCreated byVinoth Loganathan in interest ofVLSI Design
Guidance10
Base conversion from Decimal
Created byVinoth Loganathan in interest ofVLSI Design
Guidance11
Base conversion from decimal to
Hexadecimal
222 13 0
16 3567 16 222 16 13
32 16 0
36 62 13
32 48
47 14
32
15
(3567)10 = (DEF)16Created byVinoth Loganathan in interest ofVLSI Design
Guidance12
Addition and Subtraction
Decimal
Binary
11
1234
+ 5678
6912
5274
– 1638
3636
1 1
1011
+ 1010
10101
1011
– 0110
0101
Created byVinoth Loganathan in interest ofVLSI Design
Guidance13
Multiplication
Created byVinoth Loganathan in interest ofVLSI Design
Guidance14
How do we write negative binary
numbers
3 approaches:
• Sign and magnitude
• Ones-complement
• Twos-complement
All 3 approaches represent positive numbers in the same
way
Created byVinoth Loganathan in interest ofVLSI Design
Guidance15
Sign and magnitude
Most significant bit (MSB) is the sign bit
0 ≡ positive
1 ≡ negative
Remaining bits are the number's
magnitude
Two representations of for zero
+0 = 0000 and also –0 = 1000
0000
0001
0011
1111
1110
1100
1011
1010
1000 0111
0110
0100
0010
0101
1001
1101
+ 0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7– 0
– 1
– 2
– 3
– 4
– 5
– 6
– 7
Created byVinoth Loganathan in interest ofVLSI Design
Guidance16
Ones-complement
Negative number: Bitwise
complement of positive number
0111 ≡ 710
1000 ≡ –710
Disadvantage is it has two
representations for zero!
+0 = 0000 and also –0 = 1111
0000
0001
0011
1111
1110
1100
1011
1010
1000 0111
0110
0100
0010
0101
1001
1101
+ 0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7– 7
– 6
– 5
– 4
– 3
– 2
– 1
– 0
Created byVinoth Loganathan in interest ofVLSI Design
Guidance17
Twos-complement
Negative number: Bitwise
complement (Ones complement)
plus one
0111 ≡ 710
1001 ≡ –710
Benefits:
Simplifies arithmetic
Only one zero!
0000
0001
0011
1111
1110
1100
1011
1010
1000 0111
0110
0100
0010
0101
1001
1101
0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7– 8
– 7
– 6
– 5
– 4
– 3
– 2
– 1
Created byVinoth Loganathan in interest ofVLSI Design
Guidance18
BCD , Excess-3 , Gray codes
Created byVinoth Loganathan in interest ofVLSI Design
Guidance19
Created byVinoth Loganathan in interest ofVLSI Design
Guidance20

More Related Content

What's hot

Number system
Number systemNumber system
Number systemSajib
 
Number system and its conversions
Number system and its conversionsNumber system and its conversions
Number system and its conversionsShilpaKrishna6
 
11 octal number system
11   octal number system11   octal number system
11 octal number systemLee Chadwick
 
Introduction to the Binary Number System
Introduction to the Binary Number SystemIntroduction to the Binary Number System
Introduction to the Binary Number SystemJames Hamilton
 
Number system and codes
Number system and codesNumber system and codes
Number system and codesAbhiraj Bohra
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemISMT College
 
Number system
Number systemNumber system
Number systemkashee99
 
Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...ArtemKovera
 
Digital logic design lecture 01
Digital logic design   lecture 01Digital logic design   lecture 01
Digital logic design lecture 01FarhatUllah27
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notesKurenai Ryu
 

What's hot (20)

Number system
Number systemNumber system
Number system
 
Number system and its conversions
Number system and its conversionsNumber system and its conversions
Number system and its conversions
 
11 octal number system
11   octal number system11   octal number system
11 octal number system
 
Introduction to the Binary Number System
Introduction to the Binary Number SystemIntroduction to the Binary Number System
Introduction to the Binary Number System
 
Number system and codes
Number system and codesNumber system and codes
Number system and codes
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
Binary system ppt
Binary system pptBinary system ppt
Binary system ppt
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number system
 
Number system
Number systemNumber system
Number system
 
01.number systems
01.number systems01.number systems
01.number systems
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Binary codes
Binary codesBinary codes
Binary codes
 
Number System
Number SystemNumber System
Number System
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...
 
Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1
 
Digital logic design lecture 01
Digital logic design   lecture 01Digital logic design   lecture 01
Digital logic design lecture 01
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
 
8 number-system
8 number-system8 number-system
8 number-system
 
Number system
Number systemNumber system
Number system
 

Similar to Number system

Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptxAminaZahid16
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009lionking
 
digital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptxdigital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptxRameshK531901
 
NumberSystems.pptx
NumberSystems.pptxNumberSystems.pptx
NumberSystems.pptxvijayapraba1
 
NumberSystems.pptx
NumberSystems.pptxNumberSystems.pptx
NumberSystems.pptxvijayapraba1
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptxODAATUBE1
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptxamudhak10
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptxamudhak10
 
01.number systems
01.number systems01.number systems
01.number systemsrasha3
 
Digital Electronics – Unit I.pdf
Digital Electronics – Unit I.pdfDigital Electronics – Unit I.pdf
Digital Electronics – Unit I.pdfKannan Kanagaraj
 
08 Numeral systems
08 Numeral systems08 Numeral systems
08 Numeral systemsmaznabili
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpuWan Afirah
 

Similar to Number system (20)

Lec 02
Lec 02Lec 02
Lec 02
 
number system
number systemnumber system
number system
 
Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptx
 
Number system
Number systemNumber system
Number system
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
 
digital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptxdigital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptx
 
NumberSystems.pptx
NumberSystems.pptxNumberSystems.pptx
NumberSystems.pptx
 
NumberSystems.pptx
NumberSystems.pptxNumberSystems.pptx
NumberSystems.pptx
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Alu1
Alu1Alu1
Alu1
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
Numbering Systems
Numbering SystemsNumbering Systems
Numbering Systems
 
01.number systems
01.number systems01.number systems
01.number systems
 
Number system
Number systemNumber system
Number system
 
01.Number Systems
01.Number Systems01.Number Systems
01.Number Systems
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
Digital Electronics – Unit I.pdf
Digital Electronics – Unit I.pdfDigital Electronics – Unit I.pdf
Digital Electronics – Unit I.pdf
 
08 Numeral systems
08 Numeral systems08 Numeral systems
08 Numeral systems
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
 

Recently uploaded

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 

Recently uploaded (20)

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 

Number system

  • 1. Created by, Vinoth Loganathan RTL Design Engineer Number Systems
  • 2. Types of Number System Number System Radix / Base Decimal 2 Binary 10 Octal 8 Hexadecimal 16 Human Knowledge Recent Processor / Controller Old Processors / Controllers SpecifyingAddress Created byVinoth Loganathan in interest ofVLSI Design Guidance2
  • 3. Decimal Number System Base (also called radix) = 10 10 digits { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } Digit Position Integer & fraction DigitWeight Weight = (Base) Position Magnitude Sum of “Digit x Weight” Created byVinoth Loganathan in interest ofVLSI Design Guidance3
  • 4. Binary Number System Base = 2 2 digits { 0, 1 }, called binary digits or “bits” Weights Weight = (Base) Position Magnitude Sum of “Bit x Weight” Groups of bits 4 bits = Nibble 8 bits = Byte Created byVinoth Loganathan in interest ofVLSI Design Guidance4
  • 5. Octal Number System Base = 8 8 digits { 0, 1, 2, 3, 4, 5, 6, 7 } Weights Weight = (Base) Position Magnitude Sum of “Digit x Weight” Created byVinoth Loganathan in interest ofVLSI Design Guidance5
  • 6. Hexadecimal Number System Base = 16 16 digits { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,A, B, C, D, E, F } Weights Weight = (Base) Position Magnitude Sum of “Digit x Weight” Created byVinoth Loganathan in interest ofVLSI Design Guidance6
  • 7. Conversion Hexadecimal Decimal Octal Binary Created byVinoth Loganathan in interest ofVLSI Design Guidance7
  • 8. Decimal Binary Octal Hexa- decimal 0 0 0 0 1 1 1 1 2 10 2 2 3 11 3 3 4 100 4 4 5 101 5 5 6 110 6 6 7 111 7 7 Decimal Binary Octal Hexa- decimal 8 1000 10 8 9 1001 11 9 10 1010 12 A 11 1011 13 B 12 1100 14 C 13 1101 15 D 14 1110 16 E 15 1111 17 F Conversion Table Created byVinoth Loganathan in interest ofVLSI Design Guidance8
  • 9. Base conversion from binary Conversion to octal / hex Binary: 10011110001 Octal: 10 | 011 | 110 | 001 = 23618 Hex: 100 | 1111 | 0001 = 4F116 Conversion to decimal 1012 = 1×22 + 0×21 + 1×20 = 510 Created byVinoth Loganathan in interest ofVLSI Design Guidance9
  • 10. Formulation of Decimal number system 10K-1 10k-2 ∙ ∙ 102 101 100 N = ± SK-1 SK-2 ∙ ∙ S2 S1 S0 N = ± SK-1 X 10K-1 + SK-1 X 10k-2 + ∙∙∙ + S2 X 102 + S1 X 101 + S0 X 100 10K-1 10k-2 ∙ ∙ 101 100 . 10-1 . . . N = ± SK-1 SK-2 ∙ ∙ S1 S0 . S-1 . . . N = ± SK-1 X 10K-1 + ∙∙∙ + S0 X 100 . S-1 X 10-1 + S-2 X 10-2 ∙∙∙ The Base(10) will be replaced for other number systemCreated byVinoth Loganathan in interest ofVLSI Design Guidance10
  • 11. Base conversion from Decimal Created byVinoth Loganathan in interest ofVLSI Design Guidance11
  • 12. Base conversion from decimal to Hexadecimal 222 13 0 16 3567 16 222 16 13 32 16 0 36 62 13 32 48 47 14 32 15 (3567)10 = (DEF)16Created byVinoth Loganathan in interest ofVLSI Design Guidance12
  • 13. Addition and Subtraction Decimal Binary 11 1234 + 5678 6912 5274 – 1638 3636 1 1 1011 + 1010 10101 1011 – 0110 0101 Created byVinoth Loganathan in interest ofVLSI Design Guidance13
  • 14. Multiplication Created byVinoth Loganathan in interest ofVLSI Design Guidance14
  • 15. How do we write negative binary numbers 3 approaches: • Sign and magnitude • Ones-complement • Twos-complement All 3 approaches represent positive numbers in the same way Created byVinoth Loganathan in interest ofVLSI Design Guidance15
  • 16. Sign and magnitude Most significant bit (MSB) is the sign bit 0 ≡ positive 1 ≡ negative Remaining bits are the number's magnitude Two representations of for zero +0 = 0000 and also –0 = 1000 0000 0001 0011 1111 1110 1100 1011 1010 1000 0111 0110 0100 0010 0101 1001 1101 + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7– 0 – 1 – 2 – 3 – 4 – 5 – 6 – 7 Created byVinoth Loganathan in interest ofVLSI Design Guidance16
  • 17. Ones-complement Negative number: Bitwise complement of positive number 0111 ≡ 710 1000 ≡ –710 Disadvantage is it has two representations for zero! +0 = 0000 and also –0 = 1111 0000 0001 0011 1111 1110 1100 1011 1010 1000 0111 0110 0100 0010 0101 1001 1101 + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7– 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 Created byVinoth Loganathan in interest ofVLSI Design Guidance17
  • 18. Twos-complement Negative number: Bitwise complement (Ones complement) plus one 0111 ≡ 710 1001 ≡ –710 Benefits: Simplifies arithmetic Only one zero! 0000 0001 0011 1111 1110 1100 1011 1010 1000 0111 0110 0100 0010 0101 1001 1101 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7– 8 – 7 – 6 – 5 – 4 – 3 – 2 – 1 Created byVinoth Loganathan in interest ofVLSI Design Guidance18
  • 19. BCD , Excess-3 , Gray codes Created byVinoth Loganathan in interest ofVLSI Design Guidance19
  • 20. Created byVinoth Loganathan in interest ofVLSI Design Guidance20