1 Number Systems Lecture 10 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007.

Slides:



Advertisements
Similar presentations
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Advertisements

Topics covered: Floating point arithmetic CSE243: Introduction to Computer Architecture and Hardware/Software Interface.
Lecture 16: Computer Arithmetic Today’s topic –Floating point numbers –IEEE 754 representations –FP arithmetic Reminder –HW 4 due Monday 1.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3: IT Students.
Datorteknik FloatingPoint bild 1 Floating point Number system corresponding to the decimal notation 1,837 * 10 significand exponent a great number of corresponding.
Representing fractions – Fixed point The problem: How to represent fractions with finite number of bits ?
COMP3221: Microprocessors and Embedded Systems Lecture 14: Floating Point Numbers Lecturer: Hui Wu Session 2, 2004.
1 Lecture 9: Floating Point Today’s topics:  Division  IEEE 754 representations  FP arithmetic Reminder: assignment 4 will be posted later today.
Floating Point Numbers. CMPE12cGabriel Hugh Elkaim 2 Floating Point Numbers Registers for real numbers usually contain 32 or 64 bits, allowing 2 32 or.
1 CSE1301 Computer Programming Lecture 30: Real Number Representation.
Floating Point Numbers. CMPE12cCyrus Bazeghi 2 Floating Point Numbers Registers for real numbers usually contain 32 or 64 bits, allowing 2 32 or 2 64.
CSE1301 Computer Programming Lecture 33: Real Number Representation
Dr Damian Conway Room 132 Building 26
Chapter 5 Floating Point Numbers. Real Numbers l Floating point representation is used whenever the number to be represented is outside the range of integer.
1 Lecture 3 Bit Operations Floating Point – 32 bits or 64 bits 1.
CSE 378 Floating-point1 How to represent real numbers In decimal scientific notation –sign –fraction –base (i.e., 10) to some power Most of the time, usual.
1 Module 2: Floating-Point Representation. 2 Floating Point Numbers ■ Significant x base exponent ■ Example:
Floating Point Numbers
1/8/ L24 IEEE Floating Point Basics Copyright Joanne DeGroat, ECE, OSU1 IEEE Floating Point The IEEE Floating Point Standard and execution.
Simple Data Type Representation and conversion of numbers
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
Computer Organization and Architecture Computer Arithmetic Chapter 9.
NUMBER REPRESENTATION CHAPTER 3 – part 3. ONE’S COMPLEMENT REPRESENTATION CHAPTER 3 – part 3.
Fixed-Point Arithmetics: Part II
Number Systems So far we have studied the following integer number systems in computer Unsigned numbers Sign/magnitude numbers Two’s complement numbers.
Computer Architecture
Fundamental of Computer Architecture By Panyayot Chaikan November 01, 2003.
Ch.3 - Computer Organization BIT Presentation 5.
1/8/ L24 IEEE Floating Point Basics Copyright Joanne DeGroat, ECE, OSU1 IEEE Floating Point The IEEE Floating Point Standard and execution.
Data Representation - Part II. Characters A variable may not be a non-numerical type Character is the most common non- numerical type in a programming.
Floating Point. Agenda  History  Basic Terms  General representation of floating point  Constructing a simple floating point representation  Floating.
S. Rawat I.I.T. Kanpur. Floating-point representation IEEE numbers are stored using a kind of scientific notation. ± mantissa * 2 exponent We can represent.
Floating Point (a brief look) We need a way to represent –numbers with fractions, e.g., –very small numbers, e.g., –very large numbers,
Computer Science Engineering B.E.(4 th sem) c omputer system organization Topic-Floating and decimal arithmetic S ubmitted to– Prof. Shweta Agrawal Submitted.
9.4 FLOATING-POINT REPRESENTATION
Floating Point Representations CDA 3101 Discussion Session 02.
1 Lecture 2  Complement  Floating Point Number  Character Encoding.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Lecture notes Reading: Section 3.4, 3.5, 3.6 Multiplication
Computer Arithmetic Floating Point. We need a way to represent –numbers with fractions, e.g., –very small numbers, e.g., –very large.
Computer Architecture Lecture 22 Fasih ur Rehman.
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Floating Point Numbers Representation, Operations, and Accuracy CS223 Digital Design.
Data Representation: Floating Point for Real Numbers Computer Organization and Assembly Language: Module 11.
IT11004: Data Representation and Organization Floating Point Representation.
Computer Architecture Lecture 11 Arithmetic Ralph Grishman Oct NYU.
COMPUTER SCIENCE Data Representation and Machine Concepts Section 1.7 Instructor: Lin Chen Sept 2013.
Representation of Data (Part II) Computer Studies Notes: chapter 19 Ma King Man.
Lecture 6: Floating Point Number Representation Information Representation: Floating Point Number Representation Lecture # 7.
Fixed-point and floating-point numbers Ellen Spertus MCS 111 October 4, 2001.
Floating Point Representations
Lecture 6. Fixed and Floating Point Numbers
Fundamentals of Computer Science
Computer Architecture & Operations I
Floating Point Representations
Integer Division.
Lecture 9: Floating Point
Floating Point Number system corresponding to the decimal notation
CSCI206 - Computer Organization & Programming
Number Representations
Systems Architecture I
Floating Point Arithmetic
How to represent real numbers
Systems Architecture I
COMS 161 Introduction to Computing
Numbers with fractions Could be done in pure binary
Number Representations
Floating Point Arithmetic
Lecture 9: Shift, Mult, Div Fixed & Floating Point
Presentation transcript:

1 Number Systems Lecture 10 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007

2 Binary Representations What kind of numbers do you know how to represent using binary representations?

3 Fractional Numbers Fixed-Point Floating-Point

4 Fixed-Point Numbers How do you represent using an 8-bit binary representation with 4 integer bits and 4 fraction bits?

5 Fixed-Point Numbers How do you represent using an 8-bit binary representation with 4 integer bits and 4 fraction bits?

6 Floating-Point Numbers Like scientific notation

7 Floating-Point Numbers How do you represent the value using a 32-bit floating point representation?

8 Floating-Point Numbers

9 Floating-Point Example How do you represent the value using a 32-bit floating point representation?

10 Floating-Point Numbers: Special Cases How do you represent the value 0 using IEEE bit floating-point notation?

11 Floating-Point Numbers: Precision Single-Precision: –32-bit notation –1 sign bit, 8 exponent bits, 23 fraction bits –bias = 127 Double-Precision: –64-bit notation –1 sign bit, 11 exponent bits, 52 fraction bits –bias = 1023

12 Floating-Point Numbers: Rounding Overflow, Underflow Rounding modes: –down –up –toward zero –to nearest

13 Floating-Point Addition 1.Extract exponent and fraction bits 2.Prepend leading 1 to form mantissa 3.Compare exponents 4.Shift smaller mantissa if necessary 5.Add mantissas 6.Normalize mantissa and adjust exponent if necessary 7.Round result 8.Assemble exponent and fraction back into floating- point format

14 Floating-Point Addition: Example Add the following floating-point numbers: Start by representing the numbers in IEEE 754 single- precision floating-point notation.

15 Floating-Point Addition: Example

16 Next Time Sequential Building Blocks Memory Arrays