M211 – Central Processing Unit

Slides:



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

Machine cycle.
The Central Processing Unit: What Goes on Inside the Computer.
CENTRAL PROCESSING UNIT
Introduction to Computer Systems
GCSE Computing - The CPU
Computer Applications NCBS Stage 1. The Central Processing UnitSlide 2Computer Applications Stage 1 Course Content and Assessment Practical – 60% (2 Hrs.
 Central Processing Unit(CPU) Central Processing Unit(CPU)  Components of the CPU Components of the CPU  Actions Performed by CPU Actions Performed.
Introduction Computer Hardware Jess 2006 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.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
KEY COMPONENTS OF A COMPUTER SYSTEM ANDREW LOLAVAR.
Processing Devices.
Processor Structure & Operations of an Accumulator Machine
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Computer Processing of Data
Computing hardware CPU.
COMPUTER SYSTEM.
Central Processing Unit
Week 2.  Understand what the processor is and what it does.  Execute basic LMC programs.  Understand how CPU characteristics affect performance.
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
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.
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.
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Important Concepts  Parts of the CPU  Arithmetic/Logic Unit  Control Unit  Registers  Program Counter  Instruction Register  Fetch/Decode/Execute.
J. Stover, CSD-HS.  A computer is an electronic device that is programmed to accept data (input), process it into useful information (output), and store.
Computer Systems - Processor. Objectives To investigate and understand the structure and role of the processor.
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.
CENTRAL PROCESSING UNIT. CPU Does the actual processing in the computer. A single chip called a microprocessor. Composed of an arithmetic and logic unit.
1 Central Processing Unit (CPU) Consists of complex set of electronic circuitry Executes stored program instructions Three components –Registers –Control.
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.
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
Lecture on Central Process Unit (CPU)
Central Processing Unit (CPU)
HOW A COMPUTER PROCESSES DATA. What is hardware? Hardware is the electric, electronic and mechanical equipment that makes up a computer What is software?
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 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?
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
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.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
What’s going on here? Can you think of a generic way to describe both of these?
The Processor The Main Components Arithmetic/Logic Unit (ALU) Control Unit System Clock Registers.
Computer Hardware What is a CPU.
GCSE Computing - The CPU
The CPU, RISC and CISC Component 1.
Chapter 2.1 CPU.
Central Processing Unit (CPU)
Assembly Language for Intel-Based Computers, 5th Edition
THE CPU i Bytes 1.1.
Chapter 2 – Computer hardware
Components of Computer
Course Name: Computer Application Topic: Central Processing Unit (CPU)
Phnom Penh International University (PPIU)
Components of Computer
Week 3 The Components of the System Unit
CENTRAL PROCESSING UNIT CPU (microprocessor)
CPUs and Motherboards Cody, Emily, and Slavic.
Central Processing Unit
Basic Computer Organization
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.
Presentation transcript:

M211 – Central Processing Unit

At the end of this lesson, students should be able to: Learning Outcomes At the end of this lesson, students should be able to: Describe how data is processed by the CPU Control Unit (CU) Arithmetic Logic Unit (ALU)

Central Processing Unit ‘Like human beings, computers too have a ‘brain’ that processes raw information into unusable data.’ Users input data into the computer system and it is then processed by the Central Processing Unit or the CPU. The result of the processed data is then sent to an output device as usable data.

The Central Processing Unit or CPU is a microprocessor (or processor for short) It is an integrated circuit chip that is capable of processing electronic signals. A CPU is the most important element in a computer system. It interprets instructions given by the software and carries out those instructions by processing data and controlling the rest of the computer’s components.

Nowadays, processors are found in all kinds of electronic devices such as cell phones, calculators, automobile engines, and even industrial and medical equipment. They process information so that humans can enjoy their effective and efficient operation.

A CPU consists of two subcomponents; the Control Unit (CU) and the Arithmetic Logic Unit (ALU)

Control Unit (CU) Basically the control unit’s function is to direct the CPU to process data. The control unit extracts instructions from memory and decodes and executes them. Under the direction of a program, the control unit manages a four-step basic operation which is called a machine cycle or processing cycle. Fetch and decode is in the instruction cycle whereas execute and store is in the execution cycle. Today’s microprocessor can go through this entire four step process billions of times per second.

Arithmetic Logic Unit (ALU) Control Unit Bus Memory Decode Prefetch The Arithmetic Logic Unit (ALU), as its name implies, can perform all arithmetic and logical operations. Arithmetic operation is an operation that performs a function of two numbers. This function is usually one of the class of operations: add, subtract, multiply and divide. Logic operation is an operation on logical values, producing a Boolean result. In general there are 16 logic operations over one or two operands; they include AND, OR, NOT, NAND, NOR, XOR and equivalence.

How Data Is Processed by The CPU When a user starts a program, its instructions are transferred from the storage device to the memory. The user enters the data needed by the program. The control unit then interprets and executes instructions in the memory. The Arithmetic Logic Unit then performs calculations on the data in the memory. As a result, information is then stored in the memory. Information can then be sent to an output device or a storage device.

Machine Cycles Each time the CPU executes an instruction, it takes a series of steps. The completed series of steps is called the machine cycle. A machine cycle itself can be broken down into two smaller cycles: the instruction cycle and the execution cycle. At the beginning of the machine cycle (that is, during the instruction cycle), the CPU takes two steps:

Fetching. Before the CPU can execute an instruction, the control unit must retrieve (or fetch) a command or data from the computer’s memory and puts it into a register. Decoding. The control unit then decodes (or decides what it means) the command into instructions that correspond to those in the CPU’s instruction set. It also determines the memory location of the data required. The first 2 steps together are called instruction time, or I-time.

At this point, the CPU is ready to begin the execution cycle: Executing. When the command is executed, it is the arithmetic / logic unit executes the arithmetic or logical instruction. The ALU is given control and performs the actual operation on the data. Storing. The control unit may be required to store the results of an instruction in memory or in a register (but this condition is not always required). Steps 3 and 4 together are called execution time, or E-time.

Although the process is complex, the computer can accomplish it at an incredible speed, translating millions of instructions every second. In fact, CPU performance is often measured in millions of instructions per second (MIPS). Newer CPUs can be measured in billions of instructions per second (BIPS).

Even though most microprocessors execute instructions rapidly, newer ones can perform even faster by using a process called pipelining (or pipeline processing). In pipelining, the control unit begins a new machine cycle – that is, it begins executing a new instruction – before the current cycle is completed.

Executions are performed in stages: When the first instruction completes the “fetching” stage, it moves to the “decode” stage and a new instruction is fetched. It is helpful to think of a pipeline as an assembly line. Each instruction is broken up into several parts. Once the first part of an instruction is done, it is passed to the second part. Since the first step in the line is now idle, the pipeline then feeds a new step one. Using this technique, newer microprocessors can execute up to 20 instructions simultaneously.

Modern operating systems, support the running of many programs, or multitasking. The CPU may be asked to perform tasks for more than one program. To make this work, the OS and the CPU create threads. A thread is one instruction from a program. The CPU will execute one thread from a program at one time. Since the CPU can perform each thread quickly, the user thinks that each program is being run at the same time. Newer processors support hyperthreading. Hyperthreading allows multiple threads to be executed at one time.

End of M211