S. Mandayam/ CompArch2/ECE Dept./Rowan University Computer Architecture II: Specialized 0909.444.01/02 Fall 2001 John L. Schmalzel Shreekanth Mandayam.

Slides:



Advertisements
Similar presentations
Fixed Point Numbers The binary integer arithmetic you are used to is known by the more general term of Fixed Point arithmetic. Fixed Point means that we.
Advertisements

Faculty of Computer Science © 2006 CMPUT 229 Floating Point Representation Operating with Real Numbers.
Arithmetic & Logic Unit Does the calculations Everything else in the computer is there to service this unit Handles integers May handle floating point.
Major Numeric Data Types Unsigned Integers Signed Integer Alphanumeric Data – ASCII & UNICODE Floating Point Numbers.
1 Lecture 3 Bit Operations Floating Point – 32 bits or 64 bits 1.
S. Mandayam/ CompArch2/ECE Dept./Rowan University Computer Architecture II: Specialized /02 Fall 2001 John L. Schmalzel Shreekanth Mandayam.
Computer ArchitectureFall 2008 © August 25, CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (1)
S. Mandayam/ CompArch2/ECE Dept./Rowan University Computer Architecture II: Specialized /02 Fall 2001 John L. Schmalzel Shreekanth Mandayam.
Floating Point Numbers
1 ECE369 Chapter 3. 2 ECE369 Multiplication More complicated than addition –Accomplished via shifting and addition More time and more area.
S. Mandayam/ CompArch2/ECE Dept./Rowan University Computer Architecture II: Specialized /02 Fall 2001 John L. Schmalzel Shreekanth Mandayam.
Computer ArchitectureFall 2007 © August 29, 2007 Karem Sakallah CS 447 – Computer Architecture.
Computer ArchitectureFall 2008 © August 27, CS 447 – Computer Architecture Lecture 4 Computer Arithmetic (2)
S. Mandayam/ DIP/ECE Dept./Rowan University Digital Image Processing / Fall 2001 Shreekanth Mandayam ECE Department Rowan University.
School of Computer Science G51CSA 1 Computer Arithmetic.
IEEE Floating Point Numbers Overview Noah Mendelsohn Tufts University Web: COMP.
Computer Organization and Architecture Computer Arithmetic Chapter 9.
Computer Arithmetic Nizamettin AYDIN
Computer Arithmetic. Instruction Formats Layout of bits in an instruction Includes opcode Includes (implicit or explicit) operand(s) Usually more than.
Computer Architecture Lecture 3: Logical circuits, computer arithmetics Piotr Bilski.
Number Systems II Prepared by Dr P Marais (Modified by D Burford)
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
COMPUTER ORGANIZATIONS CSNB123 May 2014Systems and Networking1.
CH09 Computer Arithmetic  CPU combines of ALU and Control Unit, this chapter discusses ALU The Arithmetic and Logic Unit (ALU) Number Systems Integer.
Oct. 18, 2007SYSC 2001* - Fall SYSC2001-Ch9.ppt1 See Stallings Chapter 9 Computer Arithmetic.
9.4 FLOATING-POINT REPRESENTATION
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Floating Point Representation.
ECE 456 Computer Architecture
COMP201 Computer Systems Floating Point Numbers. Floating Point Numbers  Representations considered so far have a limited range dependent on the number.
Integer and Fixed Point P & H: Chapter 3
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.
Computer Architecture Lecture 22 Fasih ur Rehman.
Computer Arithmetic See Stallings Chapter 9 Sep 10, 2009
S. Mandayam/ CompArch2/ECE Dept./Rowan University Computer Architecture II: Specialized /02 Fall 2001 John L. Schmalzel Shreekanth Mandayam.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
CS 232: Computer Architecture II Prof. Laxmikant (Sanjay) Kale Floating point arithmetic.
10/7/2004Comp 120 Fall October 7 Read 5.1 through 5.3 Register! Questions? Chapter 4 – Floating Point.
1 CE 454 Computer Architecture Lecture 4 Ahmed Ezzat The Digital Logic, Ch-3.1.
Floating Point Arithmetic – Part I
Chapter 9 Computer Arithmetic
William Stallings Computer Organization and Architecture 8th Edition
Floating Points & IEEE 754.
CSCI206 - Computer Organization & Programming
William Stallings Computer Organization and Architecture 7th Edition
Luddy Harrison CS433G Spring 2007
Number Representations
Systems Architecture I
CSCI206 - Computer Organization & Programming
Systems Architecture I
Number Representations
Presentation transcript:

