Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 61 Today’s class Floating point numbers Computer systems organization.

Slides:



Advertisements
Similar presentations
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
Advertisements

Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved Floating-point Numbers.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3: IT Students.
1 Review Chpt 2 and 3 Five components of a computer Input Output Memory Arithmetic & Logic Unit (ALU) Control Two types of information Data and instruction.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Computer Systems Organization
Computer Systems Organization Chapter 2 Some slides © 2006 Pearson Education Inc, all rights reserved.
Storage of Bits Computers represent information as patterns of bits
Organization of a Simple Computer. Computer Systems Organization  The CPU (Central Processing Unit) is the “brain” of the computer. Fetches instructions.
1 Part I: Machine Architecture 4 A major process in the development of a science is the construction of theories that are confirmed or rejected by experimentation.
Chapter 2 - Computer Organization CPU organization –Basic Elements and Principles –Parallelism Memory –Storage Hierarchy I/O –Fast survey of devices Character.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Simple Data Type Representation and conversion of numbers
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
Information Representation (Level ISA3) Floating point numbers.
5-Stage Pipelining Fetch Instruction (FI) Fetch Operand (FO) Decode Instruction (DI) Write Operand (WO) Execution Instruction (EI) S3S3 S4S4 S1S1 S2S2.
Computer Arithmetic. Instruction Formats Layout of bits in an instruction Includes opcode Includes (implicit or explicit) operand(s) Usually more than.
Lecture 11: Machine Processing Intro to IT COSC1078 Introduction to Information Technology Lecture 11 Machine Processing James Harland
HARDWARE: CPU & STORAGE How to Buy a Multimedia Computer System.
IT253: Computer Organization
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
Fundamental of Computer Architecture By Panyayot Chaikan November 01, 2003.
Data Representation and Computer Arithmetic
Topic 2 – Introduction to Computer Codes. Computer Codes A code is a systematic use of a given set of symbols for representing information. As an example,
College of Engineering Representing Numbers in a Computer Section B, Spring 2003 COE1361: Computing for Engineers COE1361: Computing for Engineers 1 COE1361:
Computer Systems Organization CS 1428 Foundations of Computer Science.
Floating Point. Agenda  History  Basic Terms  General representation of floating point  Constructing a simple floating point representation  Floating.
Data Representation in Computer Systems
A Simple Computer consists of a Processor (CPU-Central Processing Unit), Memory, and I/O Memory Input Output Arithmetic Logic Unit Control Unit I/O Processor.
Chapter 4 MARIE: An Introduction to a Simple Computer.
CSC 221 Computer Organization and Assembly Language
Organization of a Simple Computer The organization of a simple computer with one CPU and two I/O devices.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
CS Computer Architecture Section 600 Dr. Angela Guercio Fall 2010.
The Central Processing Unit (CPU) and the Machine Cycle.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.
Computer Architecture and Organization
Today’s topics Architecture overview Architecture overview Machine instructions Machine instructions Instruction Execution Cycle Instruction Execution.
I/O Memory Reg File ALU Program Counter Instruction Register Control Interconnect Control 1)PC contains mem address of Instruction, 2)From memory, instr.
 Lecture 2 Processor Organization  Control needs to have the  Ability to fetch instructions from memory  Logic and means to control instruction sequencing.
CSCI 6307 Foundation of Systems Review: Midterm Exam Xiang Lian The University of Texas – Pan American Edinburg, TX 78539
Chapter 3 Arithmetic for Computers. Chapter 3 — Arithmetic for Computers — 2 Arithmetic for Computers Operations on integers Addition and subtraction.
Monday, January 14 Homework #1 is posted on the website Homework #1 is posted on the website Due before class, Jan. 16 Due before class, Jan. 16.
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
Data Representation: Floating Point for Real Numbers Computer Organization and Assembly Language: Module 11.
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
Chapter 1 Representing Data in a Computer. 1.1 Binary and Hexadecimal Numbers.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Answer CHAPTER FOUR.
1 CE 454 Computer Architecture Lecture 4 Ahmed Ezzat The Digital Logic, Ch-3.1.
Floating Point Representations
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Microprocessor Systems Design I
Computer Organization
Data Representation Data Types Complements Fixed Point Representation
CS149D Elements of Computer Science
Dr. Clincy Professor of CS
Arithmetic Logical Unit
Dr. Clincy Professor of CS
Introduction to Microprocessor Programming
Review In last lecture, done with unsigned and signed number representation. Introduced how to represent real numbers in float format.
Computer Organization and Assembly Language
1.6) Storing Integer: 1.7) storing fraction:
Presentation transcript:

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 61 Today’s class Floating point numbers Computer systems organization

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 62 Principles of Floating Point Must separate range from precision Use scientific notation n = f × 10 e  f is the fraction or mantissa  e is the exponent (a positive or negative integer) Examples 3.14 = × 10 1 = 3.14 × = 0.1 × 10 −5 = 1.0 × 10 − = × 10 4 = × 10 3

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 63 Seven Regions of Real Number Line Large negative numbers less than −0.999 × Negative numbers between −0.999 × and −0.100 × 10 −99 Small negative numbers, magnitudes less than × 10 −99 Zero Small positive numbers, magnitudes less than × 10 −99 Positive numbers between × 10 −99 and × Large positive numbers greater than × 10 99

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 64 Seven Regions of Real Number Line

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 65 Approximate Bounds of Expressible Floating-Point Numbers (Unnormalized)

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 66 Normalized numbers Examples of normalized floating-point numbers.

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 67 IEEE Floating-Point Standard 754 IEEE floating-point formats. (a) Single precision. (b) Double precision.

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 68 IEEE Floating-point Standard 754 Characteristics of IEEE floating-point numbers.

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 69 IEEE Numerical Types

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 610 In-Class Exercise Convert the following numbers to IEEE single- precision format. Give the results as 8 hexadecimal digits.  9.0  Convert the following IEEE single-precision floating-point numbers from hex to decimal:  42E48000  3F880000

