The Central Processing Unit

Slides:



Advertisements
Similar presentations
Chapter 4 The Central Processing Unit
Advertisements

The CPU The Central Presentation Unit What is the CPU?
Computer Memory and Data Transfer
What is Hardware? Hardware is the physical parts of the computer system – the parts that you can touch and see. A motherboard, a CPU, a keyboard and a.
The Central Processing Unit: What Goes on Inside the Computer.
The Central Processing Unit: What Goes on Inside the Computer.
 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
CENTRAL PROCESSING UNIT
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
Computer Hardware In this lecture, we will study:
Computer Applications NCBS Stage 1. The Central Processing UnitSlide 2Computer Applications Stage 1 Course Content and Assessment Practical – 60% (2 Hrs.
What’s on the Motherboard? The two main parts of the CPU are the control unit and the arithmetic logic unit. The control unit retrieves instructions from.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Chapter 4  Converts data into information  Control center  Set of electronic circuitry that executes stored program instructions  Two parts ◦ Control.
COMPONENTS OF THE SYSTEM UNIT
BLOCK DIAGRAM OF COMPUTER
Lesson 3 — How a Computer Processes Data
Chapter 3 Computer Hard ware
Chapter 4 The System Unit: Processing and Memory Prepared by : Mrs. Sara salih.
Computer Processing of Data
E0001 Computers in Engineering1 The System Unit & Memory.
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
GRAP 3175 Computer Applications for Drafting Unit II Computer Hardware.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
MAC OS – Unit A Page: 10-11, Investigating Data Processing Understanding Memory.
MBMPowered by DeSiaMore System Unit 1. MBMPowered by DeSiaMore Definition The system unit/system cabinet is a container that houses most of the electronic.
Module 5 Central Processing Unit 1. Binary representation of data 2. The components of the CPU 3. CPU and Instruction set 4. Important features of CPUs.
Copyright © 2003 by Prentice Hall Module 5 Central Processing Unit 1. Binary representation of data 2. The components of the CPU 3. CPU and Instruction.
Personal Computer Adapted by Dr. Semmes from Mrs. Jungman’s Hardware Presentation and Mrs. Belisle’s Class Notes.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
The Central Processing Unit: What Goes on Inside the Computer
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
CSCI-100 Introduction to Computing Hardware Part I.
1 Course Title: IT IN BUSINESS Course Instructor: ADEEL ANJUM Chapter No: 04 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
1 Central Processing Unit (CPU) Consists of complex set of electronic circuitry Executes stored program instructions Three components –Registers –Control.
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
HOW COMPUTERS WORK THE CPU & MEMORY. THE PARTS OF A COMPUTER.
Chapter 2 Turning Data into Something You Can Use
 A computer is an electronic device that receives data (input), processes data, stores data, and produces a result (output).  It performs only three.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
Computers Are Your Future Tenth Edition Inside the System Unit 1.
BY MANJU Lesson 21 Computer Hardware. System Components A computer system requires many components to do its job: Input: Device to input data so it can.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
CHAPTER (3) The Central Processing Unit (CPU) Emad Salem.
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
Chapter 2 content Basic organization of computer What is motherboard
The Central Processing Unit: What Goes on Inside the Computer
Computers Are Your Future Tenth Edition
Computer Hardware – System Unit
Discovering Computers 2011: Living in a Digital World Chapter 4
Chapter 7.2 Computer Architecture
Introduction to Computer Architecture
Chapter 2 – Computer hardware
CENTRAL PROCESSING UNIT CPU (microprocessor)
Lecture 3 The Hardware.
Introduction to Computer Architecture
Chapter 2: Computer Hardware
Computers: Tools for an Information Age
Basic Computer Organization
Computers: Tools for an Information Age
Computer components.
Presentation transcript:

The Central Processing Unit Chapter 3 What Goes on Inside the Computer

Functions of Computer Systems Recall that there are four main functions of computer systems: Secondary Storage Input Processing Output

Processing In this chapter, we will focus on the central processing unit (CPU) in more detail. Secondary Storage Input Processing Output

The CPU The CPU interacts closely with memory (primary storage). CPU Memory, however, is not part of the CPU. Memory

Parts of the CPU The CPU consists of a variety of parts including: Control unit Control Unit ALU Arithmetic/logic unit (ALU) Registers Registers

The Control Unit… directs the other parts of the computer system to execute stored program instructions. Control Unit The control unit communicates with the ALU and memory.

The Arithmetic/Logic Unit (ALU)… performs mathematical operations as well as logical operations. ALU

Mathematical Operations The ALU can perform four kinds of mathematical calculations: addition subtraction multiplication division

Logical Operations The ALU can perform logical operations. Logical operations can test for these conditions: Equal-to (=) Less-than (<) Greater-than (>)

= If = Then Equal-to Condition In a test for this condition, the ALU compares two values to determine if they are equal. If = Then =

< If = Then Less-than Condition In a test for this condition, the ALU compares values to determine if one value is less than another. If = Then <

Greater-than Condition In a test for this condition, the ALU compares values to determine if one value is greater than another. If = Then >

Registers… are temporary storage areas for data or instructions. Data held temporarily in registers can be accessed at greater speeds than data stored in memory. Registers

Memory (Primary Storage) Memory is the part of the computer that stores data and program instructions for processing. CPU Memory

Memory Memory… CPU is also referred to as RAM (random-access memory). RAM is temporary, finite, and more expensive than secondary storage. Memory

Executing Program Instructions Before the CPU can execute a program, program instructions and data must be placed into memory from an input device or storage device. Secondary Storage Input Processing

Executing Program Instructions Once the necessary data and instructions are in memory, the CPU performs the following steps for each instruction: CPU Memory Fetching Decoding Executing Storing

Fetching Instructions Control Unit ALU The control unit fetches (gets) the instruction from memory. Registers Memory

Decoding Instructions The control unit decodes the instruction and directs that the necessary data be moved from memory to the ALU. Control Unit ALU Registers Memory

Executing Arithmetic/Logic Operations Control Unit ALU The ALU performs the arithmetic or logical operation on the data. Registers Memory

Storing Results Memory The ALU stores the result of its operation on the data in memory or in a register. Control Unit ALU Registers Memory

Executing Program Instructions Eventually, the control unit sends the results in memory to an output device or secondary storage. Secondary Storage Control Unit ALU Registers Memory Output

Instruction Time The time it takes to fetch an instruction and decode it is called instruction time. Memory Control Unit ALU Memory Control Unit +

Execution Time The time it takes to execute an ALU operation and then store the result is called execution time. ALU Memory ALU Registers +

I- time E- time Machine Cycle The combination of I-time and E-time is called the machine cycle. I- time E- time Machine Cycle

Memory Locations and Addresses The control unit can find data and instructions because each location in memory has an address. Control Unit Memory

Storage Locations Memory Each location in memory is identified by an address. Memory Each location has a unique address.

Symbolic Addresses Memory % The choice of the location in memory is arbitrary. 17 $ % Pat Addresses can only hold one number or word. 364 Memory

Data Representation The system in which all computer data is represented and manipulated is called the binary system.

Binary System The binary system has only two digits to represent all values. This corresponds to the two states of a computer’s electrical system —on and off.

Off/On Switches off or on The computer can represent data by constructing combinations of off or on switches. off or on

Zero or One? The binary system can also be represented by the digits zero and one. or 1 Zero (off) and one (on) make up the two digits in the binary system.

The Bit one bit two bits three bits Each 0 or 1 in the binary system is called a bit. two bits three bits

The Byte A group of 8 bits is called a byte. 1 1 1

J = One Character of Data Each byte represents one character of data (a letter, digit, or special character). 1 = J

Storing Bytes Storage and memory capacity is expressed in the number of bytes they can hold: 1 kilobyte = 210 or 1024 bytes 1 megabyte = 220 or 1,048,576 bytes 1 gigabyte = 230 or 1,073,741,824 bytes

Computer Word A computer word is defined as the number of bits that constitute a common unit of data.

Computer Word Length Word length varies by computer. For example: 8 bits = 1 byte = one word length 64 bits = 8 bytes = one word length

Coding the Computer A code for determining which group of bits represent which characters on a keyboard is called ASCII.

ASCII ASCII has been adopted, as the standard, by the U.S. government and is found in a variety of computers. 1 = J ASCII-8 code Keyboard character

Inside the Computer The flat board within the personal computer that holds the computer circuitry is the motherboard.

The Motherboard The motherboard includes: Microprocessor Memory components

The Microprocessor… is the CPU of the personal computer. It looks like a computer chip. The microprocessor contains tiny electronic switches (transistors).

Microprocessor Switches If electric current passes through a transistor, the switch is on. If no current can pass, the switch is off. A combination of transistors can stand for a combination of bits.

Memory… components are also chips. This form of semiconductor memory stores data in binary form (off/on or zero/one). Storage can be temporary (RAM) or permanent (ROM).

RAM… means random-access memory. RAM chips can be accessed easily and fast—regardless of where the data is stored. RAM is usually volatile storage in that if the power is shut off, the contents are lost.

ROM… is read-only memory. ROM chips contain programs and data that are permanently etched on the chip. The contents do not disappear when the power is turned off.

Computer Speed and Power Speed and power are determined by: Microprocessor speed Bus lines Cache Flash memory RISC Parallel processing

Microprocessor Speeds Microprocessor speeds can be measured in a variety of ways: Megahertz MIPS Megaflops

Megahertz One measure of microprocessor speed is megahertz (MHz) which is one million machine cycles per second.

MIPS Another measure of microprocessor speed is MIPS which is one million instructions per second.

Megaflops Megaflops, or one million floating-point operations per second, is still another measure of microprocessor speed.

Bus Lines A bus line is a set of parallel electrical paths. A bus is like a mode of transportation for data.

Bus Width The amount of data that can be carried at one time is bus width (wider = more data).

Cache Cache is a relatively small block of very fast memory. The data and instructions stored in cache are those that are most recently or most frequently used. Cache speeds up the internal transfer of data and software instructions.

Flash Memory Accessing data and instructions from within the CPU is fast but not when it comes from a secondary storage device. Flash memory is nonvolatile (like secondary storage) but allows fast access (like RAM).

RISC New RISC computers have chips with fewer instructions as a means of making them run faster. Older, slower machines have chips (called CISC) with instructions that are seldom or never used.

Parallel Processing Using several processors at the same time (in parallel) greatly increases processing speed. When parallel processing, the computer can be starting other tasks before the sequence of fetch-decode-execute-store is complete.

Conclusion Regardless of the design and processing strategy of a computer, its goal is the same: to turn raw data into useful information.