150 likes | 293 Views
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.
E N D
INFORMATION TECHNOLOGY The Central Processing Unit (CPU) and the Machine Cycle
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.
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
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.
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
Fetch Stage In the Fetch Stage, the Control Unit takes the instruction that is store in the Main Memory.
Decode Stage In the Decode Stage, the Control Unit translates the instruction into machine language or binary code.
Execution Stage In the execution stage, the Control Unit or Arithmetic Logic Unit then performs (carry out) the instruction from the decode stage.
Storing The Control Unit or Arithmetic Logic Unit then place the result from the execution stage into memory.
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.
Execution Time (E-Time) The execution time is the time it takes the instruction to be performed (execute) and the result placed in memory.
Diagram showing the relation between Instruction Time and Execution Time I-Time Fetch E-Time Memory Decode Execute
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