Every topic starts at New. Sign in and your practice counts.
In computing, memory refers to the physical devices used to store programs (sequence of instructions) or data on a temporary or permanent basis for use in a computer or other digital/computing devices. Memory in a digital computer contains the main part of operating system and all the application programs and related data that is being used.
The following are some important memory terms.
Bit: The smallest unit of memory, representing a binary digit (0 or 1). Each memory cell stores one bit, with two states: ON (1) and OFF (0).
Byte: A group of 8 bits forms one byte, which is the smallest unit of data a computer can process. One byte stores one character (like 'A' or
| MEMORY UNIT | EQUIVALENT TO | |
|---|---|---|
| 1 Byte | 8 Bits | |
| 1 Kilobyte (KB) | Bytes | =1024 Bytes |
| 1 Megabyte (MB) | Bytes | = 1024 KB |
| 1 Gigabyte (GB) | Bytes | |
| 1 Terabyte (TB) | Bytes | = 1024 GB |
| 1 Petabyte (PB) | Bytes | |
| 1 Exabyte | Bytes |
Table 1.1 Memory Units
**). Memory is typically measured in bytes, with higher units being shown in Table 1.1.
Memory Word: The smallest unit of data a computer can process in a single operation. The size of a memory word (called word size) can range from 16 to 64 bits, depending on the computer's architecture.
Word Size: Word size refers to the number of bits a CPU can process in one instruction. For example, a 32-bit CPU processes data in 32-bit chunks, while a 64-bit CPU can handle 64 -bit chunks. A larger word size improves the computer's ability to handle more complex operations and larger memory spaces.
All types of computer memories, as for as their built-up (construction) or manufacturing is concerned, are divided into Chip memory, Magnetic memory and Optical memory. And as far as their retention power is concerned these memories are divided into Volatile memory and Non-Volatile memory.
Types based on Memory Built-Up
Computer memory can be categorized based on its construction and how it retains data. These classifications help define where and how data is stored, as well as how quickly it can be accessed.
Chip memory is built using semiconductor technology and is widely used in modern electronic devices due to its speed and compact size. Examples of chip memory include RAM (used for temporarily holding data during operations), ROM (used for storing system boot instructions), and Flash memory (found in USB drives and SSDs). Chip memory is widely used in smartphones, gaming consoles, and computers.
Magnetic memory stores data on magnetized materials and is used for large-scale and long-term data storage. Examples include Hard Disk Drives (HDDs), which are commonly used in desktops and servers.
Optical memory uses laser technology to read and write data stored as tiny pits on optical discs like CDs, DVDs, and Blu-ray Discs. This memory type is commonly used for distributing software, multimedia, and creating backups.
Types based on Retention power
Volatile memory requires power to retain data and is primarily used for temporary storage. It retains the data/information as long as power supply is on, but when power supply is off or interrupted the stored data/information is lost. Examples of such memory are RAM (Random access memory), Cache memory and Registers.
Non-volatiie memory retains data even when power is off, making it suitable for permanent storage. Examples include ROM(Read only memory), which stores essential boot-up instructions, Flash memory used in USB drives, and HDDs for storing programs, videos, and documents.
1.6.3 Types and Hierarchy of Computer Memory
Computer memory is organized in a hierarchy, balancing speed, size, and cost. Faster memory types (Main Memory) are smaller and located closer to the CPU, while slower types (Secondary Memory) are larger and used for storage. Fig.1.21 shows different types of computer memory.
This figure is being prepared.
1.6.4. Main Memory
The main memory (also called primary memory) is an important part of a computer that temporarily stores data, instructions, and results for quick access by the processor. It includes RAM (Random Access Memory), ROM (Read-Only Memory), and Internal Processor Memory (Cache and Registers), each with a specific function.
RAM (Random Access Memory)
RAM is high speed memory installed on the motherboard. It is also called READ/WRITE memory. Information can be read from or written into it. The microprocessor executes programs by first loading them into the RAM from secondary storage devices like a hard disk or a USB flash drive. It is volatile memory which means information stored in it, is lost when the computer is turned off.
RAM modules are installed in the memory slots on the motherboard. RAM modules are shown in Fig.1.22.
ROM (Read Only Memory)
ROM is a single IC chip which is installed on the motherboard as shown in Fig.1.23. It stores the Basic Input/Output System (BIOS) of computer that controls input/output devices and the start-up or boot process. BIOS programs test the computer's components when it is turned on and then load the operating system into the RAM to make the computer ready for operation. It is non-volatile memory, that is, the programs stored in it are not lost when the computer is turned off.
Internal Processor Memory: Cache and Registers
Internal processor memory refers to the specialized storage within the CPU that enables fast access to data and instructions. The two main types of internal memory are cache and registers.
Cache is a small but extremely fast memory located inside or very close to the CPU. Its purpose is to store frequently accessed data and instructions, reducing the time needed to fetch them from the slower main memory (RAM). There are different types of cache memory as shown in Fig.1.24.
Types of Cache:
i. L1 Cache (Level 1): Located directly within the processor core, it is the smallest and fastest type of cache.
ii. L2 Cache (Level 2): Slightly larger and slower than L1, L2 cache is either built into the CPU or placed on the motherboard.
iii. L3 Cache (Level 3): Shared among multiple cores in multi-core processors, L3 cache is the largest and slowest among the three levels.
This figure is being prepared.
Registers are the smallest and fastest memory units in the processor. They temporarily store data, instructions, or addresses currently being used by the CPU. Registers are directly connected to the arithmetic and logic unit (ALU) and play important role in performing computations. Common registers are already discussed in topic 1.4.
1.6.5. Secondary Memory
Secondary memory refers to long-term data storage in a computer, used to permanently store programs, files, and other data. Secondary memory retains information even when the computer is turned off. The following are the main categories of secondary memory.
Chip-Based Secondary Memory
Chip-based secondary memory refers to storage solutions built on semiconductor chips, designed to retain dat i even when power is turned off. Unlike primary memory (RAM), which is temporary, these chips offer long-term storage and are widely used in modern computing. Common examples of chipbased secondary memory are SSDs, USB drives and
Memory cards. Chips based secondary memory is shown in Fig.1.25.
Magnetic Memory
Magnetic memory/storage is a widely used data storage method that employs magnetized materials to store binary data. Examples include magnetic tapes and hard disks, where a thin magnetic layer on the surface holds binary information. Magnetized spots represent binary 1s, while non-magnetized spots represent biriary 0s. A read-write head detects and alters the magnetization to access or modify data. Magnetic storage is cost-effective and offers large storage capacities, making it suitable for storing vast amounts of data. However, its main drawback is slower data access speeds. Hard disks are a common example of magnetic memory, as shown in Fig. 1.26.
Optical Memory
In optical-storage technology, a laser beam encodes digital data onto an optical disk in the form of tiny pits and lands arranged in concentric tracks on the disk's surface as shown in Fig.1.27. A low-power laser scanner is used to "read" data or information from these pits and lands, and converts it to digital form.
Optical storage provides cheaper and greater memory capacity than magnetic storage. An entire set of encyclopedias, for example, can be stored on a standard 12-centimetre (4.72-inch) optical disk. Optical disks include CDs, DVDs and Blu-ray disks(BDs).
This figure is being prepared.
Optical Memory technology