Computer Architecture · Cambridge syllabus 3.1 · Lesson 2 of 5
Von Neumann Architecture
In a Von Neumann architecture, instructions and data share main memory. Registers have specialised roles: PC holds the next instruction address, MAR the accessed memory address, MDR transferred data, CIR the current instruction, and ACC intermediate arithmetic results.
By the end, you can
- Understand the purpose of the arithmetic logic unit (ALU).
- Understand the purpose of the control unit (CU).
- Understand the purpose of CPU registers.
- Understand the relationship between the CPU and main memory.
- Understand the program counter (PC).
- Understand the memory address register (MAR).
- Understand the memory data register (MDR).
- Understand the current instruction register (CIR).
- Understand the accumulator (ACC).
CPU components
The von Neumann architecture is the design almost every computer still follows. Its defining idea is the stored program: instructions and data are held together in the same memory, in the same form, so a computer can be given a new task by loading different data rather than by being rewired.
The arithmetic logic unit does the actual work on values. It performs arithmetic — addition, subtraction, and multiplication and division built from them — and logical operations such as AND, OR, NOT and comparisons. A comparison is done by subtracting and looking at the result, which is why comparing and calculating live in the same unit.
The control unit runs everything else. It decodes each instruction into the signals that carry it out, and it sends timing and control signals to the ALU, the registers and memory so that each step happens in the right order. It manages the fetch-decode-execute cycle; it does no arithmetic itself.
Registers are tiny, extremely fast stores inside the CPU, each holding one value, and they are where an instruction being executed actually keeps its operands.
The CPU and memory are joined by three buses. The address bus carries the address the CPU wants and runs one way only; the data bus carries instructions and data and runs both ways; the control bus carries signals such as read or write that say what is to happen. The width of the address bus fixes how much memory can be addressed at all.
Worth remembering
- Stored program: instructions and data share the same memory.
- ALU does arithmetic and logic; the control unit decodes and coordinates.
- Address bus is one way, data bus is two way, control bus carries read and write signals.
Registers
Five registers appear in every description of the cycle, and each has exactly one job.
The program counter holds the address of the next instruction to be fetched. It is increased as each instruction is fetched, which is what makes a program run in order, and a jump instruction works by writing a different address into it.
The memory address register holds the address currently being read from or written to. Whatever is placed in the MAR goes out on the address bus.
The memory data register holds the data or instruction travelling to or from memory. Everything crossing the data bus passes through the MDR in both directions, which is why it is sometimes called the memory buffer register.
The current instruction register holds the instruction now being decoded and executed, so it stays available while the control unit works on it and the program counter moves on.
The accumulator holds the result of the calculation the ALU has just performed, and often one of the values going in. A running total, for example, sits in the accumulator while it is built up.
Worth remembering
- PC: address of the next instruction. MAR: address being accessed now.
- MDR: data or instruction in transit to or from memory.
- CIR: the instruction being executed. ACC: the result from the ALU.
Worked example
Fetching address 10 involves copying PC = 10 into MAR, reading memory into MDR, then copying the instruction into CIR.
Practice
Warm-up · not marked
Check your understanding
Answer in your own words, then compare with the worked answer. Nothing here is saved or scored.
Worked answer
The program counter, PC.
Check your method, units and explanation against it.
Marked practice
Set 1 of 4 · easiest first · Checked as you go, with the worked answer. Sign in or create a free account to save your progress.