Computer architecture: instruction sets and the CPU

Study Part 1 · Topic 5 of 5

How computers are designed, how the CPU runs a program and what to do when a PC won’t start.

35 minInteractiveComputer essentials and architecture
0 activities complete
Architecture

Three layers of design

Computer architecture describes how a computer is designed: what it can do, how its parts are organised and how it is physically built.

Flip the three layers
Instruction set (ISA)Tap to flipThe language the CPU understands: the list of operations it can perform, such as ADD, LOAD and JUMP.
Micro-architectureTap to flipHow the CPU is built inside to carry out that instruction set: pipelines, caches and registers.
ImplementationTap to flipThe physical chip: billions of transistors made in a factory.
Performance

How much work is done per second.

Power efficiency

How long a battery lasts and how much heat is made.

Market demand

Designs change as people want more graphics, AI and mobility.

Inside the CPU

The fetch, decode, execute cycle

Watch a CPU run one instruction
1

Fetch

The control unit fetches the next instruction from memory. The program counter keeps track of where it is.

2

Decode

The instruction is decoded so the CPU knows what to do, for example ADD R1, R2.

3

Execute

The ALU (arithmetic logic unit) performs the calculation or comparison.

4

Store

The result is written to a register or back to memory, and the cycle repeats billions of times a second.

Used by most desktop and laptop PCs (Intel Core, AMD Ryzen). A CISC design with many complex instructions.

Used by phones, tablets and many new laptops. A RISC design with simpler instructions that use far less power.

A graphics processor with thousands of small cores. Brilliant at parallel work like graphics and AI, but it assists the CPU rather than replacing it.

A computer cannot work without a CPU: nothing would carry out instructions, so it cannot even start.

Knowledge check

What is the instruction set architecture (ISA)?

Troubleshooting

When a PC won’t start

Simple > complex: a safe troubleshooting order
1

Check the power

Is the cable plugged in, the wall switch on and the PSU switch at the back set to I?

2

Listen and look

Beep codes and motherboard lights point to the faulty part. Note them down.

3

Reseat

Switch off, unplug, discharge static, then push RAM sticks and expansion cards firmly into their slots.

4

Inspect

Look for swollen capacitors, burn marks, loose cables or thick dust.

5

Minimum build

Run with only the CPU, one RAM stick and the display connected. Add parts back one at a time.

6

Escalate

If the board or CPU is still dead, log a ticket with clear notes for the technician.

Workplace scenario
S
Sipho, sales consultantMy PC was fine yesterday. Today I press the power button and nothing at all happens: no lights, no fan.

What is the most sensible first step?

Remember

Troubleshoot from the simplest cause to the most complex, and change only one thing at a time.

Key takeaways

  • Architecture = instruction set + micro-architecture + implementation.
  • The CPU repeats fetch > decode > execute > store.
  • Troubleshoot from simple to complex, one change at a time.