GCSE Computing - The CPU

Slides:



Advertisements
Similar presentations
Components of a computer system
Advertisements

The CPU The Central Presentation Unit What is the CPU?
Session Objectives#3 COULD explain the role memory plays in computer processing SHOULD describe the purpose of a CPU and its individual components MUST.
Computer Systems. Computer System Components Computer Networks.
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.
Computer Structure.
Computing Hardware Starter.
Internal hardware and external components of a computer Three-box Model  Processor The brain of the system Executes programs A big finite state machine.
Computing hardware CPU.
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 Hardware The Processing Unit.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
© GCSE Computing Computing Hardware Starter. Creating a spreadsheet to demonstrate the size of memory. 1 byte = 1 character or about 1 pixel of information.
Computer operation is of how the different parts of a computer system work together to perform a task.
The Central Processing Unit (CPU)
Central Processing Unit (CPU) MATTHEW BOWEN. Function  The function of the CPU is to execute all of the commands and calculations or “processes” that.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
A-Level Computing#BristolMet Session Objectives#3 MUST identify components of a CPU SHOULD describe the purpose of a CPU and its individual components.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Software Design and Development Computer Architecture Computing Science.
What’s going on here? Can you think of a generic way to describe both of these?
3.1.4 Hardware a. describe the function and purpose of the control unit, memory unit and ALU (arithmetic logic unit) as individual parts of a computer;
Stored Program Concept Learning Objectives Learn the meaning of the stored program concept The processor and its components The fetch-decode-execute and.
CPU Central Processing Unit
Computer Systems Nat 4/5 Computing Science Computer Structure:
Computer Hardware What is a CPU.
CPU Lesson 2.
Unit 2 Technology Systems
OCR GCSE Computer Science Teaching and Learning Resources
Systems Architecture Keywords Fetch Execute Cycle
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.
Computer Hardware – System Unit
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Discovering Computers 2011: Living in a Digital World Chapter 4
Introduction to microprocessor (Continued) Unit 1 Lecture 2
Lesson Objectives A note about notes: Aims
The Central Processing Unit
THE CPU i Bytes 1.1.
Components of Computer
CENTRAL PROCESSING UNIT CPU (microprocessor)
Teaching Computing to GCSE
System Architecture 1 Chapter 2.
CPU Central Processing Unit
Number Representations and Basic Processor Architecture
CPU Central Processing Unit
Morgan Kaufmann Publishers Computer Organization and Assembly Language
CPU Key Revision Points.
Chapter 5: Computer Systems Organization
Central Processing Unit
Components of a CPU AS Computing - F451.
1-2 – Central Processing Unit
Computer Architecture
Learning Objectives To be able to describe the purpose of the CPU
GCSE Computing - The CPU
A Top-Level View Of Computer Function And Interconnection
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:

GCSE Computing - The CPU Candidates should be able to: state the purpose of the CPU describe the function of the CPU as fetching and executing instructions stored in memory explain how common characteristics of CPUs such as clock speed, cache size and number of cores affect their performance. GCSE Computing - The CPU

The CPU The CPU (Central Processing Unit) is the ‘brains’ of the computer. The purpose of the CPU is to carry out program instructions (each CPU type is designed to understand a specific group of instructions, the instruction set). On personal computers and small workstations, the CPU is housed in a single chip called a microprocessor. A typical modern CPU design showing the pins that connect it to the motherboard

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 The control unit An instruction unit which consists of: The arithmetic logic unit (ALU) The floating point unit (FPU Various registers such as the accumulator. Various buses The bus management unit

typical CPU components – the clock An electronic clock 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).

typical CPU components – the control unit The control unit performs the tasks of: Fetching instructions from memory Decoding the instructions 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.

typical CPU components – the INSTRUCTION unit An instruction unit 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 while instructions are being executed.

typical CPU components – Buses Buses are sets of tiny parallel wires that carry data between CPU components and between the CPU and external devices and RAM. 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 manages the transfer of data along the external bus connections, including the links to RAM.

The functions of the CPU 1 - The Fetch step: This involves retrieving a binary instruction from a memory address and storing it in the Current Instruction register. The memory address of the instruction is stored in a register called the Program Counter (PC) so the CPU can keep track of which instruction is next. After an instruction is fetched, the PC is updated so the CPU knows the address of the next instruction it has to fetch. Prior learning: Students will need to know about memory addresses and memory contents. MEMORY ADDRESS MEMORY CONTENTS 1

The functions of the CPU 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. Prior learning: Students will need to know about memory addresses and memory contents. MEMORY CONTENTS 1 OP-CODE ADDRESS OF DATA 1

The functions of the CPU 3 - The Execute step: In this step the control unit links together the parts of the CPU that are needed to execute the instruction. If the instruction involved integer arithmetic or logical operations then the arithmetic logic unit (ALU) would be connected to the relevant memory locations Some types of instructions alter the program counter rather than produce result data. This allows programs to carry out iteration loops and conditional program execution rather than stepping through instructions in sequence. Some instructions involve an additional write-back step if data is written back to RAM. Prior learning: Students will need to know about memory addresses and memory contents.

CPU characteristics vs. performance Clock speed: 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). The speed that the processor executes instructions is controlled by the clock speed and is measured in MHz (megahertz). The CPU requires a fixed number of clock cycles to perform each instruction. Summary: The higher the clock speed, the more instructions the CPU can execute per second, resulting in a faster running computer system.

CPU characteristics vs. performance Cache size: Cache memory is a small amount of very fast memory that is built into the CPU. Blocks of instructions and data that are in use by the CPU are copied from RAM into cache memory, along with the associated memory addresses. If the CPU needs to access a memory address it first checks the cache memory to see if there is a match. If there is then it access the contents of the cache version. Cache memory is covered in more detail in the memory presentations Summary: A CPU with a larger cache memory and more levels of cache memory will have a higher performance than one without cache memory.

CPU characteristics vs. performance Number of Cores: A multi-core processor is a single computing component with two or more independent actual 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.

Task Answer the questions on page 23 of your text books. Create a visual diagram describing the parts of a CPU and their function using this power point and the video to help you.