1. Computer Architecture
IGCSE Computer Science (0478)
  • Chapter 6: Automated & Emerging Technologies
  • Data Representation
    • Introduction
    • Why computers use binary (how binary represents data)
    • Number system
      • Introduction
      • Number Conversions
      • Addition of Binary Numbers
      • Logical binary shifts (positive 8-bit integers)
      • Two’s Complement (Signed: Positive and Negative Numbers)
      • Use of the Hexadecimal System
    • Text, Sound and Image
      • Text, Sound and Images
      • File Types
    • Data storage and File compression
      • Measurement of the Size of Computer Memories
      • Lossless and Lossy File Compression
  • Hardware
    • Computer Architecture
      • The CPU & Microprocessors
      • Von Neumann Architecture
      • Fetch-Decode-Execute Cycle (FDE)
      • Characteristics of the CPU
      • CPU Instruction Sets
      • Embedded Systems
    • Input/output devices
      • Input devices
      • Output devices
      • Sensors
    • Data Storage
      • What is Primary Storage?
      • What is Secondary Storage?
      • What is Virtual Memory?
      • What is cloud storage?
    • Network hardware
      • What is a Network Interface Card(NIC)?
      • MAC Addresses & IP Addresses
      • What is a Router?
  1. Computer Architecture

Characteristics of the CPU

CPU Characteristics are features that determine how fast and powerful a CPU is.
There are 3 main characteristics that affect performance:
1.
Clock Speed - How fast the CPU runs
2.
Cache Size - How much ultra-fast memory it has
3.
Number of Cores - How many processors it has

Why Does This Matter?#

Each characteristic directly affects CPU performance - how fast your computer runs.
Better characteristics = Faster computer

CHARACTERISTIC 1: CLOCK SPEED#

What is Clock Speed?#

Clock Speed is how many times per second the CPU can complete the Fetch-Decode-Execute cycle.

How It's Measured#

Clock speed is measured in Hertz (Hz):
UnitMeaningExample
HzCycles per secondOld computers (1970s)
MHzMillion cycles per second1 MHz = 1,000,000 cycles/sec
GHzBillion cycles per secondModern computers

Real Examples#

DeviceClock SpeedCycles Per Second
Old PC (1990s)100 MHz100 million
Laptop (2015)2.4 GHz2.4 billion
Modern Gaming PC4.5 GHz4.5 billion
Server CPU3.2 GHz3.2 billion
Mobile Phone2.8 GHz2.8 billion

How Clock Speed Affects Performance#

Simple Analogy#

Think of a factory assembly line:
Slow Clock (1 GHz) = Factory makes 1 product per second
Fast Clock (4 GHz) = Factory makes 4 products per second
The factory with faster clock makes 4 times more products!
Same with CPU: Faster clock = More instructions executed per second

The Formula#

Faster Clock Speed = More Instructions Per Second = Faster Performance

Real Example#

Clock SpeedInstructions Per Second
2 GHz2 billion instructions
3 GHz3 billion instructions
4 GHz4 billion instructions
A 4 GHz CPU is twice as fast as a 2 GHz CPU (if everything else is same)

Visual Comparison - Clock Speed#


Important Facts About Clock Speed#

✅ Higher clock speed = Faster CPU
✅ Measured in Gigahertz (GHz)
✅ Modern CPUs are 2.0 - 5.0 GHz
⚠️ Heat Problem: Higher clock speed = More heat generated
⚠️ Power Problem: Higher clock speed = More electricity needed

CHARACTERISTIC 2: CACHE SIZE#

What is Cache?#

Cache is ultra-fast temporary memory located very close to (or inside) the CPU.

Why Cache Exists#

Problem: RAM is slow compared to CPU speed
Solution: Cache - fast memory between CPU and RAM

How Cache Works#

CPU needs data
     ↓
Check Cache (super fast - found here 80% of time!)
     ↓
If NOT in Cache → Check RAM (slower)
     ↓
Data retrieved and stored in Cache for next time

