Computer Architecture Adapted from CS10051 originally by Professor: Johnnie Baker Computer Science Department Kent State University von Neuman model.

Slides:



Advertisements
Similar presentations
CHAPTER 5 – Computing Components
Advertisements

The CPU The Central Presentation Unit What is the CPU?
Chapter 5 Computing Components. 2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von Neumann.
Chapter 5 Computing Components.
Chapter 5 Computing Components. 5-2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von.
Chapter 5 Computing Components. The (META) BIG IDEA Cool, idea but maybe too big DATA – Must be stored somewhere in a storage device PROCESSING – Data.
Chapter 5 Computing Components Nell Dale John Lewis.
CHAPTER 5 COMPUTER SYSTEMS ORGANIZATION. REMEMBER... Computer science is the study of algorithms including * Their formal and mathematical properties---
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Chapter 5 Computing Components Nell Dale John Lewis.
Chapter 5: Computer Systems Organization Invitation to Computer Science, C++ Version, Third Edition Added to by S. Steinfadt - Spring 2005 Additional source.
CHAPTER 5 COMPUTER SYSTEMS ORGANIZATION. REMEMBER... Computer science is the study of algorithms including * Their formal and mathematical properties---
Chapter 5 Computing Components. 2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von Neumann.
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
6. The CPU and Memory Chapt. 7.
5.1 Chaper 4 Central Processing Unit Foundations of Computer Science  Cengage Learning.
Chapter 5 Computing Components. 5-2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von.
Chapter 3 Computer Hard ware
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
计算机科学概述 Introduction to Computer Science 陆嘉恒 中国人民大学 信息学院
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Chapter 5 Computing Components Nell Dale John Lewis.
5-1 Computer Components Consider the following ad.
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
CPU How It Works. 2 Generic Block Diagram CPU MemoryInputOutput Address Bus Data Bus.
Computer Architecture
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
General Concepts of Computer Organization Overview of Microcomputer.
Computer Science 101 Computer Systems Organization.
10 Internal parts of a PC Created by Federica Proietti Cesaretti.
CSCI-100 Introduction to Computing Hardware Part I.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Assessment Covering… Von Neuman architecture Registers – purpose and use, the fetch execute cycle.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
A little hardware; a little software CS 139 – 08/29/07.
Chapter 5 Computing Components. 2 Computer Components Consider the following ad:
Computer Organization. The Five Hardware Units General purpose computers use the "Von Neumann" architecture Also referred to as "stored program" architecture.
Introduction to Computers and Terminology CS280 – 09/01/05.
Chapter 5: Computer Systems Organization Invitation to Computer Science,
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 1 Looking Inside the Computer System.
Chapter 2 content Basic organization of computer What is motherboard
Computer Systems Nat 4/5 Computing Science Computer Structure:
CPU Lesson 2.
Computing Science Computer Structure: Lesson 1: Processor Structure
A Ben Itaba Presentation
Systems Architecture Keywords Fetch Execute Cycle
What is a computer? Simply put, a computer is a sophisticated electronic calculating machine that: Accepts input information, Processes the information.
Chapter 7.2 Computer Architecture
Introduction to Computer Architecture
Introduction of microprocessor
introduction to computer
Hook – CPU Knowledge Check
Functional Units.
COMS 161 Introduction to Computing
The Von Neumann Model Basic components Instruction processing
Basic Computer Organization
Introduction to Computer Architecture
Chapter 5: Computer Systems Organization
COMPUTER SYSTEMS ORGANIZATION
The Von Neumann Architecture
Introduction to Computer Architecture
Unit 1.1 System Architecture Lesson 2
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Chapter 5 Computer Organization
Information Representation: Machine Instructions
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Presentation transcript:

Computer Architecture Adapted from CS10051 originally by Professor: Johnnie Baker Computer Science Department Kent State University von Neuman model

2 The von Neumann Architecture of a Computer Processor or Note: The processor is also called the Central Processing Unit or the CPU

3 Von Neumann Architecture There are 3 major units in a computer tied together by buses: 1) Memory The unit that stores and retrieves instructions and data. 2) Processor: The unit that houses two separate components: The control unit: Repeats the following 3 tasks Fetches an instruction from memory Decodes the instruction Executes the instruction The arithmetic/logic unit (ALU): Performs mathematical and logical operations. 3) Input/Output (I/O) Units: Handle communication with the outside world.

4 Flow of Information The parts are connected to one another by a collection of wires called a bus Figure 5.2 Data flow through a von Neumann architecture Processor

