Systems Architecture I

Slides:



Advertisements
Similar presentations
Lec 12Systems Architecture1 Systems Architecture Lecture 12: Design of the MIPS ALU Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan Some or all.
Advertisements

Spring 2013 Advising Starts this week! CS2710 Computer Organization1.
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved Floating-point Numbers.
Topics covered: Floating point arithmetic CSE243: Introduction to Computer Architecture and Hardware/Software Interface.
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.
Faculty of Computer Science © 2006 CMPUT 229 Floating Point Representation Operating with Real Numbers.
CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (2)
Computer ArchitectureFall 2007 © September 5, 2007 Karem Sakallah CS 447 – Computer Architecture.
1 CSE1301 Computer Programming Lecture 30: Real Number Representation.
CSE1301 Computer Programming Lecture 33: Real Number Representation
COE 308: Computer Architecture (T032) Dr. Marwan Abu-Amara Integer & Floating-Point Arithmetic (cont.) (Appendix A, Computer Architecture: A Quantitative.
ECEN 248 Integer Multiplication, Number Format Adopted from Copyright 2002 David H. Albonesi and the University of Rochester.
Computer Science 210 Computer Organization Floating Point Representation.
Systems Architecture Lecture 14: Floating Point Arithmetic
Introduction to Numerical Analysis I
CSE 111 Representing Numeric Data in a Computer Slides adapted from Dr. Kris Schindler.
August 15, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 12: Multiprocessors: Non-Uniform Memory Access * Jeremy R. Johnson.
Floating Point. Agenda  History  Basic Terms  General representation of floating point  Constructing a simple floating point representation  Floating.
Lec 13Systems Architecture1 Systems Architecture Lecture 13: Integer Multiplication and Division Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan.
1 Number Systems Lecture 10 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007.
April 23, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 9: Assemblers, Linkers, and Loaders * Jeremy R. Johnson Mon. April 23,
IEEE Arithmetic UC Berkeley Fall 2004, E77 Copyright 2005, Andy Packard. This work is licensed under the Creative.
Computer Arithmetic Floating Point. We need a way to represent –numbers with fractions, e.g., –very small numbers, e.g., –very large.
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
Computer Architecture Lecture 22 Fasih ur Rehman.
Oct. 25, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 9: Alternative Instruction Sets * Jeremy R. Johnson Wed. Oct. 25, 2000.
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Feb. 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 12: State Elements, Registers, and Memory * Jeremy R. Johnson Mon. Feb.
14/02/ Floating Point Representation Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker Presented.
Computer Architecture Lecture 11 Arithmetic Ralph Grishman Oct NYU.
CS 232: Computer Architecture II Prof. Laxmikant (Sanjay) Kale Floating point arithmetic.
August 13, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 11: Multiprocessors: Uniform Memory Access * Jeremy R. Johnson Monday,
Lec 11Systems Architecture1 Systems Architecture Lecture 11: Arithmetic for Computers Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan Some or all.
July 2, 2001Systems Architecture I1 Systems Architecture II (CS 282) Lab 3: State Elements, Registers, and Memory * Jeremy R. Johnson Monday July 2, 2001.
Jan. 5, 2000Systems Architecture II1 Machine Organization (CS 570) Lecture 2: Performance Evaluation and Benchmarking * Jeremy R. Johnson Wed. Oct. 4,
May 2, 2001System Architecture I1 Systems Architecture I (CS ) Lecture 11: Arithmetic for Computers * Jeremy R. Johnson May 2, 2001 *This lecture.
Fixed-point and floating-point numbers Ellen Spertus MCS 111 October 4, 2001.
May 22, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 14: A Simple Implementation of MIPS * Jeremy R. Johnson Mon. May 17, 2000.
June 20, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 1: Performance Evaluation and Benchmarking * Jeremy R. Johnson Wed.
FLOATING-POINT NUMBER REPRESENTATION
CSCI206 - Computer Organization & Programming
Introduction to Numerical Analysis I
Floating Point Representations
Computer Architecture & Operations I
Floating Point Number system corresponding to the decimal notation
CS 232: Computer Architecture II
Systems Architecture I
PRESENTED BY J.SARAVANAN. Introduction: Objective: To provide hardware support for floating point arithmetic. To understand how to represent floating.
CSCI206 - Computer Organization & Programming
Systems Architecture I
Floating Point Representation
Systems Architecture II
Systems Architecture I (CS ) Lecture 16: Exceptions
Systems Architecture I
Systems Architecture I
Systems Architecture II
Floating Point Arithmetic
How to represent real numbers
Computer Arithmetic Multiplication, Floating Point
Systems Architecture I
Systems Architecture I
Systems Architecture I (CS ) Lecture 17: Exceptions
Mathematical Preliminaries
COMS 161 Introduction to Computing
Systems Architecture II
CS 286 Computer Architecture & Organization
Systems Architecture I
Floating Point Arithmetic
Lecture 9: Shift, Mult, Div Fixed & Floating Point
Presentation transcript:

Systems Architecture I September 4, 1997 Systems Architecture I (CS 281-001) Lecture 14: Floating Point Arithmetic* Jeremy R. Johnson Mon. Nov. 20, 2000 *This lecture was derived from material in the text (sec. 4.8). All figures from Computer Organization and Design: The Hardware/Software Approach, Second Edition, by David Patterson and John Hennessy, are copyrighted material (COPYRIGHT 1998 MORGAN KAUFMANN PUBLISHERS, INC. ALL RIGHTS RESERVED). Nov. 20, 2000 Systems Architecture I

Systems Architecture I September 4, 1997 Introduction Objective: To provide hardware support for floating point arithmetic. To understand how to represent floating point numbers in the computer and how to perform arithmetic with them. Also to learn how to use floating point arithmetic in MIPS. Approximate arithmetic Finite Range Limited Precision Topics IEEE format for single and double precision floating point numbers Floating point addition and multiplication Support for floating point computation in MIPS Nov. 20, 2000 Systems Architecture I

Distribution of Floating Point Numbers 3 bit mantissa exponent {-1,0,1} 1 2 3 Nov. 20, 2000 Systems Architecture I

Representation of Floating Point Numbers IEEE 754 single precision 31 30 23 22 Sign Biased exponent Normalized Mantissa (implicit 24th bit) (-1)s  F  2E-127 Nov. 20, 2000 Systems Architecture I

Representation of Floating Point Numbers IEEE 754 double precision 31 30 20 19 Sign Biased exponent Normalized Mantissa (implicit 53rd bit) (-1)s  F  2E-1023 Nov. 20, 2000 Systems Architecture I

Floating Point Arithmetic fl(x) = nearest floating point number to x Relative error (precision = s digits) |x - fl(x)|/|x|  1/21-s for  = 2, 2-s Arithmetic x  y = fl(x+y) = (x + y)(1 +  ) for  < u x  y = fl(x  y)(1 +  ) for  < u Nov. 20, 2000 Systems Architecture I

Floating Point Addition Algorithm Nov. 20, 2000 Systems Architecture I

Floating Point Addition Hardware Nov. 20, 2000 Systems Architecture I

Floating Point Multiplication Algorithm Nov. 20, 2000 Systems Architecture I