S. Mandayam/ CompArch2/ECE Dept./Rowan University Computer Architecture II: Specialized /02 Fall 2001 John L. Schmalzel Shreekanth Mandayam ECE Department Rowan University Lecture 1 October 25, 2001

S. Mandayam/ CompArch2/ECE Dept./Rowan UniversityPlan Intel P4 Quick Review: Integer Representation Sign-Magnitude Twos Complement Quick Review: Integer Arithmetic Floating Point Representation IEEE 754 Standard Floating Point Arithmetic IEEE 754 implementation

S. Mandayam/ CompArch2/ECE Dept./Rowan University Intel P4 Pentium® 4 Processor Pentium® III Processor Celeron™ Processor Mobile Processors A guide to help you make smart technology decisions. Digital Audio Players Home Networking PC Cameras PC Toys Wired Peripherals Wireless Peripherals PCs, products and ideas for the home Let us recommend the right PC for you Find out who sells Intel® processor- based PCs Shop Intel(SM) Store PC Buyer's Guide Vendor Fast Find Home Computing Product Selector

S. Mandayam/ CompArch2/ECE Dept./Rowan University ALU Inputs and Outputs

S. Mandayam/ CompArch2/ECE Dept./Rowan University Quick Review: Integer Representation Sign-Magnitude Twos Complement

S. Mandayam/ CompArch2/ECE Dept./Rowan University Twos Complement: Range -2 n-1 to 2 n-1 -1

S. Mandayam/ CompArch2/ECE Dept./Rowan University Geometric Depiction of Twos Complement Integers

S. Mandayam/ CompArch2/ECE Dept./Rowan University Hardware for Addition and Subtraction

S. Mandayam/ CompArch2/ECE Dept./Rowan University Floating Point: Example Sign bit Biased Exponent Significand/Mantissa/Fraction 8 bits 23 bits Sign of Mantissa

S. Mandayam/ CompArch2/ECE Dept./Rowan University Floating Point: Expressible Numbers

S. Mandayam/ CompArch2/ECE Dept./Rowan University IEEE 754 Standard Parameter Single Precision Single Extended Double Precision Double Extended Word width (bits)32>= 4364>= 79 Exponent width (bits)8>= 1111>= 15 Exponent bias127Unspecified1023Unspecified Max exponent127>= >= Min exponent-126<= <= Number range (base 10)10 -38, Unspecified , Unspecified Mantissa width (bits)23>= 3152>= 63 No. of exponents254Unspecified2046Unspecified No. of fractions2 23 Unspecified2 52 Unspecified No. of values1.98 x 2 31 Unspecified1.98 x 2 63 Unspecified

S. Mandayam/ CompArch2/ECE Dept./Rowan University IEEE 754 Numbers and NaNs NumberSign Biased Exponent FractionValue Positive zero0000 Negative zero100-0 Plus infinity0255 (all 1s)0Infinity Minus infinity1255 (all 1s)0-Infinity Quiet NaN0 or 1255 (all 1s)neq 0NaN Signaling NaN0 or 1255 (all 1s)neq 0NaN Positive normalized nonzero00 < e < 255f2 e-127 (1.f) Negative normalized nonzero10 < e < 255f-2 e-127 (1.f) Positive denormalized00f neq 02 e-126 (0.f) Negative denormalized10f neq 0-2 e-126 (0.f)

S. Mandayam/ CompArch2/ECE Dept./Rowan UniversityReferences William Stallings, Computer Organization and Architecture, 5 th Edition, Prentice-Hall, ftp://ftp.prenhall.com/pub/esm/computer_s cience.s-041/stallings/Slides/COA5e- Slides/ftp://ftp.prenhall.com/pub/esm/computer_s cience.s-041/stallings/Slides/COA5e- Slides/ IA-32 Intel Architecture Software Developer’s Manual Volume 1: Basic ArchitectureIA-32 Intel Architecture Software Developer’s Manual Volume 1: Basic Architecture

S. Mandayam/ CompArch2/ECE Dept./Rowan UniversitySummary