The Central Processing Unit: What Goes on Inside the Computer.

Slides:



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

Chapter 4 The Central Processing Unit
The System Unit What is the system unit?
Welcome to CMPE003 Personal Computers: Hardware and Software Dr. Chane Fullmer Fall 2002 UC Santa Cruz.
Chapter 4 The Components of the System Unit
Welcome to CMPE003 Personal Computer Concepts: Hardware and Software Winter 2003 UC Santa Cruz Instructor: Guy Cox.
The Central Processing Unit: What Goes on Inside the Computer.
Introduction to Information Technology: Your Digital World © 2013 The McGraw-Hill Companies, Inc. All rights reserved.Using Information Technology, 10e©
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 4 The Central Processing Unit: What Goes On Inside the Computer.
The Central Processor and Memory
Computer Hardware Processing and Internal Memory.
Chapter 4 The Components of the System Unit
Computers Chapter 4 Inside the Computer © 2005 Prentice-Hall, Inc.Slide 2.
Lecture 1 Basic structure of computer History of computer development.
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.
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
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.
Processing Devices.
Lesson 3 — How a Computer Processes Data
The Components of the system unit Created By: N.AlJaffan Modified By:S.Abudawood Chapter 4.
1 Adapted from Pearson Prentice Hall Adapted from James A. Senn’s Information Technology, 3 rd Edition Chapter 4 The Central Processor and Memory.
C4- The Central Processing Unit: What Goes On Inside the Computer.
Computers: Information Technology in Perspective By Long and Long Copyright 2002 Prentice Hall, Inc. Computers: Information Technology in Perspective.
Chapter 4 The System Unit: Processing and Memory Prepared by : Mrs. Sara salih.
1 More on Computer Components Computer switches Binary number system Inside the CPU Cache memory Types of RAM Computer buses Creating faster CPUs NEXT.
E0001 Computers in Engineering1 The System Unit & Memory.
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
Practical PC, 7th Edition Chapter 17: Looking Under the Hood
GRAP 3175 Computer Applications for Drafting Unit II Computer Hardware.
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.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Created By: N.AlJaffan Modified By:S.Abudawood & Tr.Asma Aleisa Chapter 4.
Copyright Prentice-Hall, Inc Chapter 2.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
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.
Computers © 2005 Prentice-Hall, Inc.Slide 1. Computers Chapter 4 Inside the Computer © 2005 Prentice-Hall, Inc.Slide 2.
PARTS OF THE COMPUTER PREPARED BY: RENATO R. DE VERA II.
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.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Academic PowerPoint Computer System – Architecture.
T HE C ENTRAL P ROCESSING U NIT : W HAT G OES ON I NSIDE THE C OMPUTER By : Mr. Johny Anthony.
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
CS 1410 Intro to Computer Tecnology Computer Hardware1.
Computers Are Your Future Tenth Edition Inside the System Unit 1.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
Lecture # 10 Processors Microcomputer Processors.
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.
The Central Processing Unit: What Goes on Inside the Computer.
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
The Central Processing Unit: What Goes on Inside the Computer
The Central Processing Unit: What Goes on Inside the Computer
The Central Processing Unit
Computers © 2005 Prentice-Hall, Inc. Slide 1.
Lecture 3 The Hardware.
Computers: Tools for an Information Age
Computers: Tools for an Information Age
Presentation transcript:

The Central Processing Unit: What Goes on Inside the Computer

Contents The CPU Types of Storage Executing Programs Finding Data in Memory The System Unit Microprocessor Semiconductor Memory Bus Line Speed and Power

The CPU

Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts –Control Unit (CU) –Arithmetic Logic Unit (ALU)

Control Unit CU Part of the hardware that is in-charge Directs the computer system to execute stored program instructions Communicates with other parts of the hardware

Arithmetic / Logic Unit ALU Performs arithmetic operations Performs logical operations

Arithmetic Operations Addition Subtraction Multiplication Division

Logical Operations Evaluates conditions Makes comparisons Can compare –Numbers –Letters –Special characters

Registers Special-purpose High-speed Temporary storage Located inside CPU Instruction register Holds instruction currently being executed Data register Holds data waiting to be processed Holds results from processing

Types of Storage Secondary –Data that will eventually be used –Long-term Memory –Data that will be used in the near future –Temporary –Faster access than storage Registers –Data immediately related to the operation being executed –Faster access than memory

Measuring Storage Capacity KB – kilobyte 1024 bytes Some diskettes Cache memory MB – megabyte Million bytes RAM GB – gigabyte Billion bytes Hard disks CDs and DVDs TB – terabytes Trillion bytes Large hard disks

Memory Many Names Primary storage Primary memory Main storage Internal storage Main memory

Main Types of Memory RAM Random Access Memory ROM Read Only Memory

RAM Requires current to retain values Volatile Data and instructions can be read and modified Users typically refer to this type of memory

