Erik Jonsson School of Engineering and Computer Science FEARLESS Engineeringwww.utdallas.edu/~pervin EE/CE 2310 – HON/002 Introduction to Digital Systems.

Slides:



Advertisements
Similar presentations
ECE291 Computer Engineering II Lecture 11 Josh Potts University of Illinois at Urbana- Champaign.
Advertisements

COMP2130 Winter 2015 Storing signed numbers in memory.
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Representing fractions – Fixed point The problem: How to represent fractions with finite number of bits ?
Floating Point Numbers
Faculty of Computer Science © 2006 CMPUT 229 Floating Point Representation Operating with Real 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.
Major Numeric Data Types Unsigned Integers Signed Integer Alphanumeric Data – ASCII & UNICODE Floating Point Numbers.
COE 308: Computer Architecture (T032) Dr. Marwan Abu-Amara Integer & Floating-Point Arithmetic (cont.) (Appendix A, Computer Architecture: A Quantitative.
Floating Point Numbers
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.
Floating Point Numbers
Erik Jonsson School of Engineering and Computer Science FEARLESS Engineeringwww.utdallas.edu/~pervin EE/CE 2310 – HON/002 Introduction to Digital Systems.
CS1104-2aNumber Systems Supplementary Notes 1 Lecture 2: Number Systems Supplementary Notes  Complements Complements  Floating-point Numbers Floating-point.
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
Computer Architecture Lecture 3: Logical circuits, computer arithmetics Piotr Bilski.
Number Systems II Prepared by Dr P Marais (Modified by D Burford)
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Information Representation: Negative and Floating Point.
Number Systems So far we have studied the following integer number systems in computer Unsigned numbers Sign/magnitude numbers Two’s complement numbers.
Data Representation and Computer Arithmetic
Floating Point Numbers Topics –IEEE Floating Point Standard –Rounding –Floating Point Operations –Mathematical properties.
Floating Point. Agenda  History  Basic Terms  General representation of floating point  Constructing a simple floating point representation  Floating.
9.4 FLOATING-POINT REPRESENTATION
Floating Point Representations CDA 3101 Discussion Session 02.
Erik Jonsson School of Engineering and Computer Science FEARLESS Engineeringwww.utdallas.edu/~pervin EE/CE 2310 – HON/002 Introduction to Digital Systems.
1 Lecture 2  Complement  Floating Point Number  Character Encoding.
CSC 221 Computer Organization and Assembly Language
Erik Jonsson School of Engineering and Computer Science FEARLESS Engineeringwww.utdallas.edu/~pervin EE/CE 2310 – HON/002 Introduction to Digital Systems.
COMP201 Computer Systems Floating Point Numbers. Floating Point Numbers  Representations considered so far have a limited range dependent on the number.
1 Number Systems Lecture 10 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
1 COMS 161 Introduction to Computing Title: Numeric Processing Date: November 08, 2004 Lecture Number: 30.
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.
IT11004: Data Representation and Organization Floating Point Representation.
CS 232: Computer Architecture II Prof. Laxmikant (Sanjay) Kale Floating point arithmetic.
COMPUTER SCIENCE Data Representation and Machine Concepts Section 1.7 Instructor: Lin Chen Sept 2013.
Fixed-point and floating-point numbers Ellen Spertus MCS 111 October 4, 2001.
FLOATING-POINT NUMBER REPRESENTATION
Floating Points & IEEE 754.
Introduction to Numerical Analysis I
Floating Point Representations
EE/CE 2310 – HON/002 Introduction to Digital Systems
Computer Architecture & Operations I
Floating Point Representations
CSCI206 - Computer Organization & Programming
Recitation 4&5 and review 1 & 2 & 3
Floating Point Number system corresponding to the decimal notation
CS 232: Computer Architecture II
EE/CE 2310 – HON/002 Introduction to Digital Systems
PRESENTED BY J.SARAVANAN. Introduction: Objective: To provide hardware support for floating point arithmetic. To understand how to represent floating.
Chapter 6 Floating Point
Luddy Harrison CS433G Spring 2007
Number Representations
Floating Point Representation
CSCI206 - Computer Organization & Programming
CSCI206 - Computer Organization & Programming
How to represent real numbers
Faculty of Cybernetics, Statistics and Economic Informatics –
Representation of real numbers
COMS 161 Introduction to Computing
GCSE COMPUTER SCIENCE Topic 3 - Data 3.3 Logical and Arithmetic Shifts.
EE/CE 2310 – HON/002 Introduction to Digital Systems
Number Representations
Lecture 9: Shift, Mult, Div Fixed & Floating Point
Presentation transcript:

Erik Jonsson School of Engineering and Computer Science FEARLESS Engineeringwww.utdallas.edu/~pervin EE/CE 2310 – HON/002 Introduction to Digital Systems Tuesday: Review for Examination II Thursday

EXAMINATION II: 5 A PRIL 2012 (P) 5 Functions and Stacks 6 File and Character IO 7 Recursion (T) 8 Arithmetic 9 Flip-Flops (1-6) 10 Counters (1-4) 11 Shifts (1-3)

Serial-Load Shift Reg.

Parallel-Load Shift Reg.

C(n,k) = C(n-1,k) + C(n-1,k-1); Pascal Triangle

C(n,k) = C(n-1,k) + C(n-1,k-1); Order

P ASCAL T RIANGLE

Dynamic Programming

T IMING D IAGRAM

F = AC’D + BC + A’C

TIMING

EXAMINATION II: 5 April 2012 (P) 5 Functions and Stacks 6 File and Character IO 7 Recursion (T) 8 Arithmetic 9 Flip-Flops (1-6) 10 Counters (1-4) 11 Shifts (1-3)

Floating-Point Numbers IEEE Standard Our text only refers to the very similar IEEE Standard

Normalized Numbers: Decisions: Base, Sign, Exponent, Mantissa

Decisions: (32-bit words) Base: 2 Sign: Bit 31 (0 = pos, 1 = neg) Exponent: 8 bits (biased by -127 ; not 2’s complement or other) Mantissa: 23 remaining bits (with 1. understood to give 24 bit accuracy)

Decisions: (64-bit words) “double” Base: 2 Sign: Bit 31 of the first word (0 = pos, 1 = neg) Exponent: 11 bits (biased by ; not 2’s complement or other) Mantissa: 20+32=52 remaining bits (with 1. understood to give 33 bit accuracy)

Decisions: (128-bit words) “quad” Base: 2 Sign: Bit 31 of the first word (0 = pos, 1 = neg) Exponent: 15 bits (biased by ; not 2’s complement or other) Mantissa: 112 remaining bits (with 1. understood to give 33 bit accuracy)

Special Cases: Zero Denormalized numbers Positive and negative infinity NaN Some other decisions:

We cannot store the important number 1/10 exactly in a binary computer!