Week 25 · 4.1–4.2 Computer architectures and types of software · 3 lessons
1
Memory beside the CPU
Computing 8: Topics 4.1–4.2, pp. 255–267
GoalDescribe primary memory and compare RAM and ROM.
New words
CPU · central processing unit: the part of a computer that processes dataprimary memory · memory that the CPU can reach directly; it is RAM and ROMvolatile · loses its data when the power is turned offnon-volatile · keeps its data when the power is turned off
Explanation
The CPU is the part of a computer that processes data. It cannot wait for slow storage, so it reads and writes its data in primary memory, which is joined to it by wires. Primary memory comes in two kinds. RAM is random access memory. It stores the data and programs that are in use right now, and its contents change all the time. RAM is volatile, which means that its data is lost when the power goes off. ROM is read-only memory. It permanently stores the instructions that start the computer, called the boot-up instructions. These do not normally change. ROM is non-volatile, so its data stays when the power is off.
ROM: start-up instructions, permanentread by→CPU: processes the datareads and writes→RAM: data in use, temporary
Worked examples
RAM
ROM
Stores
data and programs in use now
boot-up instructions
How long?
temporary
permanent
Power off?
data is lost (volatile)
data stays (non-volatile)
Changes?
all the time
not normally
Think of RAM as a whiteboard and ROM as a printed instruction card. The whiteboard holds what you are working on now, and you rub it clean when you finish. The card keeps the same words every day, even when the room is dark.
story in RAMthen→power offso→story lostnext→ROM starts the computer again
Ali is typing a story but has not saved it. The power goes off. The story is in RAM, so it is lost. When the power returns, the computer starts again using its boot-up instructions in ROM. Ali learns to save often to storage, which keeps data without power.
Which memory is it? This picture sorts facts into volatile and non-volatile memory.
Class activity
Memory model (no computer). Take a sheet of paper and a pencil: the paper is the CPU’s desk, a small whiteboard or the back of a card is RAM, and a printed card with five start-up steps (“1. check the screen, 2. check the keyboard…”) is ROM. Act out “turning the power on”: read the steps from ROM, then write a short sum on the RAM board and let the CPU work it out. Switch the “power off” by wiping the board. What is gone? What is left? Explain which part is volatile. Do not open a real computer or touch any parts.
Practice
1
A phone is switched off and on. Which memory still holds its start-up instructions, and which loses the pictures it was showing on the screen?
Memory
Keeps data when power is off?
RAM
?
ROM
?
ROM still holds the start-up instructions (non-volatile). RAM loses what it was holding, such as the pictures being shown (volatile).
2
Give two differences between RAM and ROM.
RAM is temporary and volatile; ROM is permanent and non-volatile. RAM stores data and programs in use, which change all the time; ROM stores boot-up instructions, which do not normally change.
3
Why does the CPU use primary memory and not wait for data from somewhere far away?
Primary memory is joined to the CPU by wires, so the CPU can reach the data directly and quickly.
4
Write RAM or ROM: (a) holds the program running now; (b) holds the boot-up instructions; (c) its contents are lost when the power goes off; (d) its contents do not normally change.