Note On PC Memory
Note On PC Memory
Definition: Memory in a computer refers to the physical hardware used to store data, instructions, and
information temporarily or permanently.
It plays a critical role in determining the performance and efficiency of the computer by enabling it to
process data faster and store data securely.
There exist two major class of computer memory which are Primary and Secondary memory.
A. Primary Memory:
It is also called temporal or main memory. It is one directly accessible by the CPU, used to temporarily
store data and instructions during processing. It Includes RAM, ROM and sometimes Cache.
1. Cache Memory: A small, high-speed memory located inside or close to the CPU. It stores frequently
accessed data and instructions to improve processing speed.
Advantages:
Increases CPU efficiency by reducing data access time.
Operates faster.
Store data for temporal use
Disadvantages:
Expensive to manufacture.
Limited storage capacity.
2. RAM (Random Access Memory): The main primary memory used to store data and instructions
temporarily which is being used by the CPU. This memory have a volatile nature (i.e data is lost when
the computer is turned off).
It is referred to as Random Access Memory because data can be accessed directly and randomly from
any memory location, without the need to go through other locations in a sequential order.
Features of RAM
Volatile Memory: Data is lost when power is turned off.
Random Access: Data can be accessed directly from any location.
High Speed: Operates faster than storage devices like hard drives.
Temporary Storage: Holds data for active applications and processes.
Capacity & Scalability: Available in varying capacities (e.g., 4GB, 8GB) and can be upgraded.
Types of RAM
a) Dynamic RAM (DRAM)
It stores data in capacitors within an integrated circuit. It needs to be refreshed thousands of times per
second to maintain data.
It is slower but cheaper and can hold more data compared to other types of RAM.
Commonly used in main memory of computers and other devices.
Consume less power
Higher storage capacity
Use as main memory
b) SRAM (Static Random Access Memory)
It is RAM in which data is stored in transistors in the form of voltage. This type does not need refreshing
to retain its data.
Faster than DRAM.
Expensive than DRAMs.
It occupies much space compared to DRAMs..
Used for cache
Less storage capacity
c) ROM (Read Only Memory)
ROM (Read-Only Memory) is a type of memory that stores data permanently. It does not loss its contents
when power goes off or computer is shutdown.
This makes it suitable for storing essential instructions that the computer needs to start up.
Features:
Non-volatile memory (retains data without power).
Pre-programmed during manufacturing.
Stores essential programs needed for booting.
Its importance can be seen in the fact that;
Non-Volatile Memory: Retains data even without power, ideal for storing essential instructions.
Stores BIOS/firmware for hardware startup and load the OS.
Permanently written data prevents tampering and ensures stability.
Stores firmware for various hardware components like network cards, and hard drives, which are
specific instructions for their operations
Contains tools for troubleshooting and system restoration.
Types of ROM
1. Mask ROM (MROM): Mask ROM is the oldest type of ROM. It is pre-programmed during the
manufacturing process and cannot be modified or erased.
Characteristics:
Data cannot be changed after manufacturing.
Cheap and reliable due to its simple making process.
Cannot be customized or reprogrammed.
Used in Embedded systems (e.g., calculators, remote controls).
2. PROM (Programmable Read-Only Memory): It’s a type of read only memory that can be
programmed once by the user, after which the data in it remains permanent (unchanged).
Characteristics:
One-time programming i.e allows one time reprogramming.
Blank when manufactured, allowing user customization.
Data written using a PROM programmer or burner.
Used in applications where the firmware needs to be customized for specific devices or systems.
3. EPROM (Erasable Programmable Read-Only Memory): It's a type of computer memory that can
be erased and reprogrammed using ultraviolet (UV) light.
Characteristics:
Data can be erased by exposing the chip to UV light.
Retains data until intentionally erased.
More expensive than PROM: Due to the special erasure mechanism.
Used in applications where firmware updates are required.
1. Magnetic Storage: Hard Disk Drives (HDDs), Floppy Disks, Magnetic Tapes.
2. Optical Storage: CDs, DVDs, Blu-ray Discs.
3. Solid-State Storage: Solid-State Drives (SSDs), USB Flash Drives, Memory Cards.
4. Cloud Storage: Remote storage accessed via the internet.
2. Direct Access: Direct access is the process of reading and writing data on a storage device by going
directly to where the data is physically located on the device. There is no need reading through other data.
Common device: Hard drives, SSDs.
Advantage: Faster access speeds.
Disadvantage: More expensive.
3. Random Access: Data is accessed directly by specifying its address or location on the storage medium,
without following a sequential order.
Common device: RAM.
Advantage: Extremely fast access
Disadvantage: Volatile in nature.
4. Indexed Sequential Access: Combines features of both sequential and direct access. Data is stored
sequentially, but an index is created to allow for faster access to specific records.
Common device: Indexed files in databases, Databases stored on HDDs or SSDs.
Advantages: Fast access to specific data while maintaining the order of the data.
Disadvantages: Requires additional overhead for maintaining the index.
Units for Measuring Memory and Storage Devices
1. Bit: Smallest storage unit of a computer. It is either a 0 or 1. It is abbreviated as “b”
2. Nibble: A group of 4 bits
3. Byte: A group of 8 bits. Abbreviated as “B”
Other units include
1 Byte = 8 Bits.
Kilobyte (KB): 1,024 Bytes.
Megabyte (MB): 1,024 KB.
Gigabyte (GB): 1,024 MB.
Terabyte (TB): 1,024 GB.
Petabyte (PB): 1,024 TB.
Memory sizes are typically measured in GB or TB for modern systems.
Assignment: Perform some basic Conversions