Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

The Fetch – Execute Cycle
Machine cycle.
Computer Architecture and the Fetch-Execute Cycle
Central Processing Unit
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Stored Program Concept: The Hardware View
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Elements of the Computer (How a processor works)
1 Sec (2.3) Program Execution. 2 In the CPU we have CU and ALU, in CU there are two special purpose registers: 1. Instruction Register 2. Program Counter.
The Computer Processor
Lecture 13 - Introduction to the Central Processing Unit (CPU)
CPU Fetch/Execute Cycle
Computer Structure.
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
Computer Architecture and the Fetch-Execute Cycle
Computer Architecture and the Fetch-Execute Cycle
The CPU Central Processing Unit. 2 Reminder - how it fits together processor (CPU) memory I/O devices bus.
Stages of Processing.  When a computer is given instructions, a series of tasks must take place in order for a result to be accomplished  To accomplish.
Section one revision:1. Computer Systems To be able to Identify and describe computer systems To demonstrate an understanding of the Central Processing.
The Central Processing Unit (CPU) and the Machine Cycle.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Fetch-execute cycle.
Computer Systems - Registers. Starter… Discuss in pairs the definition of the following Control Unit Arithmetic and Logic Unit Registers Internal clock.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Studies/ICT SS2
© GCSE Computing Candidates should be able to:  describe the characteristics of an assembler Slide 1.
COMPILERS CLASS 22/7,23/7. Introduction Compiler: A Compiler is a program that can read a program in one language (Source) and translate it into an equivalent.
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.
Dale & Lewis Chapter 5 Computing components
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.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Lec 4-2 Five operations of the machine cycle Fetch- fetch the next program instruction from memory. (PC+1); instruction to IR Decode- decode the instruction.
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;
Computer Operation What basic hardware components are inside a personal computer?
CPU Lesson 2.
OCR GCSE Computer Science Teaching and Learning Resources
Computing Science Computer Structure: Lesson 1: Processor Structure
Systems Architecture Keywords Fetch Execute Cycle
GCSE OCR Computing A451 The CPU Computing hardware 1.
The CPU, RISC and CISC Component 1.
Von Neumann architecture
Chapter 10: Computer systems (1)
Components of Computer
CPU & its Components CPU stands for central Processing Unit
CENTRAL PROCESSING UNIT CPU (microprocessor)
Computer Architecture
Hook – CPU Knowledge Check
Teaching Computing to GCSE
System Architecture 1 Chapter 2.
COMS 161 Introduction to Computing
CPU Key Revision Points.
von Neumann Architecture CPU
Central Processing Unit
1-2 – Central Processing Unit
Unit 1.1 System Architecture Lesson 2
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Basic components Instruction processing
Information Representation: Machine Instructions
OCR GCSE (9-1) Computer Science (J276)
Computer Architecture
Little work is accurate
Sec (2.3) Program Execution.
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as fetch and execute instructions stored in memory

The main components of a computer MAIN MEMORY (RAM) SECONDARY STORAGE CENTRAL PROCESSING UNIT (CPU) INPUT DEVICES OUTPUT

The CPU

Central Processing Unit (CPU) The Central Processing Unit or CPU is arguably the most important component of a computer What does it do? If it was one organ in the human body what would it be?

Central Processing Unit (CPU) You can think of the CPU as being like the brain in a human It is responsible for all of a computer’s processing It processes data by performing the fetch-decode- execute cycle.

Fetch – Decode – Execute cycle The CPU operates by repeating three operations: FETCH – causes the next instruction and any data involved to be fetched from main memory (RAM) DECODE – decodes the instruction EXECUTE – carries out the instruction Repeat…

Registers in the CPU Program Counter Control Unit ALU Accumulator

Registers in the CPU Program Counter: A special purpose register that holds the address of the next instruction to be executed The Accumulator: Holds data, such as numbers during arithmetic calculations Program Counter Accumulator

Program Counter 1 2 3 4 5 LDA 28 6 ADD #2 7 STO 10 8 9 10 11 12 The Program Counter points to the next instruction that needs to be executed It is located in the Control Unit The Program Counter is incremented after fetching an instruction This moves it on to point to the next instruction to be executed Program Counter 5

Accumulator The accumulator is where arithmetic and logic results are temporarily stored much like the M+ function on a calculator Without the accumulator, it would be necessary to write the result of each calculation to main memory The accumulator speeds up the storage and retrieval of calculations

The Arithmetic Logic Unit The ALU or Arithmetic Logic Unit performs: Logical operations, shift operations and arithmetic operations Accumulator 8 ALU Main Memory X = 3 Y = 5 ADD X, Y

MAR (Memory Address Register) MDR (Memory Data Register) Memory registers With the von Neumann architecture, both the instructions and the data are stored together in RAM Two registers are required to implement this: MAR (Memory Address Register) MDR (Memory Data Register)

MAR (Memory Address Register) The MAR holds the address of the current instruction being executed The MAR knows the location of the data that needs to be accessed It keeps track of where data is located MAR (Memory Address Register)

MDR (Memory Data Register) The MDR holds the actual data that is being stored in RAM It acts as a buffer and holds data that is copied from RAM, ready for the CPU to process it MDR (Memory Data Register)

MAR (Memory Address Register) MDR (Memory Data Register) Working together MAR (Memory Address Register) MDR (Memory Data Register) The two work together; The MAR knows where to look for data in RAM, the MDR keeps hold of that data until it’s ready to be used by the CPU Memory MAR (Memory Address Register) MDR (Memory Data Register)

Control Unit The control unit coordinates all of the activities taking place within the CPU Much like the conductor of an orchestra

Processor registers ALU: Temporarily stores arithmetic and logic results PC: Points to the next instruction MDR: Stores the actual data CIR (Current Instruction Register): Holds the current instruction to be executed MAR: Stores the address of the data