π CIE IGCSE Computer Science β Computer Architecture Notes
1. The Central Processing Unit (CPU)
(a) Role of the CPUβ
The CPU (Central Processing Unit) is the βbrainβ of the computer.
β Definition:β
The CPU processes instructions and data that are input into the computer so that results can be produced as output.
πΉ What the CPU Does:β
- Fetches instructions from memory
- Decodes instructions
- Executes instructions
- Performs calculations
- Controls other components
πΉ Simple Example:β
If you calculate 5 + 3:
- Instruction is fetched from RAM.
- CPU decodes it (addition).
- ALU performs the calculation.
- Result is stored.
(b) Microprocessorβ
β Definition:β
A microprocessor is a type of integrated circuit (IC) that contains the CPU on a single chip.
πΉ Important Points:β
- It is made of millions/billions of transistors.
- Found in PCs, smartphones, washing machines, cars.
- It performs all CPU functions.
π Exam Tip:β
If asked:
βWhat is a microprocessor?β
You must mention:
- It is an integrated circuit
- It contains the CPU on a single chip
πΊ Video β CPU intro
??25. CAMBRIDGE IGCSE (0478-0984) 3.1 The role of the central processing unit
2. Von Neumann Architecture
Most computers use the Von Neumann architecture, designed by:
π John von Neumann
Key Concept of Von Neumann Architectureβ
- Data and instructions are stored in the same memory (RAM).
- They travel along the same buses.
(a) Components of the CPU
A Von Neumann CPU contains:
1οΈβ£ Arithmetic Logic Unit (ALU)β
Purpose:β
Performs:
- Arithmetic operations (ADD, SUBTRACT, MULTIPLY)
- Logical operations (AND, OR, NOT, comparisons)
Example:β
If instruction is ADD 5, 3 β ALU calculates result.
2οΈβ£ Control Unit (CU)β
Purpose:β
- Controls execution of instructions.
- Sends control signals to other components.
- Manages fetchβdecodeβexecute cycle.
Think of it as:β
π The βmanagerβ of the CPU.
Registers (Very Important for Exams β οΈ)
Registers are small, high-speed storage locations inside the CPU.
You must know these:
πΉ Program Counter (PC)β
- Holds the address of the next instruction.
- Automatically increases after each instruction.
πΉ Memory Address Register (MAR)β
- Holds the address of the memory location to be accessed.
πΉ Memory Data Register (MDR)**β
- Holds the data being transferred to/from memory.
πΉ Current Instruction Register (CIR)**β
- Holds the current instruction being decoded/executed.
πΉ Accumulator (ACC)**β
- Stores the results of calculations performed by ALU.
Buses (Communication Pathways)
Buses transfer signals between CPU and memory.
πΉ Address Busβ
- Carries memory addresses
- One-directional (CPU β RAM)
πΉ Data Busβ
- Carries data
- Bi-directional (CPU β RAM)
πΉ Control Busβ
- Carries control signals
- Example signals:
- Read
- Write
- Interrupt
π Exam Tip:β
If asked:
βState which bus carries data.β
Answer: Data bus
πΊ Video β CPU Components
??26. CAMBRIDGE IGCSE (0478-0984) 3.1 Purpose of the components in a CPU
πΊ Video β Vonn Neumann Architecture
??27. CAMBRIDGE IGCSE (0478-0984) 3.1 Von Neumann architecture
(b) FetchβDecodeβExecute (FDE) Cycle
This is one of the MOST important topics β οΈ
Step 1: Fetch
- The PC contains the address of the next instruction.
- Address copied to MAR.
- The control unit sends a READ signal.
- Instruction moves from RAM to MDR.
- Instruction copied to CIR.
- PC increases by 1.
Step 2: Decode
- The control unit decodes the instruction in CIR.
- Determines:
- What operation is needed
- What data is required
Step 3: Execute
- ALU performs the required operation.
- Result stored in:
- Accumulator (ACC)
- Or sent back to RAM via MDR.
Full Example:β
Instruction: ADD 10
- PC β MAR
- RAM β MDR
- MDR β CIR
- CU decodes
- ALU adds value
- Result stored in ACC
πΊ Video β Fetch-decode-execute cycle
??28. CAMBRIDGE IGCSE (0478-0984) 3.1 Fetch-decode-execute cycle
β
π Exam Tip:β
When describing FDE:
- Mention specific registers
- Mention buses
- Mention control signals
Examiners look for:
- PC
- MAR
- MDR
- CIR
- CU
- ALU
3. Core, Cache and Clock
These affect CPU performance.
πΉ Coreβ
Definition:β
A core is an individual processing unit inside a CPU.
Types:β
- Single-core
- Dual-core
- Quad-core
- Octa-core
Effect on Performance:β
More cores β can process multiple tasks simultaneously β faster multitasking.
πΉ Cacheβ
Definition:β
Cache is small, high-speed memory inside the CPU.
Purpose:β
Stores frequently used data/instructions.
Effect:β
Larger cache β fewer trips to RAM β faster performance.
πΉ Clock Speedβ
Definition:β
The clock controls timing of CPU operations.
Measured in:
- GHz (gigahertz)
Example:
3 GHz = 3 billion cycles per second
Effect:β
Higher clock speed β more instructions per second β faster CPU.
π Important:β
Performance depends on:
- Number of cores
- Cache size
- Clock speed
πΊ Video β CPU Performance
??29. CAMBRIDGE IGCSE (0478-0984) 3.1 The common characteristics of CPUs
4. Instruction Set
Definition:β
An instruction set is the complete list of machine code instructions that a CPU can understand.
Examples of instructions:
- ADD
- SUB
- LOAD
- STORE
- JUMP
Important Points:β
- Written in machine code (binary).
- Different CPUs have different instruction sets.
- Software must be compatible with the CPU instruction set.
πΊ Video β CPU instruction sets
??30. CAMBRIDGE IGCSE (0478-0984) 3.1 CPU instruction sets
π Exam Tip:β
Always mention:
- It is a list of commands
- They are in machine code
- They can be processed by the CPU
5. Embedded Systems
Definition:β
An embedded system is a computer system designed to perform one specific function.
Characteristics:β
- Dedicated function
- Usually real-time operation
- Low power consumption
- Limited memory
- Often no user interface
Examples of Embedded Systems:β
- Washing machines
- Cars (engine management system)
- Security alarms
- Traffic lights
- Vending machines
- Microwave ovens
Embedded System vs General Purpose Computerβ
| Embedded System | General Purpose Computer |
|---|---|
| One dedicated task | Many tasks |
| Limited memory | Large memory |
| Fixed software | Can install programs |
| Example: washing machine | Example: PC |
πΊ Video β Embedded systems
??31. CAMBRIDGE IGCSE (0478-0984) 3.1 Embedded systems
β
π Exam Tip:β
If asked:
βGive two examples of embedded systemsβ
Use:
- Domestic appliance
- Car system
- Security system
- Lighting system
β Common Exam Mistakes
β Forgetting to mention specific registers in FDE
β Confusing MAR and MDR
β Saying address bus is bi-directional (it is NOT)
β Forgetting that Von Neumann stores data and instructions together
β Not stating that instruction set is machine code
β Key Definitions to Memorise
- CPU: Processes instructions and data.
- Microprocessor: CPU on a single integrated circuit chip.
- ALU: Performs arithmetic and logic operations.
- Control Unit: Controls execution of instructions.
- Register: Small, fast storage inside CPU.
- Cache: High-speed memory inside CPU.
- Core: Individual processing unit.
- Clock Speed: Number of cycles per second.
- Instruction Set: List of machine code commands.
- Embedded System: Computer system with a dedicated function.
π― Final Advice for IGCSE Exams
- Always use technical terms.
- Mention registers by name.
- Be precise about buses.
- Use correct sequence in FDE.
- Compare embedded vs general purpose clearly.
- Learn definitions word-for-word where possible.