Hardware

Hardware

The CPU and Von Neumann architecture

Computer Architecture Paper 1 10 min read

On this page
  1. In this note
  2. What you should already know
  3. The CPU and the microprocessor
  4. Von Neumann architecture
  5. Summary
  6. Ways they test it
  7. What the examiner looks for
  8. Past-paper questions, solved
  9. Common mistakes
  10. Practice
  11. Can I do this?
  12. Quiz

In this note

Syllabus 3.1 Computer architecture
  • 3.1.1Understand the role of the CPU and what is meant by a microprocessor.
  • 3.1.2aUnderstand the purpose of the components in a CPU with a Von Neumann architecture: ALU, CU, the registers PC, MAR, MDR, CIR, ACC, and the address, data and control buses.

Next: The fetch-decode-execute cycle.

Part 1Learn the topic

The notes: every idea from the start, with our own examples.

What you should already know

Programs are instructions

A program is a list of instructions. Before it runs it is copied from storage into RAM.

Quick check: where is a program while it is running?

In RAM (main memory).

Everything is binary

Instructions, data and memory addresses are all stored as binary numbers.

Quick check: what is an address?

A number that identifies one location in memory.

The CPU and the microprocessor

The central processing unit (CPU) is the part of the computer that processes instructions and data. It takes the data that is input, processes it by running the program's instructions (the fetch-decode-execute cycle), so that the result can be output.

A microprocessor is a type of integrated circuit on a single chip. In most computers the CPU is a microprocessor; simpler devices (a washing machine, a microwave) have a microprocessor that does one job.

Role of the CPU: to process instructions and data (by running the fetch-decode-execute cycle).

Von Neumann architecture

Almost every computer uses the Von Neumann architecture. Its key idea is that the program instructions and the data are stored together in the same memory (RAM), and the CPU fetches them one at a time to process them.

CPUControl unit (CU)contains the CIRALUcalculations + logicPCMARMDRCIRACCregistersCache (fast memory for frequently used data)RAMinstructions + dataaddress busdata buscontrol busThe address bus goes one way (CPU → memory); the data and control buses go both ways.Instructions and data are stored together in the same memory.
The parts of a Von Neumann CPU and how it connects to RAM.

The two units

UnitPurpose
Control unit (CU)sends control signals to manage the flow of data through the CPU and to manage the fetch-decode-execute cycle; it decodes the instructions (using the instruction set)
Arithmetic logic unit (ALU)carries out the calculations (e.g. add, subtract) and the logical operations (e.g. AND, OR, comparing two values); it executes the instructions and stores interim results in the accumulator

The registers

A register is a tiny, very fast storage location inside the CPU. Each register temporarily stores one item: an address, an instruction or some data, so it can be accessed immediately during the cycle.

RegisterWhat it stores
Program counter (PC)the address of the next instruction to be fetched
Memory address register (MAR)the address in memory of the instruction or data that is about to be fetched (or the address data is to be written to)
Memory data register (MDR)the data or instruction that has just been fetched from memory (or is waiting to be written to memory)
Current instruction register (CIR)the instruction currently being decoded and executed; it is built into the CU
Accumulator (ACC)the result of a calculation by the ALU (interim results)
A memory hook for which registers hold addresses: PC and MAR ("A" for address). MDR holds data ("D" for data). CIR holds the instruction; ACC holds answers.

The buses

A bus is a set of parallel wires that transmits data, addresses or signals between the parts of the computer.

BusWhat it carriesDirection
Address busaddresses (e.g. from the MAR to RAM)one way: CPU → memory
Data busdata and instructions (e.g. from RAM to the MDR)both ways
Control buscontrol signals from the control unit (e.g. read, write, clock)both ways

Try it yourself

1
Which register holds the address of the next instruction?
Show answer

Answer Program counter (PC)

2
Which unit carries out calculations and logical operations?
Show answer

Answer Arithmetic logic unit (ALU)

3
Which bus carries addresses?
Show answer

Answer Address bus

4
State the purpose of a register.
Show answer

Answer To temporarily store data / an instruction / an address so it can be accessed immediately

Summary

  • CPU: processes instructions and data (runs the FDE cycle). Microprocessor: integrated circuit on a single chip.
  • Von Neumann: instructions and data stored together in the same memory.
  • CU: sends control signals, manages the FDE cycle, decodes. ALU: calculations and logical operations.
  • PC: address of next instruction. MAR: address about to be fetched. MDR: data / instruction fetched. CIR: current instruction. ACC: results.
  • Address bus (one way): addresses. Data bus: data and instructions. Control bus: signals.

If you see …

  • "describe the role of the CPU"processes instructions / data · runs the FDE cycle
  • "purpose of the ALU"calculations · logical operations · executes instructions · results in the accumulator
  • "purpose of a register"temporarily stores data / instruction / address · fast access during the FDE cycle
Part 2How it is examined

Question types, what the examiner gives marks for, and real past-paper questions solved.

Ways they test it

Type 1 Role / purpose

"Describe the role of the CPU" [2]; "describe the purpose of the ALU" [3]; "state the purpose of a register" [1]

