CSCI 6307 Foundation of Systems – Exercise (2) Xiang Lian The University of Texas – Pan American Edinburg, TX 78539 1.

Slides:



Advertisements
Similar presentations
Spring 2013 Advising Starts this week! CS2710 Computer Organization1.
Advertisements

Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Lecture 16: Computer Arithmetic Today’s topic –Floating point numbers –IEEE 754 representations –FP arithmetic Reminder –HW 4 due Monday 1.
Binary Arithmetic Binary addition Binary subtraction
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3: IT Students.
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.
Number Systems Standard positional representation of numbers:
1 Lecture 3 Bit Operations Floating Point – 32 bits or 64 bits 1.
1 Module 2: Floating-Point Representation. 2 Floating Point Numbers ■ Significant x base exponent ■ Example:
Quiz 1.1 Convert the following unsigned binary numbers to their decimal equivalent: Number2 Number
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
Computer Science 210 Computer Organization Floating Point Representation.
Lecture 8 Floating point format
Simple Data Type Representation and conversion of numbers
Ch. 2 Floating Point Numbers
Computer Arithmetic. Instruction Formats Layout of bits in an instruction Includes opcode Includes (implicit or explicit) operand(s) Usually more than.
2-1 Chapter 2 - Data Representation Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Chapter Contents.
Review CAS CS210 Ying Ye Boston University. Logical expressions Truth table input: A, B, Coutput: D ABCD (~A)(~B)(~C)
Computer Architecture
ECE232: Hardware Organization and Design
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.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /14/2013 Lecture 16: Floating Point Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE.
CH09 Computer Arithmetic  CPU combines of ALU and Control Unit, this chapter discusses ALU The Arithmetic and Logic Unit (ALU) Number Systems Integer.
9.4 FLOATING-POINT REPRESENTATION
Floating Point Representations CDA 3101 Discussion Session 02.
Data Representation Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
1 Lecture 2  Complement  Floating Point Number  Character Encoding.
Floating Point Representation for non-integral numbers – Including very small and very large numbers Like scientific notation – –2.34 × –
Lecture 12: Integer Arithmetic and Floating Point CS 2011 Fall 2014, Dr. Rozier.
ITEC 1011 Introduction to Information Technologies 4. Floating Point Numbers Chapt. 5.
Integer & Floating Point Representations CDA 3101 Discussion Session 05.
Conversion to Larger Number of Bits Ex: Immediate Field (signed 16 bit) to 32 bit Positive numbers have implied 0’s to the left. So, put 16 bit number.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.
Lecture notes Reading: Section 3.4, 3.5, 3.6 Multiplication
1 COMS 161 Introduction to Computing Title: Numeric Processing Date: November 08, 2004 Lecture Number: 30.
CSCI 6307 Foundation of Systems Review: Midterm Exam Xiang Lian The University of Texas – Pan American Edinburg, TX 78539
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Chapter 3 Arithmetic for Computers. Chapter 3 — Arithmetic for Computers — 2 Arithmetic for Computers Operations on integers Addition and subtraction.
Floating Point Numbers Representation, Operations, and Accuracy CS223 Digital Design.
Data Representation: Floating Point for Real Numbers Computer Organization and Assembly Language: Module 11.
Numbers in Computers.
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.
Lecture No. 4 Computer Logic Design. Negative Number Representation 3 Options –Sign-magnitude –One’s Complement –Two’s Complement  used in computers.
Exercise 4.2 The basic single-cycle MIPS implementation in Figure 4.2 can only implement some instructions. New instructions can be added to an existing.
FLOATING-POINT NUMBER REPRESENTATION
Computer Science 210 Computer Organization
PRESENTED BY J.SARAVANAN. Introduction: Objective: To provide hardware support for floating point arithmetic. To understand how to represent floating.
Number Representations
Data Representation Data Types Complements Fixed Point Representation
Computer Science 210 Computer Organization
Arithmetic Logical Unit
ECEG-3202 Computer Architecture and Organization
CSCI 6307 Foundation of Systems – Exercise (1)
Number Representations
CSCI 6307 Foundation of Systems – Exercise (5)
Presentation transcript:

CSCI 6307 Foundation of Systems – Exercise (2) Xiang Lian The University of Texas – Pan American Edinburg, TX

Conversion Between Hexadecimal and Binary Numbers Please convert the following hexadecimal numbers to binary numbers – 2A (hex) – E9 (hex) – F100 (hex) 2

Conversion Between Hexadecimal and Binary Numbers (cont'd) Please convert the following binary numbers (2's complement) to hexadecimal numbers – (2) – (2) 3

Arithmetic Operations Please use 4 bits to perform arithmetic operations in binary representations, and tell whether there is any overflow – 1000 (2) (2) – 1001 (2) (2) – 0111 (2) (2) – 0110 (2) (2) – 7 (10) + 7 (10) 4

Conversion from Decimal Numbers to Binary Numbers Please convert the following decimal numbers to binary numbers – 12.5 – 30.2 –

Floating Point Representation Please give the binary representation of the floating point number, 12.5, assuming the IEEE 754 single precision format 6

Recall: IEEE Floating-Point Format 7 SExponentFraction single: 8 bits double: 11 bits single: 23 bits double: 52 bits S: sign bit (0  non-negative, 1  negative) Normalize significand: 1.0 ≤ |significand| < 2.0 – Always has a leading pre-binary-point 1 bit, so no need to represent it explicitly (hidden bit) – Significand is Fraction with the “1.” restored Exponent: excess representation: actual exponent + Bias – Ensures exponent is unsigned – Single: Bias = 127; Double: Bias = 1203

What is the clock cycle time of the datapath, if we only need to support ALU instructions? 8 I-Mem: 200ps Add: 70ps Mux: 20ps ALU: 90ps Regs: 90ps D-Mem: 250ps Sign-Extend: 15ps Control: 10ps

Classifications and Terminologies List the 2 types of elements in the logic design. Give an example for each type. List 5 stages of the instruction execution in the pipeline What is the maximum speedup when considering the pipeline? List 3 types of situations/hazards that cause bubbles in the pipeline 9