The Central Processing Unit:



Similar documents
Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

Chapter 4 System Unit Components. Discovering Computers Your Interactive Guide to the Digital World

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Discovering Computers Living in a Digital World

Hardware: Input, Processing, and Output Devices. A PC in Every Home. Assembling a Computer System

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Basic Concepts of Information Technology (IT)

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

Chapter 5 Busses, Ports and Connecting Peripherals

Lecture 2: Computer Hardware and Ports.

Technical Product Specifications Dell Dimension 2400 Created by: Scott Puckett

Computer Basics: Chapters 1 & 2

lesson 1 An Overview of the Computer System

The Motherboard Chapter #5

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

Chapter 2 Logic Gates and Introduction to Computer Architecture

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

1 PERSONAL COMPUTERS

Primary Memory. Input Units CPU (Central Processing Unit)

Communicating with devices

Chapter 8 Memory Units

Understanding Digital Components

Microprocessor or Microcontroller?

MICROPROCESSOR AND MICROCOMPUTER BASICS

CHAPTER 7: The CPU and Memory

Slide Set 8. for ENCM 369 Winter 2015 Lecture Section 01. Steve Norman, PhD, PEng

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Computer Components Study Guide. The Case or System Box

Week One Lecture Note 1.0 INTRODUCTION TO COMPUTER 1.1 WHAT IS COMPUTER?

CHAPTER 4 MARIE: An Introduction to a Simple Computer

Chapter 1. The largest computers, used mainly for research, are called a. microcomputers. b. maxicomputers. c. supercomputers. d. mainframe computers.

Fall Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu.

Introduction To Computers: Hardware and Software

TYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS

Mainframe hardware course: Mainframe s processors

Computer System: User s View. Computer System Components: High Level View. Input. Output. Computer. Computer System: Motherboard Level

İSTANBUL AYDIN UNIVERSITY

CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions

Generations of the computer. processors.

Unit A451: Computer systems and programming. Section 2: Computing Hardware 1/5: Central Processing Unit

Chap-02, Hardware and Software. Hardware Model

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

Computer Systems Structure Input/Output

SDRAM and DRAM Memory Systems Overview

Like millions of other computer users, you have probably used your

Computer Hardware HARDWARE. Computer Hardware. Mainboard (Motherboard) Instructor Özgür ZEYDAN

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

Computer Systems Structure Main Memory Organization

Pentium vs. Power PC Computer Architecture and PCI Bus Interface

Introduction to Information System Layers and Hardware. Introduction to Information System Components Chapter 1 Part 1 of 4 CA M S Mehta, FCA

1.1 Electronic Computers Then and Now

STUDY GUIDE CHAPTER 1

A N. O N Output/Input-output connection

New Mexico Broadband Program. Basic Computer Skills. Module 1 Types of Personal Computers Computer Hardware and Software

Introducción. Diseño de sistemas digitales.1

COMPUTER BASICS. Seema Sirpal Delhi University Computer Centre

EUCIP - IT Administrator. Module 1 - PC Hardware. Version 2.0

K Hinds Page No. 1. Lecture 3 ASCII

Here is a diagram of a simple computer system: (this diagram will be the one needed for exams) CPU. cache

CSCA0201 FUNDAMENTALS OF COMPUTING. Chapter 5 Storage Devices

Random Access Memory (RAM) Types of RAM. RAM Random Access Memory Jamie Tees SDRAM. Micro-DIMM SO-DIMM

Introduction to Computer Architecture Concepts

Chapter 1 Computer System Overview

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

MULTIPLE CHOICE FREE RESPONSE QUESTIONS

TEST CHAPTERS 1 & 2 OPERATING SYSTEMS

Overview. CPU Manufacturers. Current Intel and AMD Offerings

RAM. Overview DRAM. What RAM means? DRAM

Block diagram of typical laptop/desktop

RAM & ROM Based Digital Design. ECE 152A Winter 2012

CISC, RISC, and DSP Microprocessors

Memory Basics ~ ROM, DRAM, SRAM, Cache Memory The article was added by Kyle Duke

ELECTRONIC DOCUMENT IMAGING

Central Processing Unit

Computer Organization. and Instruction Execution. August 22

Mother Board Component

Computer Architecture

7a. System-on-chip design and prototyping platforms

Basic Computer Organization

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Student Edition Complete

A Computer Glossary. For the New York Farm Viability Institute Computer Training Courses

Memory Basics. SRAM/DRAM Basics

To understand how data is processed, by a computer, we can draw a simple analogy between computers and humans.

Main Memory & Backing Store. Main memory backing storage devices

LSN 2 Computer Processors

