Memory and Numerical Systems: Comprehensive Study Guide
Introduction to Memory and Numerical Systems
- The main objective of this lesson is to understand the inherent limits of a computer system.
- It aims to identify specific scenarios and conditions where these computational or storage limits are likely to be encountered during processing.
Information Representation and the Binary Digit (Bit)
- Every computer processor is constructed from millions of miniature switches known as transistors.
- These switches function in two states: they can be turned either "on" or "off".
- Consequently, it is logical for a computer to represent data and perform computations using a number system with only two digits.
- Binary Number System: A system that utilizes only two digits, 0 and 1.
- Bit: This term stands for "binary digit". Bits correspond directly to the on/off positions of the switches within the computer processor.
- A bit value of generally represents the "off" state.
- A bit value of generally represents the "on" state.
Physical and Logical Organization of Memory
Storage devices utilize physical materials with two distinct states to represent the smallest unit of information:
- RAM (Random Access Memory): Memory cells are either electrically charged or cleared.
- Magnetic Storage: Utilizes areas that are either magnetized or non-magnetized.
- Optical Storage: Uses two different levels of light reflectance (pits and lands) to represent data.
Memory Hierarchy and Categorization:
- Bit: The binary digit (0 or 1).
- Byte: A group of bits used to encode a single character. 1 Byte is equal to bits. The byte is the smallest addressable location in memory, and computer operations typically occur at the byte level.
- Word: A collection of bytes. A "word" is defined as the number of bits a computer's Central Processing Unit (CPU) can handle or process in a single operation. This is highly machine-dependent and varies based on architecture:
- Early computers: Used -bit words.
- Modern computers: Typically use -bit or -bit words.
- Doubleword: Consists of bytes ( bits).
- Quadword: Consists of bytes ( bits).
Instruction Structure: Computer instructions are composed of operation codes (op-codes) and memory addresses.
Computer Classification: Computers are often classified by their word size (e.g., -bit, -bit, and -bit machines). Word size acts as a primary indicator of computer performance and the number of bits used to represent addresses in Main Memory (RAM).
Computer Memory Classification: Primary vs. Secondary
Primary Memory: This is the memory accessed directly by the CPU.
- Cache Memory (CPU Registers): Supplementary memory that temporarily stores frequently used instructions and data for quicker processing.
- Main Memory: Divided into volatile and non-volatile types.
- RAM (Random Access Memory): A volatile type of memory (data is lost when power is off) used to store information the computer is actively using for quick access by applications. It includes:
- SRAM (Static RAM): Built using flip-flops.
- DRAM (Dynamic RAM): Built using capacitors.
- ROM (Read Only Memory): A non-volatile type of memory that permanently stores data. It contains the essential programming needed to start a PC (boot-up) and performs major input/output tasks. Variants include:
- PROM (Programmable Read-Only Memory).
- EPROM (Erasable Programmable Read-Only Memory).
- EEPROM (Electrically Erasable Programmable Read-Only Memory).
Secondary (Auxiliary) Memory: External memory used for long-term storage of data and programs. It can be fixed or removable.
- Sequential Access: Examples include Magnetic Tape.
- Magnetic Disk: Includes Hard Disk Drives (HDD) and Floppy Disk Drives.
- Optical Disk:
- CD: Capacity of approximately .
- DVD: Capacity of approximately .
- Blu-Ray Disk: Capacity of approximately .
- Flash Memory: Includes Memory Cards and Pen Drives.
Memory Measurement Units and Capacities
- Memory is measured in increasing orders of magnitude, traditionally based on powers of ():
- = Binary Digit.
- = .
- = ().
- = ().
- = .
- = .
- = .
- = .
- = .
- = .
Numerical Systems: Decimal vs. Binary
Decimal Numerical System:
- The standard system for mathematical notation.
- Base-10 system: Uses digits ().
- Positional Notation: The position of the digit determines its value (units, tens, hundreds, etc.).
- Example: The number represents hundreds, tens, and units.
- Exponential Expression: .
Binary Numerical System:
- Used to understand how computers perform computations and code every instruction.
- Base-2 system: Uses only two digits ( and ).
- Numbers are represented through powers of .
- Example Conversion (Binary to Decimal):
- Notation: A subscript (e.g., ) or the suffix "B" (e.g., ) indicates the number is in base-2.