Computer Memory: Needed to store data and instructions for processing.
Memory Types
Main or Primary Memory: Commonly referred to as 'memory.' It is an essential component where programs and data are loaded before processing. The CPU interacts directly with primary memory. Types include:
RAM (Random Access Memory): Volatile; data is retained as long as power is supplied.
ROM (Read Only Memory): Non-volatile; contents are not lost when power is off; used for startup programs (boot loader).
Cache Memory: A very high-speed memory placed between the CPU and primary memory. Stores copies of frequently accessed data from primary memory.
Secondary Memory (Storage Device): Auxiliary memory for permanently storing data or instructions. Non-volatile with larger storage capacity than primary memory but slower and cheaper than main memory. Examples include HDD, CD/DVD, Memory Card, SSD, Pen Drives.
Units of Memory
Computer systems use binary numbers to store data.
Binary digits (0 and 1) are called bits.
4 bits = Nibble (e.g., 1001)
8 bits (two nibbles) = Byte (e.g., 01000110)
Units of memory:
KB (Kilobyte) = 1024 Bytes
MB (Megabyte) = 1024 KB
GB (Gigabyte) = 1024 MB
TB (Terabyte) = 1024 GB
PB (Petabyte) = 1024 TB
EB (Exabyte) = 1024 PB
ZB (Zettabyte) = 1024 EB
YB (Yottabyte) = 1024 ZB
Data Transfer
Data Transfer Between Memory and CPU: Data is transferred between CPU and primary memory and between primary and secondary memory.
Bus: Data transfer uses physical wires called a bus.
Data bus: Transfers data between components (bidirectional).
Address bus: Transfers addresses between CPU and main memory (unidirectional).
Control bus: Communicates control signals between components (unidirectional).
System bus: Collectively, these buses make up the system bus.
The CPU places the address of the memory location on the address bus to read or write data.
The CPU specifies read or write control signals through the control bus.
Memory Controller: A memory controller manages the flow of data into and out of the computer's main memory.
Microprocessors
A processor (CPU) implemented on a single microchip.
Microprocessors carry out data processing, arithmetic, and logical operations.
Built over integrated circuits with millions of components like resistors, transistors, and diodes.