The Central Processing Unit (CPU)

Slides:



Advertisements
Similar presentations
Components of a computer system
Advertisements

The CPU The Central Presentation Unit What is the CPU?
Discovering Computers 2010
Processor Technology and Architecture
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
GCSE Computing - The CPU
CPU Describe the purpose of the CPU
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.
Inside The CPU. Buses There are 3 Types of Buses There are 3 Types of Buses Address bus Address bus –between CPU and Main Memory –Carries address of where.
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
Processor Structure & Operations of an Accumulator Machine
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
Writer:-Rashedul Hasan Editor:- Jasim Uddin
Lecture#14. Last Lecture Summary Memory Address, size What memory stores OS, Application programs, Data, Instructions Types of Memory Non Volatile and.
Internal hardware and external components of a computer Three-box Model  Processor The brain of the system Executes programs A big finite state machine.
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
Computing hardware CPU.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Presented by: Sergio Ospina Qing Gao. Contents ♦ 12.1 Processor Organization ♦ 12.2 Register Organization ♦ 12.3 Instruction Cycle ♦ 12.4 Instruction.
Intermediate 2 Computing Computer structure. Organisation of a simple computer.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Week 2.  Understand what the processor is and what it does.  Execute basic LMC programs.  Understand how CPU characteristics affect performance.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: CPU.
The Central Processing Unit (CPU) and the Machine Cycle.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Computer Hardware The Processing Unit.
Computer Systems - Processor. Objectives To investigate and understand the structure and role of the processor.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Stored Programs In today’s lesson, we will look at: what we mean by a stored program computer how computers store and run programs what we mean by the.
Electronic Analog Computer Dr. Amin Danial Asham by.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
System Unit Working of CPU. The CPU CPU The CPU CPU stands for central processing unit. it is brain of computer It is most important component of the.
Computer operation is of how the different parts of a computer system work together to perform a task.
HOW COMPUTERS WORK THE CPU & MEMORY. THE PARTS OF A COMPUTER.
Central Processing Unit (CPU) MATTHEW BOWEN. Function  The function of the CPU is to execute all of the commands and calculations or “processes” that.
System Hardware FPU – Floating Point Unit –Handles floating point and extended integer calculations 8284/82C284 Clock Generator (clock) –Synchronizes the.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
M211 – Central Processing Unit
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Stored Program Concept Learning Objectives Learn the meaning of the stored program concept The processor and its components The fetch-decode-execute and.
Computer Hardware What is a CPU.
CPU Lesson 2.
GCSE Computing - The CPU
GCSE OCR Computing A451 The CPU Computing hardware 1.
The CPU, RISC and CISC Component 1.
Chapter 10: Computer systems (1)
Chapter 2.1 CPU.
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
The Central Processing Unit
THE CPU i Bytes 1.1.
Components of Computer
CENTRAL PROCESSING UNIT CPU (microprocessor)
Computer Architecture
Teaching Computing to GCSE
Number Representations and Basic Processor Architecture
A451: Computer Systems and Programming
Central Processing Unit
1-2 – Central Processing Unit
GCSE Computing - The CPU
WJEC GCSE Computer Science
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

The Central Processing Unit (CPU) 1.2 Computing hardware The Central Processing Unit (CPU)

What is the purpose and function of the CPU? The purpose of the Central Processing Unit (CPU) is to carry out program instructions. Each CPU type is designed to execute a specific group of instructions, the instruction set. Although it might seem that a computer is carrying out many tasks simultaneously, the CPU is actually only ever processing one instruction at a time and is constantly switching between programs (sets of instructions). To meet this purpose, the CPU carries out a series of functions that are carried out in a continuous cycle.

What is the purpose and function of the CPU? 1 - The Fetch step: This involves retrieving an instruction from a memory address and storing it in the Current Instruction register. The address of the instruction is stored in another register called the Program Counter (PC). After an instruction is fetched, the PC is updated so the CPU knows the address of the next instruction it has to fetch. 2 - The Decode step: This involves the CPU identifying the operation code (op-code) part of the instruction which tells it which operation to perform. If the op-code requires the CPU to act on some data then the second part of the instruction will contain either the data or the memory address where the data is stored.