The Bus (PCI and PCI-Express)

Central Processing Unit

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Tenth Edition. Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall

Overview of MIS Professor Merrill Warkentin

Transcription:

The Central Processing Unit: What Goes on Inside the Computer Chapter 4

Objectives Identify the components of the central processing unit and how they work together and interact with memory Describe how program instructions are executed by the computer Explain how data is represented in the computer Describe how the computer finds instructions and data Describe the components of a microcomputer system unit s motherboard List the measures of computer processing speed and explain the approaches that increase speed January 23, 2003 2

The CPU January 23, 2003 3

The CPU Complex set of electronic circuitry Control center Set of electronic circuitry that executes stored program instructions Two parts Control Unit (CU) Arithmetic Logic Unit (ALU) January 23, 2003 4

Control Unit: CU Part of the hardware that is in-charge 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 January 23, 2003 5

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 January 23, 2003 6

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 January 23, 2003 7

The CPU and Memory CPU cannot process data from disk or input device It must first reside in memory Control unit retrieves data from disk and moves it into memory Items sent to ALU for processing Control unit sends items to ALU, then sends back to memory after processing Data and instructions held in memory until sent to an output or storage device or program is shut down January 23, 2003 8

Registers Special-purpose High-speed Temporary storage Located inside CPU Instruction register Holds instruction currently being executed Status Register Holds status of ALU operations Data register Holds data waiting to be processed Holds results from processing January 23, 2003 9

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 January 23, 2003 10

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 January 23, 2003 11

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 January 23, 2003 12

Representing Data Bit Byte Word January 23, 2003 13

Bit Short for binary digit Two possible values: 0 and 1 Can never be empty Basic unit for storing data 0 means off, 1 means on January 23, 2003 14

Byte A group of 8 bits Each byte has 256 (2 8 ) possible values For text, stores one character Can be letter, digit, or special character Memory and storage devices measured in number of bytes January 23, 2003 15

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 typically 32 or 64 bits in length January 23, 2003 16

Storage Sizes Kilobyte: 1024 (2 10 ) bytes Memory capacity of older personal computers Megabyte: roughly one million (2 20 ) bytes Personal computer memory Portable storage devices (diskette, CD-ROM) Gigabyte: roughly one billion (2 30 ) bytes Storage devices (hard drives) Mainframe and network server memory Terabyte: roughly one trillion (2 40 ) bytes Storage devices on very large systems January 23, 2003 17

Executing Programs Fetch CU gets an instruction Decode CU decodes the instruction Execute CU notifies the appropriate part of hardware to take action Control is transferred to the appropriate part of hardware Task is performed Store Control is returned to the CU January 23, 2003 18

How the CPU Executes Instructions Four steps performed for each instruction Machine cycle: the amount of time needed to execute an instruction Personal computers execute in less than one millionth of a second Supercomputers execute in less than one trillionth of a second Each CPU has its own instruction set those instructions that CPU can understand and execute January 23, 2003 19

The Machine Cycle The time required to retrieve, execute, and store an operation Components Instruction time Execution time System clock synchronizes operations January 23, 2003 20

Instruction Time Also called I-time Control unit gets instruction from memory and puts it into a register Control unit decodes instruction and determines the memory location of needed data January 23, 2003 21

Execution Time Control unit moves data from memory to registers in ALU ALU executes instruction on the data Control unit stores result of operation in memory or in a register January 23, 2003 22

Machine Cycle - Example January 23, 2003 23

System Clock System clock produces pulses at a fixed rate Each Machine Cycle is one or more clock pulses One program instruction may actually be several instructions to the CPU Each CPU instruction will take one machine cycle CPU has an instruction set instructions that it can understand and process Different CPUs have unique instruction sets Different types non-compatible (ie, Apple vs Intel) January 23, 2003 24

Example get instruction from address location 2110 decipher instruction Z = X + Y mov X into register A (the accumulator) mov Y into register B add register B to register A Result stays in accumulator store result in memory location symbolically addressed by Z January 23, 2003 25

Coding Schemes Provide a common way of representing a character of data Needed so computers can exchange data Common Schemes ASCII EBCDIC Unicode January 23, 2003 26

ASCII Stands for American Standard Code for Information Interchange Most widely used standard Used on virtually all personal computers January 23, 2003 27

EBCDIC Extended Binary Coded Decimal Interchange Code Used primarily on IBM and IBM-compatible mainframes January 23, 2003 28

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 January 23, 2003 29

The System Unit Houses the electronic components of the computer system Motherboard Storage devices January 23, 2003 30

