Hardware

Hardware

Memory: RAM, ROM, SRAM, DRAM, EPROM, EEPROM

Computers and their components AS Level 12 min read

On this page
  1. What you need to be able to do
  2. RAM and ROM
  3. SRAM and DRAM
  4. PROM, EPROM and EEPROM
  5. Mark-scheme focus
  6. Worked examples
  7. Summary
  8. Can I do this?
  9. Quiz

What you need to be able to do

Syllabus 3.1 Computers and their components
  • 3.1Explain the differences between RAM and ROM, and their use in a range of devices.
  • 3.1Explain the differences between Static RAM (SRAM) and Dynamic RAM (DRAM), and why one is used instead of the other.
  • 3.1Explain the difference between PROM, EPROM and EEPROM.

You need: Computer systems (primary memory). Next: Monitoring and control.

RAM and ROM

Both are primary memory: the processor can access them directly. They differ in whether the contents can change and whether they survive power-off.

RAM (Random Access Memory)ROM (Read Only Memory)
Volatile?volatile: contents are lost when the power is offnon-volatile: contents kept without power
Read / writeread and written constantly while the computer runsread only in normal use (contents set by the manufacturer, or rarely updated)
Holdsprograms and data currently in use: running software, parts of the OS, open files, sensor readings, user choicesstart-up (boot) instructions / BIOS, firmware, the OS kernel loader: data that must not change and must be there at switch-on
Sizelarge (gigabytes)small
DeviceStored in RAMStored in ROM
PCrunning programs, open documents, part of the OSBIOS / bootstrap program
Washing machinethe wash program the user chose, sensor readings, time leftthe start-up instructions / the wash programs (firmware)
CCTV computerthe video currently being processedbootstrap program, firmware for the cameras, parts of the OS kernel
Video doorbellcurrent motion-sensor reading, recent video, instructions being executedboot-up instructions
“ROM is read only” or “RAM is random access” just repeat the names (November 2022). Say what is stored there and why that memory suits it (e.g. ROM: the boot instructions must survive power-off and must not be changed).

SRAM and DRAM

SRAM (Static RAM)DRAM (Dynamic RAM)
How a bit is storedtransistors arranged as flip-flops / latchesa transistor and a capacitor: the bit is a charge on the capacitor
Refreshingdoes not need refreshingmust be constantly refreshed (the capacitors leak charge)
Access speedfaster access time (no refresh)slower
Costmore expensive per bit (more transistors)cheaper per unit (simpler design, fewer transistors)
Density / capacitylower densityhigher bit density: more data per chip
Used forcache memory (on / near the CPU)main memory in PCs, buffers, printers, embedded devices

1 Laptop cache

Why is SRAM used for a laptop's cache?

AskedreasonKnowcache must keep up with the CPURoutespeed

  1. Faster access time because it does not need to be refreshed
  2. the small amount needed means the higher cost doesn't matter

2 Printer memory

A 3D printer has 1 GB of DRAM to store print data. Give two advantages of DRAM over SRAM.

