Memory

Table of Contents

Fork me on GitHub

There are many classes of memory in a modern computer system. Memory is needed to store data and instructions for the processor

1 ROM

Learn It

  • In modern computers the term Read Only Memory is somewhat of a misnomer.
  • ROM refers to a class of memory where the data is hardwired and therefore can not be changed. In reality, modern ROM can be altered, but not within the normal operations of the computer system.
  • ROM is classed as non-volatile memory.

Research It

  • Find out what the difference is between volatile and non-volatile memory.
  • Find a picture of a modern ROM chip for your notes.

Learn It

  • The main set of instructions stored on ROM is the BIOS.
  • BIOS stands for Basic Input/Output System.
  • The BIOS provides instructions for the processor allowing it to interact with the Hard Disk and therefore boot the Operating System.
  • Without the BIOS, the Operating System could not be booted.

Research It

  • Find out some of the other tasks that the BIOS enables in a computer system.

Document It

  • Make sure your notes contain information on ROM and the BIOS.

2 Cache

There are many types of cache in computer systems, but here we are focusing on CPU cache. CPU cache is volatile memory.

Learn It

  • Cache is required because processors are so fast, that if they had to retrieve all data and instructions from RAM, they would spend a long time waiting. Cache memory is much faster than RAM
  • In general there are three levels of CPU cache.
    • L1 Cache is built into the processor, with a typical size of 64Kb. This cache is small but exceptionally fast.
    • L2 Cache was originally separate to the CPU, but in modern computers it is integrated. L2 Cache is slower than L1, but generally larger in size - up to 2Mb.
    • L3 Cache is memory that is situated on the motherboard. It is slower than the others but has a larger size - up to 8Mb.

Research It

  • Watch this exciting and interesting video explaining the different types of CPU cache.

Document It

  • Make notes on the information provided in the video.

Learn It

  • There are three principles involved in deciding what data is stored in Cache.
    • Temporal locality - CPU has accessed some data and is likely to need the same data again soon.
    • Spatial locality - CPU has accessed some data and is likely to need data stored close by.
    • Sequential locality - CPU has accessed some data and is likely that it will need data stored in the next location.

3 RAM

RAM.jpg

Learn It

  • RAM stands for Random Access Memory
  • Normal RAM is actually called DRAM - Dynamic RAM
  • RAM is volatile memory.

Research It

  • Use this article and other resources to find out as much information as you can about RAM.

Document It

  • Make sure you can answer the following questions:
    • Why is RAM used to store programs?
    • What is the difference between RAM and DRAM?
    • What is meant by the term bus width?
    • What is meant by the term latency, with regard to RAM?
    • What is virtual RAM and why is it needed?

4 Hard disks

Hard disks will be covered in greater detail in the section on Secondary Storage.

Learn It

  • Hard disks are a class of non-volatile memory.
  • In most computers, the HD is used to store the operating system, applications and user data.
  • Hard disks are mechanical in nature, and this is one of the reasons they are so slow.
  • Hard disks can store vast quantities of data, and 2+ Tb drives are not unusual.

5 Summary

Test It

  • The diagram below shows the hierarchy of how a CPU accesses storage locations when operating.

computer-memory-pyramid.gif

  • Copy the image to your notes.
  • Write a couple of paragraphs, that would be sufficient in explaining the diagram to a layperson.