Motherboard Flat circuit board that holds the computer circuitry Central processing unit (microprocessor) is most important component January 23, 2003 31

Storage Devices Long-term storage of memory Data not lost when computer shut down Examples include hard drive, diskette, DVD- ROM January 23, 2003 32

Microprocessor Central processing unit etched on silicon chip Contain tens of millions of tiny transistors Key components: Central processing unit Registers System clock January 23, 2003 33

Transistors Electronic switches that may or may not allow electric current to pass through If current passes through, switch is on, representing a 1 bit Otherwise, switch is off, representing a 0 bit January 23, 2003 34

Types of Chips Intel makes a family of processors Pentium III and Pentium4 processors in most PCs Celeron processor sold for low-cost PCs Xeon and Itanium for high-end workstations and network servers Other processors Cyrix and AMD make Intel-compatible microprocessors PowerPC chips used primarily in Macintosh computers Compaq s Alpha microprocessor used in high-end servers January 23, 2003 35

Memory Components Semiconductor Memory RAM and ROM Flash Memory January 23, 2003 36

Semiconductor Memory Used by most modern computers Reliable, inexpensive, and compact Volatile: requires continuous electric current If the current is interrupted, data is lost Complementary Metal Oxide Semiconductor (CMOS) Retains information when power is shut down Used to store information needed when the computer boots January 23, 2003 37

Random Access Memory Data can be accessed randomly Memory address 10 can be accessed as quickly as memory address 10,000,000 Types: Static RAM (SRAM) Dynamic RAM (DRAM) Packaged on circuit boards Single in-line memory modules (SIMMS) Dual in-line memory modules (DIMMS) January 23, 2003 38

Static RAM Retains its contents with intervention from CPU Faster and more expensive than DRAM Typically used for Level 2 cache January 23, 2003 39

Dynamic RAM Must be continuously refreshed by CPU or it loses its contents Used for personal computer memory Synchronous DRAM (SDRAM): faster type of DRAM used today Rambus DRAM (RDRAM): faster than SDRAM, will become more commonly used as price declines January 23, 2003 40

Read-Only Memory 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 January 23, 2003 41

Flash Memory Nonvolatile RAM Used in cellular phones, digital cameras, and some handheld computers Flash memory chips resemble credit cards Smaller than disk drive and require less power January 23, 2003 42

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 Bus speed Measured in megahertz (MHz) January 23, 2003 43

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 January 23, 2003 44

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

Expansion Buses Add peripheral devices to system Expansion board Port Common expansion buses January 23, 2003 46

Expansion Boards Connect to expansion slots on motherboard Used to connect peripheral devices January 23, 2003 47

Ports External connectors to plug in peripherals such as printers Two types of ports Serial: transmit data one bit at a time Used for slow devices such as the mouse and keyboard Parallel: transmit groups of bits together side-byside Used for faster devices such as printers and scanners January 23, 2003 48

Common Expansion Buses and Ports Industry Standard Architecture (ISA) bus Used for slow devices such as the mouse and modem Peripheral Component Interconnect (PSI) bus Used for faster devices such as hard disks Accelerated Graphics Port (AGP) Provides faster video performance Universal Serial Bus (USB) port Allows you to convert many devices in a series into the USB port IEEE 1394 bus A high-speed bus normally used to connect video equipment PC Card bus Used on laptops to plug in a credit-card sized device January 23, 2003 49

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 January 23, 2003 50

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) Comparison of clock speed only meaningful between identical microprocessors January 23, 2003 51

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 Megaflop: one million floating-point operations Measures ability of computer to perform complex mathematical operations January 23, 2003 52

Cache A temporary storage area Speeds up data transfer within computer Memory cache Processor cache January 23, 2003 53

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 January 23, 2003 54

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 January 23, 2003 55

RISC Technology Reduced Instruction Set Computing Uses a small subset of instructions Fewer instructions increases speed Drawback: complex operations have to be broken down into a series of smaller instructions Traditional processors use Complex Instruction Set Computing (CISC) January 23, 2003 56

Parallel Processing and Pipelining Pipelining A variation of traditional serial processing Parallel Processing Using multiple processors at once January 23, 2003 57

Pipelining Feeds a new instruction into CPU at each step of the machine cycle Instruction 2 fetched when instruction 1 is being decoded, rather than waiting until cycle is complete January 23, 2003 58

Parallel Processing Control processor divides problem into parts Each part sent to separate processor Each processor has its own memory Control processor assembles results Some computers using parallel processing operate in terms of teraflops: trillions of floating-point instructions per second January 23, 2003 59

Memory: Many Names Primary storage Primary memory Main storage Internal storage Main memory January 23, 2003 60