- RAM (Random-Access Memory): Permits both read and write operations from any memory location within a fixed time interval, enabling true "random access".
- ROM (Read-Only Memory): Performs only read operations. Binary information is permanent and cannot be altered during computation. Used for fixed programs and constant tables.
- PROM: Programmable ROM - can be programmed once after manufacturing.
- EEPROM: Electrically Erasable PROM - can be erased and reprogrammed electronically.
Memory Hierarchy
The memory hierarchy is a structured arrangement of storage components designed to optimize the balance between speed, cost, and capacity.
🚀 Cache Memory
Fastest
Smallest capacity
Most expensive
âš¡ Main Memory
Medium Speed
Medium capacity
Moderate cost
💾 Auxiliary Memory
Slowest
Largest capacity
Least expensive
Main Memory
Main Memory serves as the central storage unit, containing instructions and data actively used by the CPU.
RAM and ROM Chips
Memory Address Map
Details how the system allocates total available address space among installed RAM and ROM chips to prevent address conflicts. Ensures each memory location has a unique address.
Memory Connection to CPU
Covers the physical interface requirements for CPU-memory interaction:
- Address lines for location selection
- Data lines for information transfer
- Control signals for read/write operations
Auxiliary Memory
Auxiliary memory devices provide vast storage capacity for data not immediately required by the CPU.
💿 Magnetic Disks
Focuses on the structure, organization, and data storage principles of magnetic disk units. Includes discussion of tracks, sectors, and cylinders used for data organization.
📼 Magnetic Tapes
Covers characteristics and operation of magnetic tape systems, typically used for long-term archiving and large data backups. Sequential access storage medium.
Associative Memory
Also known as Content Addressable Memory (CAM), this specialized memory retrieves data based on content comparison rather than address specification.
Hardware Organization
Describes the internal register and memory cell structure supporting simultaneous searching across all stored words. Enables parallel content-based retrieval.
Match Logic
Details specialized combinatorial logic required to execute parallel comparisons between search arguments and stored data.
Read & Write Operations
Explains specific control sequences and logic for accessing (reading) and updating (writing) information in content-based storage systems.
Cache Memory
High-speed buffer memory designed to bridge the speed gap between the fast CPU and slower main memory.
Associative Mapping
A main memory block can be loaded into any free cache location. Offers maximum flexibility but requires complex comparison logic for locating data.
Direct Mapping
Simpler predefined mapping where each memory block maps to only one specific cache line. Reduces search complexity but may cause conflicts.
Set-Associative Mapping
Hybrid approach grouping cache lines into sets. A memory block can reside anywhere within its assigned set, balancing speed and simplicity.
Writing & Initialization
Covers coherence protocols ensuring data integrity between cache and main memory, plus necessary cache hardware initialization steps.
Virtual Memory
Memory management concept using auxiliary memory to create the illusion of larger main memory space than physically available.
Address Space vs Memory Space
- Address Space: The set of logical addresses generated by the running program.
- Memory Space: The actual physical capacity of main memory available in the system.
Address Mapping Using Pages
Details the mechanism of dividing address space and memory space into fixed-size units called pages and frames, fundamental to virtual address translation.
Associative Memory Page Table
Uses specialized fast memory to store frequently accessed page table entries, accelerating virtual-to-physical address translation.
Page Replacement
Covers algorithms and policies managing page movement between physical memory and auxiliary storage when required pages aren't memory-resident.
Memory Management Hardware
Specific hardware required to support and automate complex virtual memory and cache structures.
Segmented-Page Mapping
Architecture combining logical segmentation (for program structure) with paging (for efficient memory allocation), providing both logical organization and efficient physical management.
Numerical Example
Provides practical calculation examples demonstrating how address translation works under the segmented-page system with real numbers.
Memory Protection
Explores hardware mechanisms preventing unauthorized memory access, crucial for operating system security and multitasking environments.