Objectives Identify the components of the central processing unit and how they work together and interact with memory Describe how program instructions.

Slides:



Advertisements
Similar presentations
Chapter 4 The Central Processing Unit
Advertisements

1 Chapter 2 The Digital World. 2 Digital Data Representation.
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.
Digital Data Representation
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.
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
MIS 175 Spring Learning Objectives When you finish this chapter, you will: –Recognize major components of an electronic computer. –Understand how.
Chapter 2 System Unit Components Discovering Computers 2012: Chapter
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
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Eleventh Edition Copyright © 2015 Pearson Education, Inc.
BLOCK DIAGRAM OF COMPUTER
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.
CSC 101 Introduction to Computing Lecture 9 Dr. Iftikhar Azim Niaz 1.
C4- The Central Processing Unit: What Goes On Inside the Computer.
Chapter 4 The System Unit: Processing and Memory Prepared by : Mrs. Sara salih.
Writer:-Rashedul Hasan Editor:- Jasim Uddin
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
Practical PC, 7th Edition Chapter 17: Looking Under the Hood
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.
MBMPowered by DeSiaMore System Unit 1. MBMPowered by DeSiaMore Definition The system unit/system cabinet is a container that houses most of the electronic.
Lesson 2 — How Does A Computer Process Data?
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.
Your Interactive Guide to the Digital World Discovering Computers 2012 Edited by : Noor Alhareqi.
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,
Module 3 Introduction To Computer System : Structure & Processes Introduction To Computer System : Structure & Processes.
Computer Confluence 7/e © 2006 Prentice-Hall, Inc.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
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.
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” MODULE 3 INTRODUCTION TO COMPUTER SYSTEM: STRUCTURE & PROCESSES.
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
COMPUTER SYSTEM A computer system is define as combination of components designed to process data and store files. A computer system consists of four.
Your Interactive Guide to the Digital World Discovering Computers 2012.
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.
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?
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,
The Central Processing Unit: What Goes on Inside the Computer
Objectives Overview Differentiate among various styles of system units on desktop computers, notebook computers, and mobile devices Identify chips, adapter.
Discovering Computers 2011: Living in a Digital World Chapter 4
The Central Processing Unit
Edited by : Noor Alhareqi
Edited by : Noor Alhareqi
Edited by : Noor Alhareqi
Computers: Tools for an Information Age
Edited by : Noor Alhareqi
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:

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

Microprocessor Microprocessor - is a computer processor that incorporates the functions of a computer's central processing unit (CPU) on a single integrated circuit (IC), or at most a few integrated circuits. The microprocessor is a multipurpose, programmable device that accepts digital data as input, processes it according to instructions stored in its memory, and provides results as output. It is an example of sequential digital logic, as it has internal memory. Microprocessors operate on numbers and symbols represented in the binary numeral system. The integration of a whole CPU onto a single chip or on a few chips greatly reduced the cost of processing power. The integrated circuit processor was produced in large numbers by highly automated processes, so unit cost was low. Single-chip processors increase reliability as there are many fewer electrical connections to fail. As microprocessor designs get faster, the cost of manufacturing a chip (with smaller components built on a semiconductor chip the same size) generally stays the same.

CPU

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)

Central Processing Unit (CPU) Is the electronic circuitry within a computer that carries out the instructions of a computer program by performing the basic arithmetic, logical, control and input/output (I/O) operations specified by the instructions. Traditionally, the term "CPU" refers to a processor, more specifically to its processing unit and control unit (CU), distinguishing these core elements of a computer from external components such as main memory and I/O circuitry. The form, design and implementation of CPUs have changed over the course of their history, but their fundamental operation remains almost unchanged. Principal components of a CPU include the arithmetic logic unit (ALU) that performs arithmetic and logic operations, processor registers that supply operands to the ALU and store the results of ALU operations, and a control unit that fetches instructions from memory and "executes" them by directing the coordinated operations of the ALU, registers and other components. Most modern CPUs are microprocessors, meaning they are contained on a single integrated circuit (IC) chip. An IC that contains a CPU may also contain memory, peripheral interfaces, and other components of a computer; such integrated devices are variously called microcontrollers or systems on a chip (SoC). Some computers employ a multi-core processor, which is a single chip containing two or more CPUs called "cores"; in that context, single chips are sometimes referred to as "sockets". Array processors or vector processors have multiple processors that operate in parallel, with no unit considered central.

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

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

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

Registers Special-purpose High-speed Temporary storage Located inside CPU 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

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

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 Nibble Byte Word Long Word

Bit Short for binary digit – Two possible values: 0 and 1 – Can never be empty – Smallest memory unit Basic unit for storing data 0 means off/no/false, 1 means on/yes/true

Nibble A nibble (often nybble or even nyble to match the vowels of byte) is a four-bit process, or half an octet. It is also known as half-byte

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

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

Long Word Longer than 64 bits

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

Storage Sizes NameEqual to:Size in Bytes Bit1 bit1/8 Nibble4 bits1/2 (rare) Byte8 bits1 Kilobyte1,024 bytes1,024 Megabyte1,024 kilobytes1,048,576 Gigabyte1,024 megabytes1,073,741,824 Terrabyte1,024 gigabytes1,099,511,627,776 Petabyte1,024 terrabytes1,125,899,906,842,624 Exabyte1,024 petabytes1,152,921,504,606,846,976 Zettabyte1,024 exabytes1,180,591,620,717,411,303,424 Yottabyte1,024 zettabytes1,208,925,819,614,629,174,706,176 Then there is the hypothetical "Googolbyte" which would be a number of bytes equal to a 10 followed by 100 zeroes.

Executing Programs Control Unit 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

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

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

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

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

Machine Cycle -Example

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 (i.e., Apple vs Intel)

Example get instruction from address location 2110 decipher instruction  Z = X + Y movX into register A (the accumulator) movY into register B add register B to register A – Result stays in accumulator store result in memory location symbolically addressed by Z

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

EBCDIC Extended Binary Coded Decimal Interchange Code Used primarily on IBM and IBM-compatible mainframes

Unicode Universal 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

Microprocessor Central processing unit etched on silicon chip Contain tens of millions of tiny transistors Key components: – Central processing unit Registers System clock

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) Comparison of clock speed only meaningful between identical microprocessors

Single vs Dual vs Quad Cores Processors