Spot it "role", "purpose".

  1. Use the definitions in the tables: one mark per separate point.

Type 2 Name a component

"State the name of the component that sends signals …" [1]; "circle three components built into the CPU" [3]

Spot it "name", "identify", "circle".

  1. Built into the CPU: CU, ALU, registers, cache, clock. NOT RAM, ROM, HDD, motherboard.

Type 3 Register table

a table of register names and descriptions to complete [6]

Spot it a table.

  1. Watch for addresses (PC, MAR) vs data (MDR) vs instruction (CIR) vs results (ACC).

Type 4 Buses

"circle three buses" [3]; "describe the address bus" [2]

Spot it "bus".

  1. Address, data, control: say what each carries.

What the examiner looks for

"Describe the purpose of the ALU" [3]

Marking points (one mark each, up to the marks shown)

  • To execute instructions
  • To perform calculations // e.g. addition, subtraction
  • To perform logical operations // e.g. AND, OR, comparisons
  • To store interim results of calculations
  • Stores / reads / writes data to / from the accumulator

Keywords calculations logical operations accumulator

Components inside the CPU

0478/13/O/N/23 Q3Paper 1 · Computer systems3 marks
Circle three components that are built into the CPU: accumulator (ACC) · control unit (CU) · graphics card · hard disk drive (HDD) · motherboard · program counter (PC) · random access memory (RAM) · read only memory (ROM)
Credited
  • Accumulator (ACC)
  • Control unit (CU)
  • Program counter (PC)
Not credited
  • RAM or ROM (primary storage, but outside the CPU)
  • motherboard (the CPU sits on it)
  • HDD, graphics card
Why

RAM is directly accessed by the CPU but it is not built into it.

From: 0478/13/O/N/23 Q3(a) mark scheme

Past-paper questions, solved

0478/13/M/J/24 Q8Paper 1 · Computer systems9 marksFull size
Role of the CPU; purpose of a register; three registers; purpose of the ALU

How to start Each part is a definition from the notes. Count the marks: (c) wants three separate points.

Show a full-mark answer and the mark scheme

(a) To process instructions and data, by running the fetch-decode-execute cycle.

(b)(i) To temporarily store data, an instruction or an address. (ii) Program counter, memory address register, accumulator.

(c) To execute instructions: it performs the calculations, such as addition, and the logical operations, such as comparing values, and stores the interim results in the accumulator.

PartAnswer / workingMarksGuidance
8(a)process instructions / data · run the FDE cycleB2
8(b)(i)temporarily store data / instruction / address // immediate access during FDEB1
8(b)(ii)Any three: MAR · MDR · ACC · PC · CIRB3
8(c)Any three: execute instructions · calculations · logical operations · interim results · accumulatorB3
Total: 9 marks
0478/12/O/N/24 Q6Paper 1 · Computer systems6 marksFull size
Complete the table of CPU components and descriptions

How to start Four rows need a name, two need a description. "Address … about to be fetched" is the MAR; "transmits data" is a bus.

Show a full-mark answer and the mark scheme

Control unit (CU) · program counter: stores the address of the next instruction to be fetched · memory address register (MAR) · data bus · accumulator: stores the interim result of a calculation · current instruction register (CIR)

PartAnswer / workingMarksGuidance
6CU · MAR · data bus · CIR; PC: address of the next instruction; ACC: interim result of a calculationB6
Total: 6 marks

Common mistakes

  • ✗ "The MAR stores instructions"✓ "The MAR stores addresses"
  • ✗ "RAM is part of the CPU"✓ "RAM is primary storage outside the CPU"
  • ✗ "The CPU stores data"✓ "The CPU processes instructions and data"Storing is memory's job.
  • ✗ "The ALU controls the CPU"✓ "The CU sends control signals; the ALU calculates"

Practice

Practice: easy, medium, hard

Easy

1
What does MDR stand for?
Show answer

Answer Memory data register

2
Which register holds the result of a calculation?
Show answer

Answer Accumulator (ACC)

3
Name the three buses.
Show answer

Answer Address bus, data bus, control bus

Medium

1
State what is meant by a microprocessor.
Show answer

Answer An integrated circuit on a single chip

2
Describe the role of the control unit. [2]
Show answer

Answer Sends control signals to manage the flow of data through the CPU; manages / decodes during the FDE cycle

3
Explain the key idea of the Von Neumann architecture.
Show answer

Answer Program instructions and data are stored together in the same memory

Hard

1
Compare what the PC and the MAR store. [2]
Show answer

Answer PC: the address of the NEXT instruction to be fetched. MAR: the address of the instruction / data being fetched NOW (or written to)

2
Which bus is one-way, and why?
Show answer

Answer The address bus: addresses only go from the CPU to memory

Can I do this?

Anything unticked: revise that section first. All ticked: take the quiz.

Quiz

The multiple-choice and guided questions need JavaScript. The concept checks and exam practice below work without it.

Your progress on this note is saved when JavaScript is on.

⬇️ Download this chapter as a PDF: Full notes