What’s in RAM? Operating System Program currently running Data needed by the program Intermediate results waiting to be output

ROM Non-volatile Instructions for booting the computer Data and instructions can be read, but not modified Instructions are typically recorded at factory

Executing Programs CU gets an instruction and places it in memory CU decodes the instruction CU notifies the appropriate part of hardware to take action Control is transferred to the appropriate part of hardware Task is performed Control is returned to the CU

Machine Cycle I-time CU fetches an instruction from memory and puts it into a register CU decodes the instruction and determines the memory location of the data required

Machine Cycle E-time Execution –CU moves the data from memory to registers in the ALU –ALU is given control and executes the instruction –Control returns to the CU CU stores the result of the operation in memory or in a register

System Clock System clock produces pulses at a fixed rate Each pulse is one Machine Cycle One program instruction may actually be several instructions to the CPU Each CPU instruction will take one pulse CPU has an instruction set – instructions that it can understand and process

Finding Data in Memory Each location in memory has a unique address –Address never changes –Contents may change Memory location can hold one instruction or piece of data Programmers use symbolic names

Data Representation On/Off Binary number system is used to represent the state of the circuit

Bits, Bytes, Words BIT –Binary DigIT –On/off circuit –1 or 0 BYTE –8 bits –Store one alphanumeric character WORD –Size of the register –Number of BITS that the CPU processes as a unit

Coding Schemes ASCII –Uses one 8 bit byte –2 8 = 256 possible combinations or characters –Virtually all PCs and many larger computers EBCDIC –Uses one 8 bit byte –28 =256 possible combinations or characters –Used primarily on IBM-compatible mainframes Unicode –Uses two 8 bit bytes (16 bits) –216 = 65,536 possible combinations or characters –Supports characters for all the world’s languages –Downward-compatible with ASCII

Microprocessor CPU etched on a chip Chip size is ¼ x ¼ inch Composed of silicon Contains millions of transistors –Electronic switches that can allow current to pass through

Microprocessor Components Control Unit – CU Arithmetic / Logic Unit – ALU Registers System clock

Building a Better Microprocessor Computers imprint circuitry onto microchips –Cheaper –Faster Perform functions of other hardware –Math coprocessor is now part of microprocessor –Multimedia instructions are now part of microprocessor

Building a Better Microprocessor The faster the computer runs The cheaper it is to make The more reliable it is The more functions that are combined on a microprocessor:

Types of Microprocessors Intel Pentium Celeron Xeon and Itanium Intel-compatible Cyrix AMD

Types of Microprocessors PowerPC –Cooperative efforts of Apple, IBM, and Motorola –Used in Apple Macintosh family of PCs –Found in servers and embedded systems Alpha –Manufactured by Compaq –High-end servers and workstations

Bus Line Paths that transport electrical signals System bus –Transports data between the CPU and memory Bus width –Number of bits of data that can be carried at a time –Normally the same as the CPUs word size Speed measured in MHz

Bus Line CPU can support a greater number and variety of instructions CPU can support a greater number and variety of instructions Larger bus width = More powerful computer CPU can transfer more data at a time = Faster computer CPU can reference larger memory addresses = More memory available

Expansion Buses Connect the motherboard to expansion slots Plug expansion boards into slots –interface cards –adapter cards Provides for external connectors / ports –Serial –Parallel

Expansion Buses

PC Buses and Ports ISASlow-speed devices like mouse, modem PCIHigh-speed devices like hard disks and network cards AGPConnects memory and graphics card for faster video performance USBSupports “daisy-chaining” eliminating the need for multiple expansion cards; hot-swappable IEEE 1394 (FireWire) High-speed bus connecting video equipment to the computer PC CardCredit card sized PC card devices normally found on laptops

Speed and Power What makes a computer fast? Microprocessor speed Bus line size Availability of cache Flash memory RISC computers Parallel processing

Computer Processing Speed Time to execute an instruction Millisecond Microsecond Nanosecond –Modern computers Picosecond –In the future

Microprocessor Speed Clock speed –Megahertz (MHz) –Gigahertz (GHz) Number of instructions per second –Millions of Instructions Per Second (MIPS) Performance of complex mathematical operations –One million floating-point operations per second (Megaflop )

Cache Small block of very fast temporary memory Speed up data transfer Instructions and data used most frequently or most recently

Cache Step 1 Processor requests data or instructions Step 2 Go to address in main memory and read Step 3 Transfer to main CPU and cache Next processor request Look first at cache Go to memory PROCESSORPROCESSOR RAMRAM Cache

Types of Cache Internal cache –Level 1 (L1) –Built into microprocessor –Up to 128KB External cache –Level 2 (L2) –Separate chips –256KB or 512 KB –SRAM technology –Cheaper and slower than L1 –Faster and more expensive than memory