CIE IGCSE | 3.1.1 Role of the CPU

Lesson objective

Explain how the CPU processes instructions and data, coordinates computer operations and produces results for output. Define a microprocessor.

Learn

3.1.1 | ROLE OF THE CPU

01 | WHAT IS THE CPU?

The central processing unit (CPU) is the processor that carries out program instructions and processes data. It also coordinates operations so the computer’s components work together.

You may hear it called the “brain” of the computer. That is a useful starting metaphor, but an exam answer should say what it actually does: executes instructions, processes data and controls or coordinates operations.

The CPU is not the entire computer. It works with memory, storage and input/output devices.

02 | INSTRUCTIONS AND DATA ARE DIFFERENT

Data is the information being processed. Instructions specify the operations to carry out on that information.

The CPU follows instructions rather than inventing the task
TaskDataInstruction / operationResult
Calculate a totalPrices 12 and 8Add the values20
Check a pass thresholdScore 65 and threshold 50Compare score with thresholdScore meets the threshold
Adjust a picturePixel valuesApply a brightness operationChanged pixel values
Move a game characterCurrent position and movement inputUpdate position using game rulesNew position

The CPU executes machine-code instructions. A program written in a language such as Python must be handled by appropriate software so that the processor ultimately executes machine instructions. The CPU does not directly understand an English instruction such as “make a game”.

03 | INPUT, PROCESSING AND OUTPUT

Imagine a calculator app. You enter 12 and 8, then select addition. The values and chosen operation become data the program uses.

INPUT
Numbers and chosen operation
→PROCESSING
Execute instructions to add
→OUTPUT
Display the result, 20

The CPU performs the processing specified by the program. The result can be stored in memory and passed through the output system so the screen displays it.

The keyboard or touchscreen captures input; the display produces visible output. The CPU does not replace those devices. It processes information and coordinates the operations involved.

Not every result is immediately displayed. A result might be kept for another calculation, saved to storage or sent to another device.

04 | CALCULATE, COMPARE AND COORDINATE

Arithmetic: instructions can perform numerical operations such as addition or subtraction.

Logic and comparison: instructions can test conditions, such as whether a score meets a threshold. The program can then follow the appropriate branch.

Control: the CPU manages the execution of instructions and coordinates movement of data between relevant components.

A comparison is not human judgement. A game’s CPU follows programmed rules to decide what happens next. In the next lesson you will study the CPU components responsible for these jobs.

05 | HOW MEMORY AND STORAGE FIT IN

Processing is different from holding or preserving data
ComponentMain roleExample
CPUExecute instructions and process dataCalculate the total
RAMHold instructions and data currently in useKeep the running program and working values available
Secondary storageKeep files and programs for longer-term useStore the saved application or document
Input deviceCapture data or commandsKeyboard records a key press
Output devicePresent or act on a resultScreen displays the calculated total

For a running program, instructions and working data are made available in memory for the CPU to use. The CPU also contains small internal storage locations, which you will study later.

Do not describe the CPU as the place where all files are permanently saved. A storage device preserves files; the processor acts on instructions and data.

06 | A REPEATING INSTRUCTION PROCESS

At a high level, the CPU repeatedly obtains an instruction, interprets what operation it requires and carries it out. This is the fetch–decode–execute cycle.

  1. Fetch: obtain the next instruction from memory.
  2. Decode: interpret the instruction.
  3. Execute: carry out the required operation.

These stages happen repeatedly as a program runs. A single action such as opening a photograph can involve many instructions.

This is an overview of the CPU’s role. The detailed registers, buses and steps of the cycle belong to the following architecture lessons.

07 | WHAT IS A MICROPROCESSOR?

A microprocessor is a processor implemented as an integrated circuit on a single chip. An integrated circuit combines many electronic components in a small semiconductor device.

“CPU” describes the processing role; “microprocessor” describes its implementation on a chip. A CPU can be implemented as a microprocessor.

A microprocessor is not a complete computer by itself. A working system also needs appropriate memory, input/output and other supporting components. Some modern chips integrate several functions, but that does not make the processor and all storage the same thing.

08 | FOLLOW A SCHOOL SENSOR SYSTEM

A room-temperature system receives a sensor reading of 24 °C. Its program compares the reading with a threshold of 22 °C.

The sensor supplies the input. The CPU executes instructions to compare the values. Because 24 is greater than 22, the program selects the instruction path that requests cooling. The output circuitry and actuator carry out that request.

The CPU’s job is processing and control. The sensor measures temperature; the actuator changes the physical environment. Do not award every role to the CPU.

09 | COMMON MISTAKES

  • “The CPU is the computer”: it is one component in a system.
  • “The CPU permanently stores every file”: distinguish processing from secondary storage.
  • “The CPU thinks for itself”: it executes programmed instructions.
  • “Data and instructions are identical”: one is processed; the other specifies operations.
  • “Microprocessor means a tiny complete computer”: define it as a processor on an integrated-circuit chip.

MATCH THE PROCESSING ROLE

Terminology

Terminology

CPU

Central processing unit: executes instructions, processes data and coordinates operations.

Processing

Carrying out operations on data according to instructions.

Data

Information being processed by the computer.

Instruction

A command specifying an operation for the processor.

Program

A set of instructions that performs a task.

Machine code

Instructions represented in a form the processor can execute.

Arithmetic operation

A numerical operation such as addition or subtraction.

Comparison

Testing a relationship between values, such as greater than or equal to.

RAM

Memory holding instructions and data currently in use.

Fetch–decode–execute cycle

The repeated process of obtaining, interpreting and carrying out instructions.

Microprocessor

A processor implemented as an integrated circuit on a single chip.

Integrated circuit

Electronic components combined on a semiconductor chip.

Questions

Questions

CHECK YOUR UNDERSTANDING

Select all correct choices. Each exact set earns one point.

1. Which are roles of the CPU?
2. In 12 + 8, which are data?
3. Which statements are correct?
4. Which example is a comparison?
5. What is a microprocessor?
6. Which statements about input and output are correct?
7. What is the high-level instruction-cycle order?
8. Which statements describe program execution accurately?

EXPLAIN AND COMPARE

Write your answers before revealing each sample.

1. Describe the role of the CPU.

2. Define a microprocessor.

3. Explain the difference between data and instructions using a calculation.

4. Describe how input, processing and output work in a calculator app.

5. Explain why the CPU is not the same as secondary storage.

6. A temperature system starts cooling when the reading exceeds a threshold. Explain the CPU’s role.

APPLY IT | NAME THE JOB

A student types two prices, the program adds them, and the screen displays a total. Identify the input device, the CPU’s processing task and the output device. Then explain where a saved receipt would be kept.

Reveal suggested answer

The keyboard captures the prices. The CPU executes instructions to add the values. The screen displays the total. A saved receipt is preserved on secondary storage, rather than being permanently stored by the CPU.

Flashcards

Flashcards

Click to flip. Select the ideas you need to revisit.

0 cards selected for revision.

    Selections are kept while this page is open.

    Workbook

    Workbook

    COMING SOON

    The workbook for 3.1.1 Role of the CPU is coming soon. Complete the matching task and written questions in your exercise book.