The processor at work

Study Part 1 · Topic 5 of 5

The fetch-decode-execute cycle, clock speed, cores and what makes one CPU faster than another.

30 minInteractiveComputer systems and architecture
0 activities complete
The cycle

Fetch, decode, execute

Follow one instruction
1

Fetch

The program counter holds the address of the next instruction. The instruction is copied from memory into the instruction register.

2

Decode

The control unit works out what the instruction means, for example ADD the value in memory 200 to the accumulator.

3

Execute

The ALU or another unit carries out the instruction. Results are stored in a register or written back to memory.

4

Repeat

The program counter moves on to the next instruction. This happens billions of times per second.

Performance

What makes a processor fast?

Flip the performance factors
Clock speedTap to flipMeasured in gigahertz (GHz): billions of cycles per second.
CoresTap to flipEach core is a separate processor. Four cores can work on four tasks at once.
Cache sizeTap to flipMore cache means fewer slow trips to RAM.
Word sizeTap to flipA 64-bit CPU handles 64 bits at a time and can address far more memory than a 32-bit CPU.
How many cycles per second?
Cycles per second, one core–
Cycles per second, all cores–
Example: a 3.2 GHz, 4-core processor can run up to 12.8 billion cycles per second across its cores. Real speed also depends on cache, memory and software.
Instruction sets

CISC or RISC?

An instruction set is the list of commands a processor understands. Designers must balance speed, chip size, power use, cost and compatibility with existing software.

Compare the two designs

CISC (e.g. Intel, AMD x86)
Many complex instructions; one instruction can do a lot. Used in most desktops and servers.
RISC (e.g. ARM)
Fewer, simpler instructions that each run in one cycle. Used in phones, tablets and newer laptops.
Which design constraint is it?

Choose the right group for each item. 6 left to sort

More instructions need more transistors and a bigger chip
A phone battery must last all day
Simple instructions can be pipelined for speed
Lower heat so no fan is needed
Fewer chip layers make manufacturing cheaper
New chips must still run old Windows software
Knowledge check

Which register holds the address of the next instruction to fetch?

Key takeaways

  • Every instruction goes through fetch, decode and execute.
  • Clock speed, cores, cache and word size affect performance.
  • CISC offers many complex instructions; RISC uses fewer, simpler ones and saves power.