1. The CPU and Fetch-Decode-Execute Cycle
The Central Processing Unit (CPU) is often called the 'brain' of the computer. Its main job is to process all the data and instructions that make a computer work. It does this by continuously running a process called the Fetch-Decode-Execute cycle. This cycle is the fundamental operation of a CPU. It involves three main stages: 1. Fetch: The CPU retrieves the next instruction from memory (RAM). 2. Decode: The CPU's Control Unit interprets the instruction to understand what needs to be done. 3. Execute: The instruction is carried out. This might involve a calculation by the Arithmetic Logic Unit (ALU), moving data, or changing the state of the computer.
Key term
Examiner insight
Common pitfall
Worked example 13 marks
Describe the three stages of the Fetch-Decode-Execute cycle.
- 1
Step 1: Fetch - The CPU fetches the next instruction from the memory address currently held in the Program Counter (PC). This instruction is copied to the CPU via the data bus.
- 2
Step 2: Decode - The Control Unit (CU) within the CPU decodes the instruction. It determines what operation needs to be performed.
- 3
Step 3: Execute - The instruction is carried out. This may involve the Arithmetic Logic Unit (ALU) performing a calculation, or data being moved between registers or memory.
Recap
- The CPU is the brain of the computer, processing instructions.
- The Fetch-Decode-Execute cycle is the basic process the CPU uses to run programs.
- The Fetch stage retrieves an instruction from memory.
- The Decode stage interprets what the instruction means.
- The Execute stage carries out the instruction's command.
Quick check
- What is the common name for the component that processes all data and instructions in a computer?1 mark
- Which stage of the instruction cycle involves interpreting the instruction?1 mark