1 / 14

INFORMATION TECHNOLOGY

INFORMATION TECHNOLOGY. The Central Processing Unit (CPU) and the Machine Cycle. Central Processing Unit (CPU). The C entral P rocessing U nit (CPU) is the most important hardware component of a computer system.

Download Presentation

INFORMATION TECHNOLOGY

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. INFORMATION TECHNOLOGY The Central Processing Unit (CPU) and the Machine Cycle

  2. Central Processing Unit (CPU) • The Central Processing Unit (CPU) is the most important hardware component of a computer system. • All the processing takes place in the CPU as, a result it is commonly referred to as the “brain” of the computer.

  3. Components of the CPU The CPU consists of: • Control Unit (CU) – controls the operations of the CPU • Arithmetic Logic Unit (ALU) – performs operations such as addition, subtraction, multiplication, division and logical operations. • High speed memories such as Registers and Cache

  4. Machine Cycle • Each time the CPU executes an instruction, it takes a series of steps. The complete series of steps is called a machine cycle.

  5. Stages of the Machine Cycle The series of steps that are carried out during the Machine Cycle are the: • Fetch Stage • Decode Stage • Execution Stage • Storing

  6. Fetch Stage In the Fetch Stage, the Control Unit takes the instruction that is store in the Main Memory.

  7. Decode Stage In the Decode Stage, the Control Unit translates the instruction into machine language or binary code.

  8. Execution Stage In the execution stage, the Control Unit or Arithmetic Logic Unit then performs (carry out) the instruction from the decode stage.

  9. Storing The Control Unit or Arithmetic Logic Unit then place the result from the execution stage into memory.

  10. Diagram of the Machine Cycle

  11. Instruction Time (I-Time) The instruction time is the time it takes the Control Unit to fetch (get) and decode (translate) the instruction from memory.

  12. Execution Time (E-Time) The execution time is the time it takes the instruction to be performed (execute) and the result placed in memory.

  13. Diagram showing the relation between Instruction Time and Execution Time I-Time Fetch E-Time Memory Decode Execute

  14. Practice Questions Which part of the Central Processing Unit is responsible for the following: • Fetch X • Fetch Y • Check if X is greater than Y • Add X and Y and store the result in Z

More Related