Cache Levels#

Modern CPUs have 3 levels of cache:
LevelSizeSpeedLocation
L1 Cache32 KBFastestInside CPU core
L2 Cache256 KB - 1 MBFastIn CPU
L3 Cache2 - 8 MBMedium-fastClose to CPU
RAM4 - 64 GBSlowSeparate from CPU

How Cache Size Affects Performance#

Problem It Solves#

Without Cache:
CPU wants data → Has to go to RAM (SLOW)
                    ↓
             Takes 100 nanoseconds
                    ↓
             CPU waits (wasted time)
With Cache:
CPU wants data → Finds in Cache (FAST)
                    ↓
             Takes 1 nanosecond
                    ↓
             CPU continues working (no wait)

Speed Difference#

MemoryAccess TimeSpeed Comparison
L1 Cache1 nanosecondInstant
L2 Cache4 nanoseconds4x slower
L3 Cache10 nanoseconds10x slower
RAM100 nanoseconds100x slower!
RAM is 100 times slower than L1 Cache!

Larger Cache = Better Performance#

Example Scenario#

Situation: CPU needs same piece of data repeatedly
With SMALL Cache (32 KB):
First access: Cache hit ✓ (fast)
Second access: Cache full, data evicted
Second access: Cache miss ✗ (have to get from RAM - slow!)
With LARGE Cache (8 MB):
First access: Cache hit ✓ (fast)
Second access: Data still in cache ✓ (fast!)
Third access: Data still in cache ✓ (fast!)
Result: Larger cache = More frequently used data stored = Fewer slow RAM accesses

Visual Comparison - Cache Size#


Important Facts About Cache#

✅ Larger cache = Fewer RAM accesses = Faster
✅ Cache is very small but VERY fast
✅ Stores frequently used instructions and data
✅ Multiple levels: L1, L2, L3
⚠️ Cache can become full - old data is removed
⚠️ Larger cache = More expensive CPU

CHARACTERISTIC 3: NUMBER OF CORES#

What is a Core?#

A core is like a mini-CPU inside the CPU.
Each core can:
Fetch instructions independently
Decode instructions independently
Execute instructions independently
Work at the same time as other cores

Single Core vs Multi-Core#


Each Core Has Its Own Components#

When a CPU has multiple cores, each core has its own:
ComponentPurpose
Control Unit (CU)Manages the core's operations
Arithmetic Logic Unit (ALU)Does math in this core
Accumulator (ACC)Stores results for this core
RegistersTemporary storage for this core

Example: Dual-Core CPU#


How Multiple Cores Improve Performance#

Single Core: Sequential Processing#

Task 1: Calculate ──┐
                    ├──► CPU (one at a time)
Task 2: Print ─────┘

Timeline:
[Calculate...........] [Print.......]
Time: 0 seconds        3 seconds    5 seconds total

Dual Core: Parallel Processing#

Task 1: Calculate ──► Core 1
                      (at the same time!)
Task 2: Print ───────► Core 2

Timeline:
[Calculate...........] 
[Print..............] 
Time: 0 seconds        3 seconds (TOTAL TIME = 3 seconds!)
With dual-core, both tasks finish in 3 seconds instead of 5 seconds!

Performance Calculation with Cores#

The Formula#

Total Performance = Number of Cores × Clock Speed

Real Example#

Quad-Core CPU at 3.0 GHz:
4 cores × 3.0 GHz = 12.0 GHz effective performance
= 12 billion instructions per second

Comparison Table#

CPUCoresClock SpeedTotal Performance
Single-Core13.0 GHz3 billion instr/sec
Dual-Core23.0 GHz6 billion instr/sec
Quad-Core43.0 GHz12 billion instr/sec
Octa-Core82.5 GHz20 billion instr/sec

Real-World CPU Examples#

Intel Core i5 (4-Core)#

4 cores
2.9 - 4.6 GHz clock speed
Performance: 11.6 - 18.4 billion instructions/sec
Used in: Laptops, desktops

