Number System Submitted by: Submitted to: Devashish Bhardwaj Miss.Hina

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #3 NUMBER SYSTEMS, OPERATION & CODES (PART 2)
CMP 101 Fundamentals of Computer and programming in C Rohit Khokher.
Chapter 1 Number Systems and Codes
James Tam Non decimal math: doing math with non-base 10 number systems Addition, subtraction and multiplication with binary, octal and hexadecimal.
SYEN 3330 Digital Systems Jung H. Kim Chapter 1 1 SYEN 3330 Digital Systems Chapter 1.
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
ECE 331 – Digital System Design
1 CSE-221 Digital Logic Design (DLD) Lecture-1: Digital Systems & Number Systems.
Number Systems and Arithmetic
© Copyright 2000 Indiana University Board of Trustees Proficiency Quiz Study Guide Note: The following slides are provided courtesy of Dr. Bob Orr (Computer.
BASICS OF COMPUTER APPLICATIONS ASB 102. UNIT 1 Introducing computer system  Number system  What is number system?  Types of number system  Their.
FIGURES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Mantıksal Tasarım – BBM231 M. Önder Efe
1 Computer Fundamental ITD1382 Coursework : 100% 1. Tests 2. Quizzes (Short) 3. Assignments Module Value : 3.0.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 1 – Number Systems and.
Digital Design: From Gates to Intelligent Machines
Chapter 3 Data Representation
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
NUMBER SYSTEM AND COMPUTER CODES Chapter 2. Prelude Fingers, sticks, and other things for counting were not enough! Counting large numbers Count in groups.
Supplemental Chapter Number Bases
NUMBER SYSTEM.
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
ABC/ Mathematics / Chapter 1 / TP / Rev 1 © 2003 General Physics Corporation OBJECTIVES 1.Without a calculator; ADD, SUBTRACT, MULTIPLY, and DIVIDE.
AEEE2031 Data Representation and Numbering Systems.
1 CS151 Introduction to Digital Design Chapter 1 Lecture 3.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
Introduction To Number Systems Binary System M. AL-Towaileb1.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 1 Tom Kaminski & Charles R.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
Overview 1-1 Information Representation
©2010 Cengage Learning SLIDES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION Click the mouse to move to the next page. Use the ESC key to exit.
CPS120: Introduction to Computer Science Computer Math: Addition and Subtraction.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
CS151 Introduction to Digital Design Chapter 1: Digital Systems and Information Lecture 2 1Created by: Ms.Amany AlSaleh.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
= 91 sum operation augend addend NOTE: Sometimes both the augend and addend are called addends. Sometimes the sum is called the total. Addition.
Week 1(Number System) Muhammad Ammad uddin Logic Design Lab I (CEN211)
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Logic and Computer Design Fundamentals
Digital Design Chapter One Digital Systems and Binary Numbers
Digital Systems and Number Systems
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Chapter 3 Data Representation
Number System conversions
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
SYEN 3330 Digital Systems Chapter 1 SYEN 3330 Digital Systems.
Number Systems Base 2, 10, 16.
Overview Digital Systems and Computer Systems
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Number Systems Lecture 2.
Digital Systems and Binary Numbers
Digital Logic Design (CSNB163)
ECE 301 – Digital Electronics
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Introduction To Number Systems
COE 202: Digital Logic Design Number Systems Part 2
Chapter 2 Number Systems.
Presentation transcript:

Number System Submitted by: Submitted to: Devashish Bhardwaj Miss.Hina 1615910 Asst. lect. Of B.Voc (sd) sem 1 Computer Department

Chapter 1 Number Systems and Codes

Number Systems (2) Binary numbers Digits = {0, 1} (11010.11)2 = 1 x 24 + 1 x 23 + 0 x 22 + 1 x 21 + 0 x 20 + 1 x 2-1 + 1 x 2-2 = (26.75)10 1 K (kilo) = 210 = 1,024, 1M (mega) = 220 = 1,048,576, 1G (giga) = 230 = 1,073,741,824 Octal numbers Digits = {0, 1, 2, 3, 4, 5, 6, 7} (127.4)8 = 1 x 82 + 2 x 81 + 7 x 80 + 4 x 8-1 = (87.5)10 Hexadecimal numbers Digits = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F} (B65F)16 = 11 x 163 + 6 x 162 + 5 x 161 + 15 x 160 = (46,687)10 Chapter 1

