Overview Introduction Data representation Fixed Point Representation

Slides:



Advertisements
Similar presentations
Topics covered: Floating point arithmetic CSE243: Introduction to Computer Architecture and Hardware/Software Interface.
Advertisements

Floating Point (FLP) Representation A Floating Point value: f = m*r**e Where: m – mantissa or fractional r – base or radix, usually r = 2 e - exponent.
COMP3221: Microprocessors and Embedded Systems Lecture 14: Floating Point Numbers Lecturer: Hui Wu Session 2, 2004.
Floating Point Numbers
Floating Point Numbers. CMPE12cGabriel Hugh Elkaim 2 Floating Point Numbers Registers for real numbers usually contain 32 or 64 bits, allowing 2 32 or.
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.
Booth’s Algorithm.
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.
COE 308: Computer Architecture (T032) Dr. Marwan Abu-Amara Integer & Floating-Point Arithmetic (cont.) (Appendix A, Computer Architecture: A Quantitative.
Floating Point Numbers
Representing Real Numbers Using Floating Point Notation Lecture 6 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
1 Module 2: Floating-Point Representation. 2 Floating Point Numbers ■ Significant x base exponent ■ Example:
Floating Point Numbers.  Floating point numbers are real numbers.  In Java, this just means any numbers that aren’t integers (whole numbers)  For example…
Lecture 8 Floating point format
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
Factional Values What is 0.75 in binary?. How could we represent fractions? In decimal: – As fractions : 1/5.
2-1 Chapter 2 - Data Representation Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Chapter Contents.
Computer Architecture
COMPSCI 210 Semester Tutorial 1
9.4 FLOATING-POINT REPRESENTATION
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
Figure 1.1 Block diagram of a digital computer. Functional Units.
The Teacher CP4 Binary and all that… CP4 Revision.
ITEC 1011 Introduction to Information Technologies 4. Floating Point Numbers Chapt. 5.
The Teacher CP4 Binary and all that… CP4 Revision.
1 Number Systems Lecture 10 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007.
Fractions in Binary.
CSPP58001 Floating Point Numbers. CSPP58001 Floating vs. fixed point Floating point refers to a binary decimal representation where there is not a fixed.
Floating Point in Binary 1.Place Value Chart:
Floating Point Binary A2 Computing OCR Module 2509.
Floating Point Numbers
IT1004: Data Representation and Organization Negative number representation.
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.
ESO 208A/ESO 218 LECTURE 2 JULY 31, ERRORS MODELING OUTPUTS QUANTIFICATION TRUE VALUE APPROXIMATE VALUE.
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.
DATA REPRESENTATION Data Types Complements Fixed Point Representations
1 CE 454 Computer Architecture Lecture 4 Ahmed Ezzat The Digital Logic, Ch-3.1.
FLOATING-POINT NUMBER REPRESENTATION
CSCI206 - Computer Organization & Programming
Floating Point Numbers
Nat 4/5 Computing Science Lesson 1: Binary
Department of Computer Science Georgia State University
Fundamentals of Computer Science
Introduction To Computer Science
DATA REPRESENTATION Data Types Complements Fixed Point Representations
CSE 102 Introduction to Computer Engineering
Overview Introduction Logic Gates Flip Flops Registers Counters
PRESENTED BY J.SARAVANAN. Introduction: Objective: To provide hardware support for floating point arithmetic. To understand how to represent floating.
Overview Introduction Data representation Fixed Point Representation
Luddy Harrison CS433G Spring 2007
CSCI206 - Computer Organization & Programming
Number Representations
Data Representation Data Types Complements Fixed Point Representation
EEL 3705 / 3705L Digital Logic Design
DATA REPRESENTATION Data Types Complements Fixed Point Representations
Starter Using the fingers on only one hand, what is the highest number you can count to? Rules: You must start at 1 You must count sequentially (i.e.
Storing Integers and Fractions
Representation of real numbers
DATA REPRESENTATION Data Types Complements Fixed Point Representations
COMS 161 Introduction to Computing
CS 286 Computer Architecture & Organization
DATA REPRESENTATION Data Types Complements Fixed Point Representations
Chapter3 Fixed Point Representation
Numbers with fractions Could be done in pure binary
39 32 Exponent Sign 31 Mantissa 30 Operations are perfomred with an implied binary point between bits 31 and 30. When the implied most significant.
Number Representations
Presentation transcript:

Overview Introduction Data representation Fixed Point Representation Data Representation 1 Lecture 5 Overview Introduction Data representation Fixed Point Representation Integer Representation Floating Point Representation Normalization CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT

Floating Point Representation Data Representation 2 Lecture 5 Floating Point Representation The location of the fractional point is not fixed to a certain location The range of the represent able numbers is wide F = EM mn ekek-1 ... e0 mn-1mn-2 … m0 . m-1 … m-m sign exponent mantissa - Mantissa Signed fixed point number, either an integer or a fractional number - Exponent Designates the position of the radix point Decimal Value V(F) = V(M) * RV(E) V stands for Value M: Mantissa E: Exponent R: Radix CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT

Floating Point Representation Data Representation 3 Lecture 5 Floating Point Representation Example .1234567 04 sign mantissa exponent ==> +.1234567 x 10+04 Example A binary number +1001.11 in 16-bit floating point number representation (6-bit exponent and 10-bit fractional mantissa) 0 000100 100111000 0 000101 010011100 Note: In Floating Point Number representation, only Mantissa(M) and Exponent(E) are explicitly represented. The Radix(R) and the position of the Radix Point are implied. Exponent Sign or Mantissa CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT

Floating Point Representation-Normalization Data Representation 4 Lecture 5 Floating Point Representation-Normalization A Floating Point number is said to be normalized if the most significant digit of the mantissa is nonzero E.g. Binary number 00011010 is not normalized CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT