Published on

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


  1. 1. <ul><li>Central Processing Unit </li></ul>
  2. 2. CPU
  3. 3. <ul><li>Introduction, Components, </li></ul><ul><li>Function & Operation </li></ul>
  4. 4. Introduction <ul><li>CPU is the &quot;brain&quot; of the computer, it reads and executes program instructions, performs calculations and makes decisions. </li></ul><ul><li>The CPU is responsible for storing and retrieving information on disks and other media, It controls all internal and external devices, performs arithmetic and logic operations. </li></ul>
  5. 5. Brief History CPU history starts in 1971, when Intel, for the first time combined multiple transistors to form a Central Processing Unit (Microprocessor) named Intel 4044 . After the 8 years first Personal Computer was introduced. Today there are several different manufactures of computer processors. However Intel and AMD are the leaders in the PC market.
  6. 6. <ul><li>Components </li></ul><ul><li>& </li></ul><ul><li>Function </li></ul>
  7. 7. CPU Registers <ul><li>Registers are a group of circuits used for memory addressing, data operation and processing. Some of the registers are general purpose and some are reserved for certain functions. </li></ul><ul><li>Accumulator register is special data register stores the result of the last processing step of the ALU. </li></ul><ul><li>Program counter (PC) : Contains the addresses and status of an instructions. This CPU register always contains the memory address where the next instruction to be performed. Its contents is copied into the MAR before an instruction is fetched from the main memory. </li></ul><ul><li>Instruction Register (IR) - A special register that holds sequence of instructions to be performed. </li></ul>
  8. 8. <ul><li>CPU Registers </li></ul>Memory Registers are also known as main memory, main store, central memory, immediate access memory. It is part of the CPU registers where data and instructions are held. Memory Buffer Register (MBR) This register serves as an interface between the CPU and main memory, anything needed by the CPU (instruction or data) is first placed here before it goes to its final destination. Memory Address Register (MAR) – used when another instruction is needed in the IR, or a value is to be loaded into the Accumulator. Read Only Memory (ROM) - Data is stored permanently inside this chip. It can't be removed.
  9. 9. CPU Registers <ul><li>Data registers is basically used to store data. </li></ul><ul><li>Index register used to store the index of memory address. </li></ul><ul><li>Condition registers are used to determine whether this instruction should execute or not. </li></ul><ul><li>Floating point registers are the type of data register that store floating point numbers. </li></ul><ul><li>Constant registers are used to store read only values. </li></ul><ul><li>Special purpose register is used to store the status of the program. It consist of program counter, stack pointer and status registers. </li></ul><ul><li>Storage register : holds the information on its way to and from the main memory. </li></ul><ul><li>Input/output register : communicates with the input/output devices. </li></ul><ul><li>General purpose register hold the data and addresses. </li></ul>
  10. 10. Clock Pulses The CPU is driven by one or more repetitive clock circuits that send a stream (series) of pulses throughout the CPU’s circuitry, The CPU uses these clock pulses to synchronize its operations. Clock pulses are measured in Hertz, or number of pulses per second. For instance, a 2-gigahertz (2-GHz) processor has 2 billion clock pulses passing through it per second. Clock pulses are called the speed of a processor.
  11. 11. Data Width <ul><li>If the data is 8-bit ALU then it can add/subtract/multiply/etc. two 8-bit numbers, </li></ul><ul><li>while a 32-bit ALU data can manipulate </li></ul><ul><li>32-bit numbers. </li></ul><ul><li>An 8-bit data would have to execute four instructions </li></ul><ul><li>to add two 32-bit numbers, while a 32-bit ALU </li></ul><ul><li>can do it in one instruction. </li></ul><ul><li>MIPS </li></ul><ul><li>Stands for &quot;millions of instructions per second&quot; and </li></ul><ul><li>is a rough measure of the CPU speed. </li></ul>
  12. 12. MATH CO-PROCESSORS Math coprocessors were additional chips. This additional coprocessors allow the hardware for floating-point math. Math coprocessors will speed your computer's overall processing when utilizing software applications.
  14. 15. Memory Unit <ul><li>  </li></ul><ul><li>The Memory Unit is the part of the computer that holds data and instructions for processing, </li></ul><ul><li>Although it is closely associated with the CU but is separate from it. </li></ul><ul><li>Memory associated with the CPU is also called primary storage, main storage, internal storage and main memory. </li></ul><ul><li>When we load software from a floppy disk, hard disk or CD-ROM, it is stored in the Main Memory. </li></ul>
  15. 16. Memory Unit <ul><li>  </li></ul><ul><li>There are two types of computer memory inside the computer, RAM and ROM . </li></ul><ul><li>  </li></ul><ul><li>Random Access Memory ( RAM ) </li></ul><ul><li>This is the main store and is the place where the programs and software we load gets stored. When the CPU runs a program, it fetches the program instructions from the RAM and carries them out. </li></ul><ul><li>If the CPU needs to store the results of calculations it can store them in RAM. </li></ul><ul><li>When we switch a computer off, whatever is stored in the RAM gets erased. </li></ul>
  16. 17. Memory Unit <ul><li>  </li></ul><ul><li>Read Only Memory (ROM) </li></ul><ul><li>The CPU can only fetch or read instructions from ROM. </li></ul><ul><li>It comes with instructions permanently stored inside </li></ul><ul><li>and these instructions cannot be over-written by the computer's CPU. </li></ul><ul><li>ROM memory is used for storing special sets of instructions which the computer needs when it starts up. </li></ul><ul><li>When we switch the computer off, the contents of the </li></ul><ul><li>ROM does not become erased but remains stored permanently.    </li></ul>
  17. 18. Cache Memory Cache memory is extremely fast memory that is built into a computer’s CPU, or located next to it on a separate chip. The CPU uses cache memory to store instructions that are repeatedly required to run programs, improving overall system speed. A cache is a temporary storage area where frequently accessed data can be stored for rapid access.
  18. 19.   Control Unit <ul><li>Control Unit (CU) - That part of the computer is designed to decode program instructions held in the main memory using IR, It access instructions in sequence, interprets them and then directs their implementation whatever stored in program instructions register. </li></ul><ul><li>The CU must communicate with both the ALU and MU. </li></ul><ul><li>The CU handles all peripheral and auxiliary storage devices linked to the computer.   </li></ul>
  19. 20. Arithmetic Logic Unit <ul><li>A rithmetic and logic unit (ALU) is the part where actual computations take place. It consists of circuits which perform arithmetic operations (e.g. addition, subtraction, multiplication, division) over data received from memory and capable to compare numbers. </li></ul><ul><li>The ALU executes both arithmetic and logical operations. </li></ul><ul><li>Arithmetic Operations include addition, subtraction, multiplication and division. </li></ul><ul><li>Logical Operation compare numbers, letters and special characters. </li></ul><ul><li>The Accumulator Register is used to accumulate results. It is the place where the answers from many operations are stored temporarily before being put out to the computer's memory. </li></ul>
  20. 22. <ul><li>Operation </li></ul>
  21. 23. CPU Operation <ul><li>CPU as termed computer brain or powerful calculator, is executes a sequence of stored instructions called a program, This program is in the form of numbers which is placed in computer memory. </li></ul><ul><li>There are four phases of CPU Operation </li></ul><ul><ul><li>Fetch instruction </li></ul></ul><ul><ul><li>Decode instruction </li></ul></ul><ul><ul><li>Execute instruction </li></ul></ul><ul><ul><li>Result </li></ul></ul>
  22. 24. CPU Operation <ul><li> Fetch instruction : </li></ul><ul><ul><li>Fetch is dealing with retrieving an instruction from main memory. </li></ul></ul><ul><ul><li>after an instruction is fetched, the PC is incremented in memory locations. </li></ul></ul><ul><ul><li>Decode : </li></ul></ul><ul><ul><li>Decoder fetches data is broken up into parts which are related to other portions of the CPU, this is termed as opcode, indicates which operation to perform. </li></ul></ul>
  23. 25. CPU Operation Execute : After decode steps, the execute step is performed. During this step, various portions of the CPU are connected so they can perform the desired operation. Result : The final step is returns (writeback) the results of the executed step will be kept in memory registers and then extends to output devices for display
  24. 26. <ul><li>Pentium </li></ul><ul><li>& </li></ul><ul><li>MMX Technology </li></ul>
  25. 27. Pentium & MMX Technology In October 1996 Intel released the Pentium MMX with the same basic micro architecture combined with MMX instructions, larger caches, and some other enhancements, Pentium MMX has New design, adding some enhancements and new capabilities over &quot;classic&quot; Pentium in the same chip. Difference between the Pentium with MMX and the Pentium Classic is the inclusion of the MMX instruction set extension.
  26. 28. Pentium & MMX Technology Running software or multimedia that is designed for MMX on a Pentium MMX will result in a significant increase in performance over the regular Pentium. Running non-MMX software on the MMX chip results in an improvement of about 20% over a regular Pentium of the same clock speed and enhancements in cache memory.