I/O Memory Reg File ALU Program Counter Instruction Register Control Interconnect Control 1)PC contains mem address of Instruction, 2)From memory, instr.

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

Chapter 1. Basic Structure of Computers
Microprocessors.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
Data Manipulation Computer System consists of the following parts:
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 61 Today’s class Floating point numbers Computer systems organization.
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
Chapter 3 Data Representation part2 Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2010.
Mehmet Can Vuran, Instructor University of Nebraska-Lincoln Acknowledgement: Overheads adapted from those provided by the authors of the textbook.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Tenth Edition Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.
Chapter3 Fixed Point Representation Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
Programmable Logic Controllers
1 Catalog of useful (structural) modules and architectures In this course we will be working mostly at the BEHAVIORAL and STRUCTURAL levels. We will rely.
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.
Internal hardware and external components of a computer Three-box Model  Processor The brain of the system Executes programs A big finite state machine.
Technology in Focus: Under the Hood
Lecture 11: Machine Processing Intro to IT COSC1078 Introduction to Information Technology Lecture 11 Machine Processing James Harland
Basic Structure of Computer Computer Architecture Lecture – 2.
Chapter 1 Basic Structure of Computers. Chapter Outline computer types, structure, and operation instructions and programs numbers, arithmetic operations,
Fundamental of Computer Architecture By Panyayot Chaikan November 01, 2003.
Personal Computer Adapted by Dr. Semmes from Mrs. Jungman’s Hardware Presentation and Mrs. Belisle’s Class Notes.
Computer Fundamentals ELEC 330 Digital Systems Engineering Dr. Ron Hayne.
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
Computer Systems Organization CS 1428 Foundations of 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.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Twelfth Edition Copyright © 2016 Pearson Education, Inc.0.
ECE 456 Computer Architecture
General Concepts of Computer Organization Overview of Microcomputer.
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Dr. ClincyLecture1 Chapter 1 Basic Structure of Computers Basic structure of a computer Intro to Machine instructions and their execution Intro to system.
A summary of TOY. 4 Main Components Data Processor Control Processor Memory Input/Output Device.
 Lecture 2 Processor Organization  Control needs to have the  Ability to fetch instructions from memory  Logic and means to control instruction sequencing.
12/13/ _01 1 Computer Organization EEC-213 Computer Organization Electrical and Computer Engineering.
COMPUTER ORGANISATION Sri.S.A.Hariprasad Sr.Lecturer R.V.C.E Bangalore.
An Example Architecture. A Paper Computer - Woody Woody's characteristics Word size – 8 bits One word.
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,
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
CBP 2002ITY 270 Computer Architecture1 Module Structure Whirlwind Review – Fetch-Execute Simulation Instruction Set Architectures RISC vs x86 How to build.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Chapter 9 Computer Arithmetic
William Stallings Computer Organization and Architecture 8th Edition
Chapter 2 – Computer hardware
William Stallings Computer Organization and Architecture 7th Edition
Computer Architecture
Computer Organization
Functional Units.
Data Representation Data Types Complements Fixed Point Representation
ECEG-3202 Computer Architecture and Organization
A Top-Level View Of Computer Function And Interconnection
Presentation transcript:

I/O Memory Reg File ALU Program Counter Instruction Register Control Interconnect Control 1)PC contains mem address of Instruction, 2)From memory, instr. loaded into IR reg 3)Control decodes instruction causing load, store, or arithmetic/logic operation 4)PC is then incremented, offset, or a new address is loaded (today start pg. 9)

Processor components The program counter (PC) register holds the memory address of the current instruction The instruction register (IR) holds the current instruction General purpose registers hold data and addresses Control circuits and the arithmetic and logic unit (ALU) fetch and execute instructions

Fetching and executing instructions Example:Load R2, LOC The processor control circuits do the following: Send address in PC to memory; issue Read Load instruction from memory into IR Increment PC to point to next instruction Send address LOC to memory; issue Read Load word from memory into register R2

Handling I/O devices An application program can: Read data (such as a keyboard character) from an input device Write data (such as letter character) to an output display screen Sense the readiness of an input or output (I/O) device to perform a transfer

Interrupts A device ( such as an alarm indicator) can raise an interrupt signal to cause a service program to be executed The interrupt signal causes the processor to suspend the current program and execute an interrupt-service program

Numbers A 32-bit integer in positional binary notation has its bits labeled as: B = b 31 b 30...b 1 b 0 If bit b i = 1, then 2 i is added into the sum that determines the value of B

Endianess A big-endian machine stores the most significant byte first—at the lowest byte address—while a little-endian machine stores the least significant byte first. Below, a 16-bit integer is stored at memory location 8000.most significant byteleast significant byte ContentsAddressByte Value bits b7,b6,b5,b4,b3,b2,b1,b x32 0x3210, 16-bit int80000x10

Numbers For signed integers, the leftmost bit always indicates the sign: 0for positive 1for negative There are three ways to represent signed integers: Sign and magnitude 1’s complement 2’s complement

2’s-complement integers 2’s-complement representation is used in current computers Consider a four-bit signed integer example: The value +5 is represented as: 0 1 To form the value -5, complement all bits of to obtain and then add 1 to obtain

Addition Examples of adding 4-bit numbers

Subtraction Form the 2’s-complement of the subtrahend and then perform addition

Overflow Two examples of overflow; that is, when the answer does not fit in the number range

Sign extension Extend 4-bit signed integers to 8-bit signed integers

Character encoding American Standard Code for Information Interchange (ASCII) uses 7-bit codes Examples: charactercode A

Floating-point numbers 32-bit signed numbers have a limited range Integers (with their binary point fixed at the right end) have a magnitude up to Fractions (with their binary point fixed just after the sign bit) have a magnitude down to

Floating-point numbers A larger range can be obtained by letting the binary point “float” to the left or right Arithmetic unit operations automatically adjust the binary point as computation proceeds

Floating-point numbers A floating-point number can be represented in a 32-bit word as follows: 1 bit for the sign of the number 8 bits for a signed exponent to a base of 2 23 significant bits in the form1.xx….x The value represented is: +/- 1.xx….x X 2 exp

Floating-point (FP) numbers IEEE standard defines representation and operations for floating-point numbers The 32-bit single-precision format is: A sign bit:S (0 for +, 1 for -) An 8-bit signed exponent:E (base = 2) A 23-bit mantissa fraction magnitude:M

FP numbers The value represented is +/- 1.M x 2 E E is actually encoded as E’ = E which is called an excess-127 representation

FP numbers Example of 32-bit number representation: … S E’ M Value represented (with E = E’ – 127 = 133 – 127 = 6): x 2 6 This is called a normalized representation, with the binary point to the right of the first significant bit

Performance How quickly can a program be executed ? Some factors: Speed of electronic circuits in the processor Access times to the cache and main memory Design of the instruction set Number of operations that can be done at the same time (parallelism)

Parallelism Multiple processors, called cores, can be fabricated on a single VLSI chip The cores can execute different parts of a program at the same time A large number of multi-core processors with multiple caches and memory modules can be organized into a multiprocessor system to execute programs at the same time

Historical perspective Up to the 1940s: mechanical devices, electromechanical relay devices First generation computers, : vacuum tube circuits, magnetic core memories

Historical perspective Second generation, : transistor circuitry, magnetic disk data storage Third generation, : integrated circuits for processors and memory Fourth generation, 1975-present: microprocessors on a single VLSI chip, personal computers, embedded systems, very high performance multiprocessors