Intel Core i7 (8-Core)#

8 cores
2.6 - 5.0 GHz clock speed
Performance: 20.8 - 40 billion instructions/sec
Used in: Gaming PCs, workstations

Snapdragon 888 (Mobile)#

8 cores (1 fast + 3 fast + 4 efficient)
2.84 - 2.99 GHz
Used in: Flagship smartphones

Multi-Core Limitations#

Not Always 2x, 4x, 8x Faster#

Why? Not all programs use all cores
Single-threaded program (uses only 1 core):
Dual-core CPU: Still only 2× performance (1 core used)
Quad-core CPU: Still only 4× performance (1 core used)

Multi-threaded program (uses all cores):
Dual-core CPU: ~2× performance ✓
Quad-core CPU: ~4× performance ✓

What Programs Use Multiple Cores?#

Program TypeUses Multiple Cores?
Video gamesYes (graphics, AI, physics)
Video editingYes (encoding, effects)
3D renderingYes (parallel processing)
Web browsingMaybe (depends on website)
Word processorNo (single-threaded)
Simple gamesNo (doesn't need it)

Cores vs Clock Speed - Which Matters More?#

The Answer: Both Matter#

They work together:
Weak clock + Many cores = Medium speed
Strong clock + Few cores = Medium speed
Strong clock + Many cores = FASTEST!

Real Comparison#

ScenarioBetter Choice
Video GamesFewer cores, higher clock speed
Video EditingMore cores (can use them)
Everyday UseBalanced (4-8 cores, 3-4 GHz)
ServerMany cores (tasks are independent)

Visual Summary - All 3 Characteristics#


Exam Questions & Answers#

Question 1: Clock Speed#

Explain how clock speed affects CPU performance. [2 marks]
Click to see answer
Sample Answer:
"Clock speed measures how many Fetch-Decode-Execute cycles the CPU can complete per second. A higher clock speed means more instructions can be fetched and executed per second, resulting in faster performance. For example, a 4 GHz CPU can complete 4 billion cycles per second, whereas a 2 GHz CPU can only complete 2 billion cycles per second, making the 4 GHz CPU twice as fast."
Why this is correct:
✅ Explains what clock speed measures
✅ Links to FDE cycle
✅ Explains the performance impact
✅ Includes specific numbers

Question 2: Cache Size#

Why does increasing cache size improve CPU performance? [2 marks]
Click to see answer
Sample Answer:
"Increasing cache size means more frequently used instructions and data can be stored in the fast cache memory. This reduces the number of times the CPU has to fetch data from the slower RAM memory. Since cache is much faster than RAM (nanoseconds vs hundreds of nanoseconds), more cache hits mean fewer slow memory accesses, which improves overall performance."
Why this is correct:
✅ Explains what cache does
✅ Compares cache speed to RAM
✅ Links to fewer slow accesses
✅ Clear cause and effect

Question 3: Number of Cores#

Explain why a dual-core processor might improve performance compared to a single-core processor. [2 marks]
Click to see answer
Sample Answer:
"A dual-core processor has two independent cores, each with their own Control Unit, ALU, and registers. This allows parallel processing - two instructions can be executed at the same time, one in each core. This means tasks can run simultaneously rather than sequentially, doubling the processing capacity and improving overall performance."
Why this is correct:
✅ Explains dual-core structure
✅ Mentions parallel processing
✅ Shows simultaneous execution
✅ Clear performance benefit

Question 4: Comparing Characteristics#

A computer has a 4-core CPU at 2.0 GHz with 8 MB cache. Calculate the potential maximum instructions per second. [1 mark]
Click to see answer
Sample Answer:
"4 cores × 2.0 GHz = 8.0 GHz effective performance = 8 billion instructions per second"
Why this is correct:
✅ Uses the correct formula
✅ Shows calculation
✅ Gives answer in instructions/second
Note: Cache size doesn't directly factor into this calculation (it affects how often you access slow RAM, not the theoretical maximum)

Question 5: Real-World Decision#

A student needs to choose between: CPU A (8 cores, 2.5 GHz) or CPU B (4 cores, 4.0 GHz). Which should they choose for video gaming? [2 marks]
Click to see answer
Sample Answer:
"CPU B (4 cores, 4.0 GHz) would be better for gaming. While CPU A has more cores, most games are optimized for high clock speed rather than many cores. CPU B's 4.0 GHz clock speed provides better performance in games, which typically don't fully utilize all 8 cores. Additionally, 4 cores is sufficient for modern games."
Why this is correct:
✅ Makes a clear choice
✅ Explains reasoning
✅ Considers game optimization
✅ Shows understanding of both characteristics

Key Definitions#

TermSimple Meaning
Clock SpeedNumber of FDE cycles per second
GHzGigahertz = 1 billion cycles per second
CacheUltra-fast temporary memory near CPU
L1 CacheSmallest and fastest cache (inside CPU)
CoreIndependent processor within CPU
Single-CoreOne processing unit
Multi-CoreMultiple processing units
Parallel ProcessingRunning multiple tasks at same time
PerformanceHow fast CPU executes instructions
NanosecondOne billionth of a second

Quick Reference - What Improves Performance?#

⚡ CLOCK SPEED#

Higher clock speed = Faster ✓
Measured in GHz
Modern: 2-5 GHz

💾 CACHE SIZE#

Larger cache = Faster ✓
Reduces RAM access
Levels: L1, L2, L3

🔄 NUMBER OF CORES#

More cores = Faster ✓ (for multi-threaded programs)
Parallel processing
Modern: 4-16 cores typical

Important Exam Tips#

✅ DO THIS#

1.
Mention all 3 characteristics when asked about CPU performance
2.
Explain the impact not just the number
3.
Use correct units (GHz, KB, MB, number of cores)
4.
Give examples ("4 GHz is faster than 2 GHz")
5.
Link to performance - explain how it makes things faster
6.
For multi-cores - mention parallel/simultaneous processing
7.
For cache - explain fewer RAM accesses = faster

❌ DON'T DO THIS#

1.
Don't just list facts - explain the impact
2.
Don't confuse units (GHz ≠ MB)
3.
Don't forget parallel processing when discussing cores
4.
Don't say "cache stores everything" - it stores frequently used items
5.
Don't assume more cores = proportional speed increase (depends on software)
6.
Don't ignore the trade-offs (heat, power, cost)
7.
Don't be vague - "faster" needs explanation of WHY

Real CPU Specifications - Examples#

Gaming Laptop CPU#

Intel Core i7-11800H
- 8 cores
- 2.3 - 4.6 GHz
- 16 MB L3 Cache
- Designed for: Gaming, content creation

Budget Laptop CPU#

AMD Ryzen 5 5500U
- 6 cores
- 2.1 - 4.0 GHz
- 16 MB L3 Cache
- Designed for: Everyday use, browsing

Smartphone CPU#

Snapdragon 8 Gen 2
- 8 cores (1×3.2 GHz + 2×2.85 GHz + 5×2.0 GHz)
- 12 MB L3 Cache
- Designed for: Mobile performance, efficiency

Are You Ready?#

Checklist#

I understand what clock speed is (GHz)
I know how clock speed affects performance
I understand what cache is
I know why larger cache is faster
I understand what a core is
I know how multiple cores improve performance
I can explain all 3 characteristics
I can answer exam questions
I can compare different CPUs
I can calculate total performance
If you checked all boxes ✅ - You're ready for exam!

Summary Table - Quick Reference#

CharacteristicWhat It MeasuresUnitImpact on SpeedModern Range
Clock SpeedCycles per secondGHzHigher = Faster2-5 GHz
Cache SizeFast memory capacityMBLarger = Faster8-20 MB
CoresNumber of processorsCountMore = Faster4-16 cores
Modified at 2026-04-03 09:43:33
Previous
Fetch-Decode-Execute Cycle (FDE)
Next
CPU Instruction Sets
Built with