Primary memory: Difference between revisions

From Computer Science Wiki
(Created page with "frame|right|This is a basic concept in computer science Primary Memory The primary memory stores the program instructions and the data in binary machine...")
 
No edit summary
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:binary.png|frame|right|This is a basic concept in computer science]]
[[File:binary.png|frame|right|This is a basic concept in computer science]]


Primary Memory
The primary memory stores instructions and the data in binary machine code. The Control Unit deals with the instructions and the Arithmetic and Logic unit handles calculations and comparisons with the data. Data and instructions are moved by buses. It is important to understand primary memory generally holds currently executing processes (at runtime). You can think of primary memory as the last stop before being actually fetched, decoded, executed and stored by the CPU.


The primary memory stores the program instructions and the data in binary machine code. The Control Unit deals with the instructions and the Arithmetic and Logic unit handles calculations and comparisons with the data. Data and instructions are moved by buses.
There are two types of memory in primary memory (also known as the Immediate Access Store ) of the computer, RAM and ROM<ref>http://www.ib-computing.net/program/core/memories.html</ref>. For the IB, you should focus on RAM, and not ROM.
 
There are two types of memory in primary memory (also known as the Immediate Access Store ) of the computer, RAM and ROM:


* RAM is Random Access Memory which loses its contents when the computer is switched off (it is volatile ). This memory can be written to, instructions and data can be loaded into it.
* RAM is Random Access Memory which loses its contents when the computer is switched off (it is volatile ). This memory can be written to, instructions and data can be loaded into it.
Line 11: Line 9:
* ROM , or Read Only Memory is non-volatile and is used to store programs permanently (the start-up or " boot " instructions, for example), the computer cannot store anything in this type of memory.
* ROM , or Read Only Memory is non-volatile and is used to store programs permanently (the start-up or " boot " instructions, for example), the computer cannot store anything in this type of memory.


When the programs and data files (known as the software ) are not in RAM, they are stored on secondary memory (also known as backing store ) such as tapes or discs. The tape or disc drives and any input and output devices connected to the CPU are known collectively as peripherals<ref>http://www.ib-computing.net/program/core/memories.html</ref> .
When the programs and data files (known as the software ) are not in RAM, they are stored on [[secondary memory]] (also known as backing store ) such as tapes or discs. The tape or disc drives and any input and output devices connected to the CPU are known collectively as peripherals.
 
 
== Other resources ==
 
* [[Media:Persistant storage.pdf | This is an excellent PDF by the Dartford Grammar School Computer Science Department]]
* [http://www.bbc.co.uk/education/guides/zxgkxnb/revision/6 A excellent resource by the BBC to understand volatile and non-volatile storage]


== Do you understand this topic? ==
'''RAM – Random Access Memory'''<ref>http://dis-dpcs.wikispaces.com/2.1.2+Primary+Memory+and+2.1.3+Cache+Memory</ref>
* The RAM is where instructions, values are stored at runtime
* The RAM can be accessed a lot faster than secondary storage
* All information is lost when the power is turned off (volatile)
* Allows storage and random access of the data
* Each program instruction & piece of data in the RAM has a unique address


* Identify the need for persistent storage
'''ROM – Read Only Memory'''
* Can not be written to easily or at all (often times once only, then never again)
* In modern PCs usually used for firmware in CPU, Graphics card, hard disks, etc.
* Many ROM modules are replaced with Flash modules nowadays (ex. BIOS, firmware modules) to allow easier updating
* In devices like keyboards, etc. which aren’t designed for firmware updates ROM might still be used
* Stores code for interrupter


== Do you have an advanced understanding about this topic? ==


* Is a disk-based swap file the same thing as persistent storage?


== References ==
== References ==

Revision as of 08:04, 16 October 2019

This is a basic concept in computer science

The primary memory stores instructions and the data in binary machine code. The Control Unit deals with the instructions and the Arithmetic and Logic unit handles calculations and comparisons with the data. Data and instructions are moved by buses. It is important to understand primary memory generally holds currently executing processes (at runtime). You can think of primary memory as the last stop before being actually fetched, decoded, executed and stored by the CPU.

There are two types of memory in primary memory (also known as the Immediate Access Store ) of the computer, RAM and ROM[1]. For the IB, you should focus on RAM, and not ROM.

  • RAM is Random Access Memory which loses its contents when the computer is switched off (it is volatile ). This memory can be written to, instructions and data can be loaded into it.
  • ROM , or Read Only Memory is non-volatile and is used to store programs permanently (the start-up or " boot " instructions, for example), the computer cannot store anything in this type of memory.

When the programs and data files (known as the software ) are not in RAM, they are stored on secondary memory (also known as backing store ) such as tapes or discs. The tape or disc drives and any input and output devices connected to the CPU are known collectively as peripherals.

RAM – Random Access Memory[2]

  • The RAM is where instructions, values are stored at runtime
  • The RAM can be accessed a lot faster than secondary storage
  • All information is lost when the power is turned off (volatile)
  • Allows storage and random access of the data
  • Each program instruction & piece of data in the RAM has a unique address

ROM – Read Only Memory

  • Can not be written to easily or at all (often times once only, then never again)
  • In modern PCs usually used for firmware in CPU, Graphics card, hard disks, etc.
  • Many ROM modules are replaced with Flash modules nowadays (ex. BIOS, firmware modules) to allow easier updating
  • In devices like keyboards, etc. which aren’t designed for firmware updates ROM might still be used
  • Stores code for interrupter


References