Chapter 4 The Central Processing Unit

Slides:



Advertisements
Similar presentations
The Central Processing Unit: What Goes on Inside the Computer
Advertisements

Computer Memory and Data Transfer
Chapter 5 The System Unit.
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.
© Paradigm Publishing, Inc. 2-1 Chapter 2 Input and Processing Chapter 2 Input and Processing.
CENTRAL PROCESSING UNIT
SECTION 4a Transforming Data into Information.
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 4 The Central Processing Unit: What Goes On Inside the Computer.
Professor Michael J. Losacco CIS 1110 – Using Computers System Unit Chapter 4.
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
Chapter 4 The Central Processing Unit: What goes on Inside the Computer.
1 Microprocessor speeds Measure of system clock speed –How many electronic pulses the clock produces per second (clock frequency) –Usually expressed in.
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.
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
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
Central Processing Unit Part III Bayram Güzer. Personal Computer Chips The chips in personal computers is attached to the motherboard. Flat main circuit.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Lesson 3 — How a Computer Processes Data
The Components of the system unit Created By: N.AlJaffan Modified By:S.Abudawood Chapter 4.
C4- The Central Processing Unit: What Goes On Inside the Computer.
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
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.
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.
Understanding Computers, Ch.31 Chapter 3 The System Unit: Processing and 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.
1 Bits, Bytes, and Binary Numbers Bits and bytes are small pieces of computerized data that communicate commands to a computer’s CPU: A bit is either a.
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.
Computer Hardware Information Technology Week 5 and 6
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
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.
1Module 5: CPU How the CPU executes instructions Each CPU has its own instruction set Instructions are fundamental operations such as addition, load/save,
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 4 The Central Processing Unit: What Goes On Inside the Computer.
CSCI-100 Introduction to Computing Hardware Part I.
1 Central Processing Unit (CPU) Consists of complex set of electronic circuitry Executes stored program instructions Three components –Registers –Control.
Central Processing Unit Part I Bayram Güzer. Central Processing Unit Central processing unit is a control center that converts data input to information.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 5A Transforming Data Into Information.
The Computer System.
Computers: Tools for an Information Age Chapter 4 The Central Processing Unit: What Goes On Inside the Computer.
Chapter 2 Turning Data into Something You Can Use
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.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
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?
Objectives Identify the components of the central processing unit and how they work together and interact with memory Describe how program instructions.
Computer Hardware. 7/23/2016M. Eyadat2 Objectives –Explain why most computers are digital –Describe the role of the ALU –List factors that affect performance.
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
Discovering Computers 2011: Living in a Digital World Chapter 4
The Central Processing Unit
Computers: Tools for an Information Age
Computers: Tools for an Information Age
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

Chapter 4 The Central Processing Unit Computers: Tools for An Information Age

The CPU The Motherboard

The CPU

The CPU Complex set of electronic circuits Executes stored program instructions Two parts Control unit Arithmetic/logic unit (ALU)

Control Unit Directs the computer system to execute stored program instructions Must communicate with memory and ALU Sends data and instructions from secondary storage to memory as needed

Arithmetic / Logic Unit Executes all arithmetic and logical operations Arithmetic operations Addition, subtraction, multiplication, division Logical operations Compare numbers, letters, or special characters Tests for one of three conditions Equal-to condition Less-than condition Greater-than condition

Data Storage and the CPU Two types of storage: Primary storage (memory) Stores data temporarily CPU refers to it for both program instructions and data Secondary storage Long-term storage Stored on external medium, such as a disk (e.g. hard disk)

Temporary Storage Areas Memory Registers

Memory Also known as primary storage and main memory Often expressed as random-access memory (RAM) Not part of the CPU Holds data and instructions for processing Stores information only as long as the program is in operation

Registers High-speed temporary storage areas Storage locations located within the CPU Work under direction of control unit Accept, hold, and transfer instructions or data Keep track of: The location of the next instruction to be executed The location of the needed data

How the CPU Executes Instructions (4 Steps) The control unit fetches (gets) the instruction from memory and puts it into a register The control unit decodes the instruction (decides what it means) and determines the memory location of the data required These two steps are called: Instruction Time (I-time).

How the CPU Executes Instructions (4 Steps) The control unit moves the data from memory to registers in the ALU. The ALI executes the instruction (arithmetic or logical) The control unit stores the result of this operation in memory or in a register. These two steps are called: Execution Time (E-time).

The Machine Cycle The time required to fetch, decode, execute, and store an operation Components Instruction time Execution time System clock synchronizes operations