Computer Systems Organization

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 612 Organization of a simple computer

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 613 CPU Organization

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 614 Instructions Register-memory  Allow memory words to be fetched into registers  Allow registers to be stored to memory words Register-register  Fetches two operands from the registers  Brings them to the ALU input registers  Performs some operation on them  Stores the result back in one of the registers

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 615 Instruction Execution Steps Fetch next instruction from memory into instruction register Change program counter to point to next instruction Determine type of instruction just fetched If instruction uses a word in memory, determine where it is Fetch word, if needed, into CPU register Execute the instruction Go to step 1 to begin executing the following instruction

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 616 Design Principles for Modern Computers All instructions are directly executed by hardware Maximize the rate at which instructions are issued Instructions should be easy to decode Only loads and stores should reference memory Provide plenty of registers

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 617 Instruction-Level Parallelism

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 618 Pipelining effect Suppose the cycle time of the machine is 2 ns For the 5-stage pipeline shown in the previous slide, it takes 10 ns for an instruction to completely execute It appears this machine can run at 100 MIPS However, it’s much better than this At every clock cycle, starting with the 5 th, one instruction completes execution This gives an actual processing rate of 500 MIPS

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 619 Dual Pipelines If one pipeline is good, two must be better!

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 620 Superscalar Architecture

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 621 Processor-Level Parallelism

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 622 Multiprocessors A single-bus multiprocessor A multicomputer with local memories

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 623 Memory Most basic unit of memory is the bit, a 0 or 1 (binary digit) Smallest addressable unit of memory in a computer is the byte (containing 8 bits) Words are groups of bytes, typically 4 bytes (32 bits) to a word

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 624 Big- and Little-Endian Bytes can be numbered left-to-right or right-to left

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 625 Byte Ordering

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 626 Parity Memories can have occasional errors Errors will be bit inversions Can detect one-bit errors by adding an extra bit called a parity bit This bit is set or cleared so that the total number of 1’s in the word is either even or odd, depending on which type of parity is being used

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 627 Codewords Let one memory word consist of m data bits Let’s add r redundant (or check or parity) bits Total length is n bits, where n = m + r The n-bit unit is called a codeword Given two codewords you can determine how many bits differ by computing the exclusive or (XOR) of the two codewords and counting how many 1s are in the result This sum is called the Hamming distance

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 628 How Many Check Bits? There are 2 m valid memory words Each valid memory word has n illegal codewords 1 bit away from it Thus, each of the 2 m valid words needs n+1 bit patterns dedicated to it Total number of bit patterns is 2 n So, (n+1)2 m ≤ 2 n, or (m+r+1) ≤ 2 r

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 629 Number of check bits for a code that can correct a single error

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 630 Error Correcting Codes (a) Encoding of 1100 (b) Even parity added (c) Error in AC

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 631 Hamming Codes 16-bit word needs 5 parity bits The parity bits are the bits whose positions are powers of 2 Bit b is checked by the parity bits whose positions sum to b  For example, bit 6 is checked by bits 2 and 4

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 632 Cache Memory

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 633 Memory Hierarchy

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 634 Magnetic Disk Format

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 635 Disk Platters

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 636 Disk Performance First, arm must be moved to the correct track; this is called a seek Average seek times between random tracks are in the range 5-10 ms Then we have the rotational delay to find the correct sector Average rotational delay is 3-6 ms Transfer time depends on the linear density and rotation speed Typical transfer times for one sector are μs Clearly seek time and rotational delay dominate the transfer time

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 637 Zones Outer tracks of a disk have larger circumferences than inner tracks Thus linear density is lower the further out you go To increase capacity the disk is divided into zones (there are 5 zones to the right) The number of sectors per track is increased as you move from zone to zone going outward

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 638 CD-ROM

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 639 CD-ROM Logical Data Layout

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 640 DVD Smaller pits than CD (0.4 microns vs. 0.8 microns for CD) Tighter spiral (0.74 microns vs. 1.6 microns for CD) Capacity is 4.7 GB

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 641 Input/Output

Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 642 Buses