COMPUTER MEMORY FUNDAMENTALS
1. Introduction to Computer Memory
- Definition: Computer memory is the medium or component used to store digital data for a certain period during processing.
- Core Function: It provides the facility of Information Retention in modern computers.
- Importance: It is the part of the computer where all data and programs are stored; without it, any data given to the computer would be immediately lost.
- Data and instructions are stored in the form of binary numbers (Bytes).
- The larger the size of the computer's main memory, the higher its processing speed.
2. Memory Classification (Overview)
Memory is primarily divided into two main categories:
- Main Memory (Primary Memory): Considered a part of the CPU.
- Auxiliary Memory (Secondary Memory): External magnetic mediums like hard disks, floppy disks, and magnetic tapes.
3. Memory Hierarchy
Memory is divided based on two main factors: Capacity and Access Time.
- Capacity: The amount of information (in bits) that the memory can store.
- Access Time: The time interval between a request for data and the execution of that request. Lower access time means higher memory speed.
Memory Hierarchy Structure
(Ordered from Fastest/Smallest to Slowest/Largest)
| Level |
Memory Type |
Speed |
Size |
| 1 (Top) |
Registers |
Fastest |
Smallest |
| 2 |
Cache Memory |
Very Fast |
Very Small |
| 3 |
Main Memory |
Fast |
Medium |
| 4 |
Magnetic Disk |
Slow |
Large |
| 5 (Bottom) |
Magnetic Tape |
Slowest |
Largest |
4. Parameters of Memory
- Storage Capacity: Represents the size of the memory. The computer's internal memory is measured in Words or Bytes.
- Access Mode: Refers to how information is accessed from memory locations. It can be accessed Randomly, Sequentially, or Directly.
- Access Time: The time taken to complete the read and write operations of the computer.
5. Basic Units of Measurement
All computer information is handled by electronic components (like Integrated Circuits and Semiconductors) that recognize only two states: Presence (1 or ON) and Absence (0 or OFF).
Memory Units Table
| Unit |
Equivalent Value |
Key Facts / Scientific Notation |
| Bit (Binary Digit) |
0 or 1 |
Smallest unit of a computer. |
| Nibble |
4 Bits |
2 Nibbles = 1 Byte. |
| Byte |
8 Bits |
Equals approx. 1 character (e.g., 'a', '1', '?'). |
| Kilobyte (KB) |
1024 Bytes |
- |
| Megabyte (MB) |
1024 KB |
~1 Million Bytes. |
| Gigabyte (GB) |
1024 MB |
~1 Billion Bytes. |
| Terabyte (TB) |
1024 GB |
~1 Trillion Bytes or $2^{40}$ Bytes. |
| Petabyte (PB) |
1024 TB |
$2^{50}$ Bytes. |
| Exabyte (EB) |
1024 PB |
$2^{60}$ Bytes. |
| Zettabyte (ZB) |
1024 EB |
$2^{70}$ Bytes. |
| Yottabyte (YB) |
1024 ZB |
- |
| Bronto Byte |
1024 YB |
- |
| Geop Byte |
1024 Bronto Byte |
Highest listed unit. |
6. Primary Memory (Detailed)
- Also known as Internal Memory or Main Memory, it is an integral part of the CPU.
- Function: Temporarily stores currently running programs, their input data, and output data. Once the requirement is over, data is removed to make space for new data.
- Characteristics: It has limited size but very fast speed so data can be fetched instantly when needed.
Random Access Memory (RAM)
- A type of Primary Memory made of Metal Oxide Semiconductor (MOS) chips.
- Volatile Nature: All information in RAM is temporary. If the power supply is turned off, all data is instantly destroyed.
- Usage: Used for storing and reading data.
- Addressing: Every location in RAM has a specific Address. The CPU uses this address to know exactly where to store or retrieve information.
Classification of RAM
| Feature |
Dynamic RAM (DRAM) |
Static RAM (SRAM) |
| Components |
Made of 1 Transistor (acts as a switch) + 1 Capacitor (stores electric charge). |
Made of multiple transistors. No Capacitor is used. |
| Data Retention |
Capacitor charge can leak; therefore, it requires continuous Refreshing to maintain data. |
Data remains stored as long as the electrical supply is ON. No refreshing required. |
| Speed |
Slower (due to the time taken by the refresh process). |
Faster (does not require refreshing). |
| Examples |
SDRAM, RDRAM, DDRAM. |
- |
1. Read Only Memory (ROM)
- Definition: ROM is a type of memory where data and instructions are stored permanently.
- Characteristics: It can only be read; the data cannot be easily altered or modified.
- Non-Volatile: Information remains secure even if the power supply is turned off.
- Usage: Used in various electronic devices like calculators, video games, and digital cameras.
Classification of ROM
| Type of ROM |
Full Form |
Key Features & Erasing Method |
| PROM |
Programmable Read Only Memory |
Can be programmed only once using a device called a PROM Programmer or Burner. It uses high voltage to permanently burn switches (changing state from 1 to 0). |
| EPROM |
Erasable Programmable Read Only Memory |
Data can be erased by exposing a small window on the chip to Ultraviolet (UV) rays. It can then be reprogrammed using an EPROM Burner. |
| EEPROM |
Electronically Erasable Programmable Read Only Memory |
Erased electronically without removing the chip from the circuit. Can erase and rewrite one byte at a time. Commonly used to store computer configuration settings. |
2. Special Types of Memory
A. Flash Memory
- A type of semiconductor-based, non-volatile, rewriteable memory.
- Retains data even when the power supply is off.
- Examples of Use: Digital cameras, mobile phones, and printers.
B. Virtual Memory
- An imaginary memory area that temporarily stores CPU instructions.
- Function: It is used when the main memory (RAM) is running low on storage space for running a program.
- Mechanism: The program is divided into small chunks, and these chunks are "swapped" between virtual memory and main memory to execute the program.
- Benefit: It increases the effective storage capacity and overall efficiency of the computer.
C. Cache Memory
- A highly specialized and extremely fast memory that uses SRAM (Static RAM) chips.
- Placement: It acts as a buffer between the Processor and the standard DRAM.
- Speed Advantage: While normal RAM takes about 180 nanoseconds to read data, Cache memory provides data in just 45 nanoseconds.
- Mechanism: It stores the most recently used instructions and data. When the CPU needs information, it checks the Cache memory first before checking the main memory.
3. Secondary Memory (Auxiliary Memory)
- Definition: Memory located outside the CPU, used for permanent storage and data backup.
- Why it is needed: Main memory is very expensive, volatile (loses data on power off), and has limited capacity.
- Characteristics: Very low cost and highly scalable storage capacity, but slower data access time compared to main memory.
Classification of Secondary Storage Devices
| Category |
Storage Devices Examples |
| Magnetic Disks |
Hard Disk Drive (HDD), Floppy Disk, Memory Disk |
| Optical Disks |
CD (Compact Disk), DVD, Blu-ray Disk |
| Solid State Disks |
Pen Drive, Flash Drive |
4. Floppy Disk (Detailed)
- Material: Made of a circular Mylar disk coated with magnetic material on both sides. It is protected by a square plastic cover lined with a soft cleaning material inside.
- Standard Sizes: Available in 8 inch, 5¼ inch, and 3½ inch sizes.
- Write-Protect Feature: Has a rectangular hole with a sliding plastic tab. Depending on the tab's position, the floppy can be set to either "read/write" mode or "read-only" mode.
Floppy Disk Formatting & Structure
- Tracks: Data on a floppy disk is stored in concentric circular paths called Tracks. A standard disk has 135 tracks per inch.
- Sectors: Each track is further divided into parts called Sectors. 1 Sector holds 512 bytes of data.
- Formatting: The actual process of dividing the disk into these Tracks and Sectors is called Formatting.
- FDD: Floppies are read and written using a specific device called a Floppy Disk Drive (FDD), which spins the disk and uses a read-write head to access data.
1. Hard Disk (Fixed Disk)
- Structure: Consists of a group of circular magnetic disks mounted on a single spindle/axis.
- Coating: The surfaces are coated with a magnetic material where magnetic signs are created to store data.
- Data Storage Rules: Data is stored on all surfaces except the outermost top and bottom surfaces of the disk stack.
- Mechanism: Each surface has a separate Read/Write Head that moves back and forth. While all heads move together, only one head is selected at a time to read or write data on a specific sector.
- Speed & Dimensions: Disks rotate at high speeds of 3600 to 7200 RPM (Rotations Per Minute). The gap between the read/write head and the disk surface is a microscopic 0.064 inches.
- Capacity & Reliability: Modern hard disks have capacities up to 200 GB. Special disks for personal computers called Winchester Disks hold between 20 GB and 80 GB.
- Protection: Because they are highly sensitive to dust, hard disks are permanently sealed inside a box and mounted inside the system unit.
2. Memory Stick
- A type of USB-based memory card/drive.
- Dimensions: Small physical footprint (approx. 8.25 × 210 × 50 mm).
- Storage Capacity: Ranges from 4 MB to 256 GB.
3. Compact Disk (CD)
- Definition: An Optical Disk functioning as Read-Only Memory (CD-ROM). Data is typically written once and can be read any number of times.
- Usage: Ideal for permanent information needed repeatedly (e.g., telephone directories, flight schedules, books, movies).
- Technology (LASER): Uses LASER (Light Amplification by Stimulated Emission of Radiation) to read and write data.
- Material: Made of plastic with a thin aluminum layer on both sides, protected by a transparent plastic coating.
- Track Structure: Unlike magnetic disks (which have concentric circular tracks), CDs have a continuous spiral track.
- Pits and Lands: Data is stored as microscopic indents called Pits (which scatter light, representing '1') and flat areas called Lands (which return light, representing '0').
- Reading Speed (CLV): The disk's rotation speed changes constantly to ensure a fixed number of bytes are read per second. This is called Constant Linear Velocity (CLV).
- Capacity & Speed: Storage is usually 680 MB to 800 MB. Standard reading speed is 1200 KB per second.
- Types of CD:
- CD-ROM: Read Only Memory.
- CD-R: Recordable.
- CD-RW: Re-writable. (Note: Writing data requires a special device called a CD-Writer).
4. Digital Video Disc (DVD)
- Origin: Developed in 1995 by Sony, Panasonic, and Samsung. Also known as Digital Versatile Disc.
- Key Advantage: The physical size is exactly the same as a CD, but it can store about 6 times more data.
- Capacity: Generally 2 GB or more.
- Types:
- DVD-ROM: Read-only.
- DVD-R / DVD+R: Recordable (can be recorded only once).
- DVD-RW / DVD+RW / DVD-RAM: Rewritable (can be recorded and erased multiple times).
5. Blue-ray Disc (BD)
- Definition: An optical disk storage medium designed to replace the standard DVD format.
- Laser Technology: Uses a Blue-Violet laser (400 nanometers), whereas standard DVDs use a 650 nm red laser. The shorter wavelength allows it to store roughly 10 times more data than a DVD.
- Capacity: 25 GB (Single Layer) up to 50 GB (Dual Layer).
- Usage: Primarily used for High Definition (HD) Video, PlayStation 3 games, and large data storage.
6. Pen / Thumb / Flash Drive
- Technology: Made of Flash memory with an integrated USB (Universal Serial Bus) 1.1 or 2.0 interface.
- Characteristics: Removable, re-writable, weighs less than 30 grams, and has no moving parts (making them highly durable and fast).
- Impact: Entirely replaced floppy disk drives in desktop and laptop computers around 2005.
- Compatibility: Uses the USB mass storage standard, supported by modern operating systems like Windows, Mac, Linux, and Unix.
7. Magnetic Tape
- Material: A 1/2 inch (12.7 mm) wide, hundreds/thousands of feet long plastic ribbon wound on a spool, coated with a magnetic layer.
- Data Density: Can write 800 to 6250 bytes per inch of tape. Lengths range from 200 to 3600 feet.
- Access Method (Crucial): It is a Sequential Medium. This means data must be read or written consecutively from one end to the other. You cannot instantly jump to the middle of the tape.
- Advantage: Very cheap, highly reliable, and safe for decades. Best used for long-term file backups.
- Audio Cassette Style: Smaller tapes (1/4 inch wide, 600 ft long) with capacities of 40 MB to 100 MB are also used in computers.
8. Secondary Memory Devices & Storage Capacity Table
(As per the provided source data)
| Device |
Storage Medium |
Capacity Range |
| Floppy Disk (5.25 inch) |
Magnetic |
1.2 MB |
| Floppy Disk (3.5 inch) |
Magnetic |
80 KB to 1.44 MB |
| Floppy Disk (8 inch) |
Magnetic |
20 MB to 80 GB |
| CD-ROM |
Optical |
640 MB to 680 MB |
| DVD-ROM |
Optical |
4.7 GB to 17 GB |
| Pen Drive |
Solid State |
1 GB to 256 GB |
| Magnetic Tape |
Magnetic |
60 MB to 8 MB (as written in source) |
9. Important Facts (Good to Know)
- Installation: The process of copying software programs from secondary storage media to the hard disk.
- RAM Usage: If the user needs information immediately available to the CPU, it must be stored in the RAM.
- Hard Disk Tracks: Inside a hard disk, Track 0 is the innermost track.
SUMMARY / QUICK REVISION NOTES
- Memory Core Idea: Memory retains digital data. Without it, computers cannot store input.
- Hierarchy Rule: As you go up the memory hierarchy (towards Registers), speed increases but size decreases.
- Primary vs. Secondary: Primary (Internal/Main) is fast, temporary, and part of the CPU. Secondary (Auxiliary) is for permanent, external storage (like Hard Disks).
- Unit Basics: The smallest unit is a Bit (0 or 1). 8 Bits make 1 Byte (1 character). 1024 format applies to all higher conversions (KB -> MB -> GB -> TB).
- RAM Attributes: RAM is a Volatile memory (loses data on power off) and uses Addresses for the CPU to locate data.
- DRAM vs. SRAM Trick to remember: DRAM has a capacitor, leaks charge, and needs refreshing (making it slower). SRAM uses only transistors, needs no refreshing, and holds data as long as power is on.
- ROM Basics: Permanent, read-only, non-volatile. Used in appliances and standard hardware (calculators, cameras).
- ROM Erasure Tricks: PROM = Burned once (permanent). EPROM = UV Light erasure. EEPROM = Electronic erasure (byte by byte).
- Virtual Memory: A "fake" RAM extension on the hard drive used when real RAM is full. It swaps program chunks back and forth.
- Cache Memory: The fastest buffer (SRAM) between the CPU and RAM. CPU always checks Cache first. Drops access time from 180ns to 45ns.
- Secondary Memory: Permanent, cheap, high-capacity, but slower (e.g., HDD, CD, Pen Drive).
- Floppy Disk Facts: Uses tracks and sectors. The act of making tracks/sectors is called Formatting. Each sector = 512 bytes. Comes in 8", 5.25", and 3.5" sizes.
- Hard Disk: Main magnetic storage inside PCs. High speed (3600-7200 RPM). Has multiple platters, but skips outer top/bottom surfaces. Only 1 read/write head operates at a time.
- Optical Disks (CD/DVD/Blu-ray):
- CD: Uses Spiral tracks, stores data in Pits (1) and Lands (0). Reads via LASER using Constant Linear Velocity (CLV). (~700 MB)
- DVD: Same physical size as a CD but holds 6x more data (~4.7GB+).
- Blu-ray: Uses a 400nm Blue-violet laser (unlike DVD's 650nm Red laser) allowing for massive capacity (25GB - 50GB). Best for HD Video.
- Flash Drives: Solid-state USB drives. Fast, highly durable (no moving parts), and completely replaced floppy disks.
- Magnetic Tape: Extremely reliable for long-term backups but very slow due to Sequential Access (data must be read strictly in order, start to finish).
- Installation: Moving software from a secondary drive (like a CD/USB) onto the main Hard Disk.
Comments
Post a Comment