GCSE · Computer Science · OCR · Spec J277
Von Neumann architecture
Where does a program live while it runs? Right beside its data, in the same memory. Run one tiny program and watch four registers keep track.
Computer Science · Architecture
One tiny program, four registers
A made-up memory: address 0 holds LOAD 3, address 1 holds ADD 4, address 2 holds STORE 5, address 3 holds 10, address 4 holds 53, and address 5 is free for the answer. (Instructions are written as words here so you can read them. In memory they are binary, like everything else.) Press Next and watch the four registers. It is one example to make the registers real, not a sequence to memorise.
Before you press Next: two of these four registers only ever hold a place in memory, and two hold what is kept in a place. Which two are which?
Phase: Start · the program begins at address 0
PC
0
MAR
—
MDR
—
Acc
—
Output
Step 1: Only the PC has a value so far, and it is 0. That is not something the program will work on. It is an address: the place in memory where the next instruction is kept.
Press Next to step through. Every value is written into the lesson; the page is not running a processor.
Predict, then check
Here is the memory from the run, shown the way it is really stored: as bits. In this made-up code each location holds 8 bits.
Six locations, as stored: 0 → 00010011 · 1 → 00100100 · 2 → 00110101 · 3 → 00001010 · 4 → 00110101 · 5 → 00000000. Some of these hold instructions and some hold numbers. What do the bits on their own tell you about which are which?
Computer Science · Registers
Which register holds it?
Each card describes something a register holds. Pick a card, then pick the register it belongs in.
Still to sort
Program Counter (PC) (0)
Stores an address.
Where the line is: Its address is for the next instruction to fetch, and it goes up by one during fetch. The MAR's address is for whichever location is about to be accessed.
Memory Address Register (MAR) (0)
Stores an address.
Where the line is: It holds the address of the location, not what is stored at that location. Whatever is fetched from the location goes in the MDR.
Memory Data Register (MDR) (0)
Stores data.
Where the line is: It holds what has come from memory, or is waiting to go into it. The accumulator holds data used in calculations and their results.
Accumulator (Acc) (0)
Stores data.
Where the line is: Its data is being used in a calculation or has come out of one.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Instructions and data share one memory, and four registers keep track of every run.
What you need to know
- Computer architecture is the design of a computer system, and von Neumann architecture is one such design.
- Its big idea: a program's instructions are stored in memory, alongside the data.
- Both the instructions and the data are stored as binary digits.
- Instructions are fetched one at a time, in order, and each is decoded before it is executed.
- An address says where a location in memory is. Data is the value (or instruction) held at that location.
Have a goA street has numbered houses. In '12 Oak Road: the Patel family live there', which part is like an address and which is like data?
'12 Oak Road' is the address. The family living there is the data.
An address says where a location is. Data is the value (or instruction) held at that location.
- Four registers to know: MAR (Memory Address Register), MDR (Memory Data Register), Program Counter and Accumulator.
- Program Counter: stores the address of the next instruction to fetch, and goes up by one during fetch.
Have a goThe Program Counter holds 7 and an instruction is about to be fetched. What will it hold once the fetch is done?
8
The PC is increased by one during fetch, so it points to the next instruction in sequence.
- MAR: stores the address of the location in main memory that is about to be accessed.
- MDR: stores data, meaning what has just been fetched from memory or data waiting to be written to it.
Have a goJo is confidently wrong again: 'The MAR is the register that holds what we fetched.' What would you tell Jo?
The MAR holds an address. What was fetched is held in the MDR.
The MAR stores the address of the location to be accessed. The MDR stores the data or instruction fetched from that location.
- Accumulator: stores data being used in calculations, and the results of calculations.
The big picture
Computer architecture is the design of a computer system, and the von Neumann architecture is one such design. Its big idea is that a program's instructions are stored in memory alongside the data, and both are stored as binary digits. Instructions are fetched one at a time, in order, and each is decoded before it is executed. Four registers do the keeping track: the Program Counter and the MAR store addresses, while the MDR and the Accumulator store data.
Key points
Worked example
Problem
Practice question: a program is about to read the number stored at address 30, so that it can add it to the 5 the accumulator already holds. Say what the MAR, the MDR and the accumulator hold, and whether each stores an address or data.
⚠ Watch out
Saying the Program Counter holds the next instruction itself, or that the MAR holds the value that was fetched. The PC and the MAR hold addresses. A fetched instruction or value is held in the MDR.
Memory hook
Where or what? PC and MAR hold WHERE: addresses. MDR and Acc hold WHAT: data. Ask 'is this a place, or what is kept in the place?' and the register picks itself.
Check yourself
Cover the page. Say what is special about where the instructions live. Then name the four registers and, for each one, say what it holds and whether that is an address or data.
Flashcards
(12)What is computer architecture?
Where does the von Neumann architecture keep a program's instructions?
How are data and instructions stored in the von Neumann architecture?
In what way are instructions handled by the processor?
Name the four registers of the von Neumann architecture.
What is the difference between an address and data?
What does the Program Counter store?
What happens to the Program Counter during the fetch stage?
What does the MAR store?
What does the MDR temporarily store?
The MDR can hold something other than what was fetched. What?
What does the Accumulator store?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore OCR GCSE Computer Science topics
How this lesson was checked. This OCR GCSE Computer Science (specification J277)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 18 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.