Number Systems (3) Important Number Systems (Table 1.1) Chapter 1

Arithmetic (1) Binary Arithmetic Addition 111011 Carries 101011 Augend + 11001 Addend 1000100 Subtraction 0 1 10 0 10 Borrows 1 0 0 1 0 1 Minuend - 1 1 0 1 1 Subtrahend 1 0 1 0 Chapter 1

Arithmetic (2) Multiplication Division 1 1 0 1 0 Multiplicand x 1 0 1 0 Multiplier 0 0 0 0 0 1 1 0 1 0 1 0 0 0 0 0 1 0 0 Product Chapter 1

Arithmetic (3) Octal Arithmetic (Use Table 1.4) Addition 1 1 1 Carries 5 4 7 1 Augend + 3 7 5 4 Addend 11445 Sum Subtraction 6 10 4 10 Borrows 7 4 5 1 Minuend - 5 6 4 3 Subtrahend 1 6 0 6 Difference Chapter 1

Arithmetic (4) Multiplication Division 326 Multiplicand x 67 Multiplier 2732 Partial products 2404 26772 Product Chapter 1

Arithmetic (5) Hexadecimal Arithmetic (Use Table 1.5) Addition 1 0 1 1 Carries 5 B A 9 Augend + D 0 5 8 Addend 1 2 C 0 1 Sum Subtraction 9 10 A 10 Borrows A 5 B 9 Minuend + 5 8 0 D Subtrahend 4 D A C Difference Series Substitution Method Expanded form of polynomial representation: N = an-1rn-1 + … + a0r0 + a-1r-1 + … + a-mr-m (1.3) Conversion Procedure (base A to base B) Represent the number in base A in the format of Eq. 1.3. Evaluate the series using base B arithmetic. Examples: (11010)2 ® ( ? )10 (627)8 ® ( ? )10 (11110.101)2 ® ( ? )8 (2AD.42)16 ® ( ? )10 Chapter 1

Arithmetic (6) Multiplication Division B9A5 Multiplicand x D50 Multiplier 3A0390 Partial products 96D61 9A76490 Product Chapter 1

Base Conversion (1) Series Substitution Method Expanded form of polynomial representation: N = an-1rn-1 + … + a0r0 + a-1r-1 + … + a-mr-m (1.3) Conversation Procedure (base A to base B) Represent the number in base A in the format of Eq. 1.3. Evaluate the series using base B arithmetic. Examples: (11010)2 ®( ? )10 N = 1´24 + 1´23 + 0´22 + 1´21 + 0´20 = (16)10 + (8)10 + 0 + (2)10 + 0 = (26)10 (627)8 ® ( ? )10 N = 6´82 + 2´81 + 7´80 = (384)10 + (16)10 + (7)10 = (407)10 Chapter 1

Base Conversion (3) Examples (315)10 = (473)8 (315)10 = (13B)16 Chapter 1

Base Conversion (5) Examples (0.479)10 = (0.3651…)8 MSD 3.832 ¬ 0.479 ´ 8 6.656 ¬ 0.832 ´ 8 5.248 ¬ 0.656 ´ 8 LSD 1.984 ¬ 0.248 ´ 8 … (0.479)10 = (0.0111…)2 MSD 0.9580 ¬ 0.479 ´ 2 1.9160 ¬ 0.9580 ´ 2 1.8320 ¬ 0.9160 ´ 2 LSD 1.6640 ¬ 0.8320 ´ 2 Chapter 1

Base Conversion (6) General Conversion Algorithm Algorithm 1.1 To convert a number N from base A to base B, use (a) the series substitution method with base B arithmetic, or (b) the radix divide or multiply method with base A arithmetic. Algorithm 1.2 (a) the series substitution method with base 10 arithmetic to convert N from base A to base 10, and (b) the radix divide or multiply method with decimal arithmetic to convert N from base 10 to base B. Algorithm 1.2 is longer, but easier and less error prone. Chapter 1

Base Conversion (7) Example (18.6)9 = ( ? )11 (a) Convert to base 10 using series substitution method: N10 = 1 ´ 91 + 8 ´ 90 + 6 ´ 9-1 = 9 + 8 + 0.666… = (17.666…)10 (b) Convert from base 10 to base 11 using radix divide and multiply method: 7.326 ¬ 0.666 ´ 11 3.586 ¬ 0.326 ´ 11 6.446 ¬ 0.586 ´ 11 N11 = (16.736 …)11 Chapter 1