Askedtwo advantagesKnowlots of data, cost-sensitiveRoutecost + density

  1. Lower cost per unit of memory
  2. Higher bit density: more data stored per chip
  3. (and a very fast access speed isn't needed for print data)

3 DRAM's drawbacks

Give two disadvantages of DRAM compared with SRAM.

Askedtwo disadvantagesKnowrefresh, speedRoutethe opposite of SRAM's strengths

  1. Requires constant refresh cycles
  2. Lower access speed
“DRAM is cheaper” / “SRAM is faster” on their own were too vague (June 2023). Make each a comparison with its reason: “DRAM costs less per unit because it uses fewer transistors”; “SRAM has a faster access time because it doesn't need refreshing”.

PROM, EPROM and EEPROM

PROMEPROMEEPROM
NameProgrammable ROMErasable Programmable ROMElectrically Erasable Programmable ROM
Writtenonce after manufacture (fuses blown)many timesmany times
Erased bycannot be erasedultraviolet (UV) lightan electrical signal / voltage
Removed from the device to erase?-yes: removed from the circuit boardno: erased in situ (in the device)
How much erased-the whole chipa single byte or the whole chip
Typical useone-off firmware in cheap devicesolder firmware developmentfirmware that can be updated (BIOS, routers, embedded devices, VR headsets); flash memory is a type of EEPROM

Why EEPROM in an embedded device: the firmware can be updated (new features, bug fixes) without removing the chip, without special equipment, even by a non-technical user, and only the bytes that change need erasing.

“EEPROM can be erased electrically” only expands the acronym (June 2022, November 2022). Give the consequence: “so the firmware can be updated without removing the chip”.

Mark-scheme focus

Two differences between EPROM and EEPROM (2 marks)

9618/12/O/N/24 Q2Paper 1 · Theory fundamentalsPart (c)2 marksFull size
(c) Give two differences between Erasable Programmable ROM (EPROM) and Electrically Erasable Programmable ROM (EEPROM). [2]
Credited
  • EPROM uses ultraviolet light to erase data whilst EEPROM uses an electrical signal B1
  • EPROM has to be removed from the circuit board to change the data, EEPROM remains in the circuit // EPROM erases all the data, EEPROM can erase parts B1
Not credited
  • “EEPROM is electrically erasable” (repeats the name)
  • one-sided statements

From: 9618/12/O/N/24 Q2(c)

Three differences between DRAM and SRAM (3 marks)

9618/11/O/N/25 Q6Paper 1 · Theory fundamentalsPart (c)3 marksFull size
(c) State three differences between Dynamic RAM (DRAM) and Static RAM (SRAM). [3]
Credited
  • DRAM requires refreshing, SRAM does not; DRAM stores each bit as charge, SRAM uses flip-flops; DRAM is less expensive to manufacture;
  • DRAM has slower access speeds; DRAM has higher storage density; DRAM is used in main memory, SRAM in cache B3
Not credited
  • “DRAM is dynamic, SRAM is static”
  • “SRAM is better”

From: 9618/11/O/N/25 Q6(c)

Why ROM is used in an embedded system (2 marks)

9618/12/O/N/22 Q3Paper 1 · Theory fundamentalsPart (c)2 marksFull size
(c) Embedded systems contain ROM and RAM. Explain the reasons why ROM is used in an embedded system. [2]
Credited
  • To store data that does not change B1
  • Data must be stored even when the device has no power // to store boot-up instructions / firmware / BIOS B1
Not credited
  • “ROM is read only”
  • a description of embedded systems with nothing about ROM

From: 9618/12/O/N/22 Q3(c)

  • Memory in nearly every paper: SRAM vs DRAM (1-3), PROM / EPROM / EEPROM (2-3), ROM / RAM contents (2), often attached to a device.
  • Always compare: each difference names both types.

Worked examples

Example 1 · Complete the memory description; three ROM types (Paper 1, 8 marks) ★★ Medium
9618/11/M/J/22 Q2Paper 1 · Theory fundamentalsPart (a)8 marksFull size
(a)(i) Complete the description: RAM and ROM are both examples of … memory. One item stored in RAM is … . One item stored in ROM is … . RAM can be SRAM or DRAM. SRAM uses transistors arranged as … . DRAM uses transistors and … . [5] (ii) Explain the difference between PROM, EPROM and EEPROM. [3]
1 Read it with me what is actually happening?

(i) five gaps. (ii) three distinct comparisons across the three ROM types.

  • … memorya type of memory, not “computer”
2 What is it asking for? the target, part by part
  • (a)(i)5 gaps5
  • (a)(ii)3 differences3
3 What do we know? everything the question gives us
    4 Plan the route work backwards from what we want
    FindKey ideaAlready have itWork out firstTrap
      What was the commonest wrong first answer?

      “computer” - the paragraph is already about computer memory.

      5 Now solve it have a go on paper first, then open the worked solution
      1. (i) primary; RAM: currently running software / data / part of the OS; ROM: start-up / boot-up instructions / BIOS; SRAM: flip-flops / latches; DRAM: capacitors B5
      2. (ii) PROM can be set once; EPROM and EEPROM can be overwritten many times B1
      3. EPROM must be removed from the device; EEPROM can be erased in situ B1
      4. EPROM is erased with UV light, EEPROM with a voltage // EPROM must be entirely erased, EEPROM need not be B1
      6 Check it does the answer make sense?

      ✓

      Example 2 · SRAM in a laptop; EEPROM in a VR headset (Paper 1, 4 marks) ★★ Medium
      9618/13/O/N/23 Q7Paper 1 · Theory fundamentalsParts (a) and (b)4 marksFull size
      A laptop has Static RAM. (a) Explain why Static RAM is used in the laptop instead of Dynamic RAM. [2] (b) Identify two reasons for using EEPROM in a virtual reality headset. [2]
      1 Read it with me what is actually happening?

      (a) reason + why; (b) two reasons tied to updating the headset's firmware.

        2 What is it asking for? the target, part by part
        • (a)22
        • (b)22
        3 What do we know? everything the question gives us
          4 Plan the route work backwards from what we want
          FindKey ideaAlready have itWork out firstTrap
            5 Now solve it have a go on paper first, then open the worked solution
            1. (a) SRAM has a faster access time B1 … because it does not need to be refreshed // used for CPU cache B1
            2. (b) EEPROM allows frequent / multiple read / write / erase operations B1 … so the headset's firmware can be changed easily, without fully erasing it first B1
            6 Check it does the answer make sense?

            ✓

            Example 3 · Two differences between DRAM and SRAM (Paper 1, 2 marks) ★ Easy
            9618/13/O/N/24 Q2Paper 1 · Theory fundamentalsPart (a)2 marksFull size
            A memory buffer uses DRAM. (a) Identify two differences between DRAM and Static RAM (SRAM). [2]
            1 Read it with me what is actually happening?

            Two different properties, each comparing both.

              2 What is it asking for? the target, part by part
              • (a)22
              3 What do we know? everything the question gives us
                4 Plan the route work backwards from what we want
                FindKey ideaAlready have itWork out firstTrap
                  5 Now solve it have a go on paper first, then open the worked solution
                  1. DRAM requires constant refreshing, SRAM does not B1
                  2. DRAM generally has greater capacity per chip // DRAM has slower access times than SRAM B1
                  6 Check it does the answer make sense?

                  ✓

                  Example 4 · ROM contents and DRAM's advantages in a CCTV computer (Paper 1, 4 marks) ★★ Medium
                  9618/11/M/J/23 Q4Paper 1 · Theory fundamentalsPart (a)4 marksFull size
                  A CCTV system's central computer has ROM and RAM. (a)(i) Describe the contents of the ROM in the central computer. [2] (ii) The computer has DRAM. Identify two advantages of using DRAM instead of SRAM. [2]
                  1 Read it with me what is actually happening?

                  (i) two different things in ROM (computer start-up, CCTV firmware, OS kernel). (ii) precise advantages.

                    2 What is it asking for? the target, part by part
                    • (a)(i)22
                    • (a)(ii)22
                    3 What do we know? everything the question gives us
                      4 Plan the route work backwards from what we want
                      FindKey ideaAlready have itWork out firstTrap
                        5 Now solve it have a go on paper first, then open the worked solution
                        1. (i) Bootstrap program / start-up instructions / BIOS B1; start-up instructions / firmware for the CCTV cameras // parts of the OS kernel B1
                        2. (ii) Costs less per unit B1; higher storage density // simple design, fewer transistors B1
                        6 Check it does the answer make sense?

                        The report: vague “DRAM is cheaper” was not credited ✓.

                        Summary

                        • RAM: volatile, read / write, data in use. ROM: non-volatile, read only, boot instructions / firmware.
                        • SRAM: flip-flops, no refresh, fast, expensive, low density → cache. DRAM: capacitor + transistor, refreshed, slower, cheap, dense → main memory.
                        • PROM once; EPROM UV, removed, whole chip; EEPROM electrical, in situ, byte or whole → updatable firmware.

                        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.

                        Concept checks

                        Answer each one in your head first, then open it.

                        1Is flash memory RAM or ROM?Show answer

                        A type of EEPROM: non-volatile and electrically erasable in blocks, which is why it is used for SSDs and memory cards.

                        2Why not build all main memory from SRAM?Show answer

                        It would be far more expensive and take more space per bit; DRAM gives large capacity cheaply, and a small SRAM cache hides most of its slowness.

                        Exam-style practice

                        New questions, not used above. Do them on paper, then mark your work against the official mark scheme.

                        Q19618/11/O/N/23 Q7Paper 1 · Theory fundamentalsPart (c)2 marksFull size
                        (c) A 3D printer contains 1 GB of Dynamic RAM (DRAM) to store print data. State two advantages of the printer having Dynamic RAM instead of Static RAM (SRAM). [2]
                        Show the mark scheme
                        PartAnswer / workingMarksGuidance
                        (c)Dynamic RAM has lower cost per unitB1
                        Higher bit density // more data stored per chip // a fast access speed is not neededB1
                        Total: 2 marks
                        Q29618/11/O/N/22 Q9Paper 1 · Theory fundamentalsPart (b)2 marksFull size
                        (b) Embedded systems use EEPROM. Describe one benefit of using EEPROMs in an embedded system. [2]
                        Show the mark scheme
                        PartAnswer / workingMarksGuidance
                        (b)Can be erased and reprogrammed several times // possible to reprogram / updateB1
                        … so firmware can be updated, without removing it from the device / by non-technical usersB1
                        Total: 2 marks
                        Q39618/12/M/J/24 Q2Paper 1 · Theory fundamentalsPart (c)3 marksFull size
                        (c) The VR headset has EEPROM. Explain the benefits of using EEPROM instead of other types of ROM in the VR headset. [3]
                        Show the mark scheme
                        PartAnswer / workingMarksGuidance
                        (c)EEPROM allows frequent / multiple read / write / erase operations …B1
                        … so the headset can take advantage of new features, without removing the chip / fully erasing the firmware firstB1
                        … the firmware can be changed by the user without technical expertise // cheaper to manufactureB1
                        Total: 3 marks
                        Q49618/11/O/N/24 Q3Paper 1 · Theory fundamentalsPart (c)2 marksFull size
                        (c) Identify two disadvantages of using Dynamic RAM (DRAM) instead of Static RAM (SRAM) in a computer system. [2]
                        Show the mark scheme
                        PartAnswer / workingMarksGuidance
                        (c)DRAM requires constant refresh cycles unlike SRAMB1
                        DRAM has a lower access speed than SRAMB1
                        Total: 2 marks
                        Q59618/12/M/J/22 Q2Paper 1 · Theory fundamentalsPart (b)2 marksFull size
                        (b) A car records the miles travelled in the current journey and the total miles since it was built. Identify the data that will be stored in the primary and secondary storage of the car for these two features. [2]
                        Show the mark scheme
                        PartAnswer / workingMarksGuidance
                        (b)Primary: miles travelled in the current journey, before the engine is turned offB1
                        Secondary: total miles travelled since the car was built // miles for the most recent journey after the engine is switched offB1
                        Total: 2 marks

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