What is the purpose and function of the CPU? 3 - The Execute step: In this step the control unit links together the parts of the CPU that are needed to actually carry out (execute) the instruction. Examples: If the instruction involved integer arithmetic or logical operations then the arithmetic logic unit (ALU) would be connected to the relevant memory locations so that: The data for the calculation can be passed along a data bus to the ALU as input. The ALU can execute the required operation The result of the operation can then be passed from the ALU along a data bus as output. Some types of instructions alter the Program Counter rather than alter data. This allows programs to carry out iteration loops and conditional program execution rather than stepping through instructions in sequence. Some instructions change the state of single-bit flag registers. These TRUE/FALSE registers are used to indicate the result of an execute step, for example a flag can be set to TRUE if two numbers are compared and found to be equal or if a subtraction produces a zero or a negative result. Some instructions involve an additional write-back step if data is written back to RAM.

What are the components of a typical CPU? There are huge variations in CPU designs but most will share the following key components: An electronic clock that regulates the rate at which the CPU runs and synchronizes all the various computer components. The higher the clock frequency, the more instructions the CPU can execute per second. The speed of the clock (and therefore the speed of the CPU) is measured in Megahertz (MHz). The control unit which performs the tasks of fetching, decoding and managing the execution of instructions and the storing of the results. It does this mainly by controlling the links between the other components of the CPU. It also contains various registers such as:  the Program Counter which stores the memory address of the next instruction.  the Current Instruction register which stores the instruction currently being executed.

What are the components of a typical CPU? An instruction unit which consists of: The Arithmetic Logic Unit (ALU) which executes basic arithmetic and logical operations on integer data that it is linked to. Examples of such operations include: Integer arithmetic operations (addition, subtraction) Logic operations (AND, NOT, OR, XOR) The Floating Point Unit (FPU) which performs math functions on floating point numbers (non-integer numbers). Various registers such as the accumulator that are used to temporarily store data while instructions are being executed.

What are the components of a typical CPU? Buses, which are sets of tiny parallel wires that carry data between CPU components and between the CPU and external devices and RAM. A 32 wire bus can carry a 32 bit memory address or a 32 bit item of data. The three main bus types are: address buses - used to set which memory address a CPU component is linked to for a read/write operation. data buses - used to exchange the data between a memory address and the CPU when a read/write operation is carried out. control buses - used to transfer command codes and return status signals between components of the CPU and external devices. The bus management unit which manages the transfer of data along the external bus connections, including the links to RAM.

C.P.U

How do the characteristics of a CPU affect it's performance? Clock Speed: This is the rate at which the CPU runs and is controlled by an electronic clock built into the CPU. The frequency of this clock is measured in Hertz (Hz) so a 900 MHz CPU would complete 900 million clock cycles per second. Few of the instructions that the CPU processes are actually completed in a single clock cycle and the actual number of cycles required will depend on the CPU design. This means that comparing one CPU with another just on clock speed can be too simplistic. SUMMARY: A CPU with a high clock speed will process more instructions per second and will therefore have a higher performance than the equivalent CPU with a lower clock speed.

How do the characteristics of a CPU affect it's performance? Cache Size: If the CPU can process instructions and data faster than they can be fetched or exchanged with RAM then the CPU is in effect idle for some clock cycles. One solution is to build very fast cache memory into the CPU and use it as a buffer. SUMMARY: A CPU with a larger cache memory and more levels of cache memory will have a higher performance than one without cache memory. Number of cores: Processors originally had only one core so could only process one instruction at a time. A multi-core processor is made up of two or more independent processors (called cores). A dual-core processor contains two cores and a quad-core processor contains four cores. Each core can process instructions independently of the other cores. The biggest performance gain when using a multi-core processor is when the software has been specifically written to run on multiple cores. SUMMARY: A multi-core CPU will have a higher performance than a single-core CPU with the same clock speed.

Higher CPU performance OVERALL SUMMARY: Lower CPU performance Higher CPU performance Low clock speed High clock speed Small or no cache Large, multi-level cache Single core Multi-core