Memory Addresses Each memory location has an address A unique number, much like a mailbox May contain only one instruction or piece of data When data is written back to memory, previous contents of that address are destroyed Referred to by number Programming languages use a symbolic (named) address, such as Hours or Salary

Data Representation Computers understand two things: on and off Data represented in binary form Binary (base 2) number system Contains only two digits, 0 and 1 Corresponds to two states, on and off

Representing Data Bit Byte Word

Bit A binary digit Basic unit for storing data Two possible values: 0 or 1 Can never be empty Basic unit for storing data 0 means off 1 means on

Byte A group of 8 bits For text, a byte stores one character Each byte has 256 (28) possible values For text, a byte stores one character Can be letter, digit, or special character Examples: 1= 00000001 A= 00001010 B= 00001011 Memory and storage devices measured in number of bytes

Word The number of bits the CPU processes as a unit Typically a whole number of bytes The larger the word, the more powerful the computer Personal computers are typically 32 or 64 bits in length

Storage Sizes Kilobyte: 1024 (210) bytes Megabyte: roughly one million (220) bytes Gigabyte: roughly one billion (230) bytes Terabyte: roughly one trillion (240) bytes

Coding Schemes Provide a common way of representing a character of data Needed so computers can exchange data Common Schemes ASCII EBCDIC Unicode

ASCII Stands for American Standard Code for Information Interchange Most widely used standard Used on virtually all personal computers Examples: 0 (0011 0000) 1 (0011 0001) $ (0010 0100)

EBCDIC Extended Binary Coded Decimal Interchange Code Examples: Used primarily on IBM and IBM-compatible mainframes Examples: 0 (1111 0000) 1 (1111 0001) $ (0101 1011)

Unicode Designed to accommodate alphabets of more than 256 characters Uses 16 bits to represent one character 65,536 possible values Requires twice as much space to store data

The System Unit Houses the electronic components of the computer system Motherboard Storage devices

Motherboard Flat circuit board that holds the computer circuitry Central processing unit (microprocessor) is the most important component

Microprocessor Central processing unit etched on silicon chip Contain tens of millions of tiny transistors Key components: Central Processing Unit (CU and ALU) Registers System clock

Memory Components RAM and ROM Flash Memory

Random Access Memory (RAM) Data can be accessed randomly Memory address 10 can be accessed as quickly as memory address 10,000,000

Read-Only Memory (ROM) Contains programs and data permanently recorded into memory at the factory Cannot be changed by user Not volatile: contents do not disappear when power is lost Programmable ROM (PROM) chips Some instructions on chip can be changed

Flash Memory Nonvolatile RAM Used in cellular phones, digital cameras, and some handheld computers Smaller than disk drive and require less power

The System Bus Parallel electrical paths that transport data between the CPU and memory Bus Width The number of electrical paths to carry data Measured in bits (e.g. 32-bit, 64-bit, etc.) Bus Speed Measured in megahertz (MHz)

Bus Width Typically the same as CPU’s word size With a larger bus size, CPU can: Transfer more data at a time Makes computer faster Reference larger memory address numbers Allows for more memory Support a greater number and variety of instructions

Bus Speed The faster the bus speed, the faster data travels through the system Personal computers have bus speeds of 400 or 533 MHz

Speed and Power What makes a computer faster than another? Microprocessor speed Bus line size The availability of cache

Computer Processing Speeds Instruction speeds measured in fractions of seconds Millisecond: one thousandth of a second Microsecond: one millionth of a second Nanosecond: one billionth of a second Modern computers have reached this speed Picosecond: one trillionth of a second

Microprocessor Speeds Measure of system clock speed How many electronic pulses the clock produces per second Usually expressed in gigahertz (GHz) Billions of machine cycles per second Some old PCs measured in megahertz (MHz)

Other Performance Measures Millions of Instructions per Second (MIPS) High-speed personal computers can perform over 500 MIPS Typically a more accurate measure of performance than clock speed

Cache A temporary storage area Memory cache Processor cache Speeds up data transfer within computer Memory cache Processor cache

Memory Cache A small block of high-speed memory Stores most frequently and most recently used data and instructions Microprocessor looks for what it needs in cache first Transferred from cache much faster than from memory If not in cache, control unit retrieves from memory The more cache “hits” the faster the system performance

Processor Cache Internal (Level 1) cache built into microprocessor Fastest access, but highest cost External (Level 2) cache on separate chip Incorporated into processor on some current microprocessors