5 Von Neumann Architecture The architecture is named after the mathematician, John von Neumann, who proposed storing instructions in the memory of a computer and using a control unit to handle the fetch-decode-execute cycle: fetch an instruction decode the instruction execute the instruction Although we think of data being stored in a computer, in reality, both data and instructions are stored there. A typical instruction is a sequence of 0s and 1s and data is also a series of 0s and 1s.

6 Babbage Interestingly, a similar architecture was proposed in 1830 by Charles Babbage for his Analytic Engine: ALUmill memorystore control unit operator (process cards storing instructions) I/O unitsoutput (typewriter)

7 More Detail on Computer Architecture

8 THE I/O DEVICES Pictorially, these look the simplest, but in reality, they form the most diverse part of a computer. Includes: keyboards, monitors, joysticks, mice, tablets, lightpens, spaceballs,....

9 Input/Output Units An input unit is a device through which data and programs from the outside world are entered into the computer Keyboard, the mouse, and scanning devices An output unit is a device through which results stored in the computer memory are made available to the outside world Printers and video display terminals

10 Memory Memory is a collection of cells, each with a unique physical address The size of a cell is normally a power of 2, typically a byte today.

11 Memory A cell is the smallest addressable unit of memory – i.e. one cell can be read from memory or one cell can be written into memory, but nothing smaller.

12 RAM and ROM RAM stands for Random Access Memory Inherent in the idea of being able to access each location is the ability to change the contents of each location ROM stands for Read Only Memory The contents in locations in ROM cannot be changed RAM is volatile, ROM is not This means that RAM does not retain its bit configuration when the power is turned off, but ROM does

13 MEMORY UNIT (or RAM- Random Access Memory) Each cell has an address, starting at 0 and increasing by 1 for each cell. A cell with a low address is just as accessible as one with a high address- hence the name RAM. The width of the cell determines how many bits can be read or written in one machine operation. MAR is Memory Address Register MDR is Memory Data Register

14 What is a Register? Data can be moved into and out of registers faster than from memory. If we could replace all of memory with registers, we could produce a very, very fast computer... But, the price would be terribly prohibitive. Most computers have quite a few registers that serve different purposes. We’ll see how the MAR and the MDR are used.

15 Control Unit A Control Unit is the unit that handles the central work of the computer. There are two registers in the control unit The instruction register (IR) contains the instruction that is being executed The program counter (PC) contains the address of the next instruction to be executed The ALU and the control unit together are called the Central Processing Unit, or CPU

16 How does the memory unit work? Trace the following operation: Store data D in memory location 0. D D 0 0D 0D s D

17 How does the memory unit work? Trace the following operation: 1) Fetch data D from memory location 1. 2) Obtain an instruction I from memory location 7. How does the computer distinguish between 1) and 2) above? We need to look at the control unit later. 1 D f D I

18 USING THE DECODER CIRCUIT TO SELECT MEMORY LOCATIONS x 2 4 decoder MAR

19 Arithmetic/Logic Unit (ALU) Performs basic arithmetic operations such as adding Performs logical operations such as AND, OR, and NOT Most modern ALUs have a small amount of registers where the work takes place. For example, adding A and B, we might find A stored in one register, B in another, and their sum stored in, say, A, after the adder computes the sum.

20 ADD X X D D f ALU1 & ALU2 E E+DE D

21 IN X X D s D D

22 OUT X X D D f D

23 ALL A COMPUTER DOES IS... Repeat forever (or until you pull the plug or the system crashes) 1) FETCH (the instruction) 2) DECODE (the instruction) 3) EXECUTE (the instruction)

24 The Fetch-Execute Cycle Fetch the next instruction Decode the instruction Execution Cycle Gets data if needed Execute the instruction Normally “Get data if needed” is considered part of the “Execute the instruction”.

25 How Does the Control Unit Work? The PC holds the address of the next instruction to be executed. Whatever is stored at that address is assumed to be an instruction. Once the instruction is fetched, the PC is incremented.

26 Secondary Storage Devices Because most of main memory is volatile and limited, it is essential that there be other types of storage devices where programs and data can be stored when they are no longer being processed Secondary storage devices can be installed within the computer box at the factory or added later as needed

27 Magnetic Tape The first truly mass auxiliary storage device was the magnetic tape drive A magnetic tape

28 Magnetic Disks A read/write head travels across a spinning magnetic disk, retrieving or recording data Figure 5.8 The organization of a magnetic disk

29 Compact Disks A CD drive uses a laser to read information stored optically on a plastic disk CD-ROM is Read-Only Memory DVD stands for Digital Versatile Disk