The ALU is the component responsible for all mathematical calculations and logical comparisons within the CPU.
It performs arithmetic operations such as addition, subtraction, multiplication, and division, as well as logical decisions (e.g., IF X > Y).
Once a calculation is complete, the ALU typically sends the result to a specific register for temporary storage before further processing.
Registers are extremely small, high-speed storage locations within the CPU that hold data and instructions currently being processed.
The Program Counter (PC) holds the memory address of the next instruction to be executed and automatically increments by 1 during each cycle.
The Memory Address Register (MAR) holds the address of the location in RAM that is currently being read from or written to.
The Memory Data Register (MDR) acts as a buffer, holding the actual data or instruction that has just been fetched from or is about to be sent to RAM.
The Accumulator (ACC) is a dedicated register that stores the intermediate results of calculations performed by the ALU.
A Bus is a physical set of parallel wires used to transmit data and signals between the CPU, memory, and input/output devices.
The Address Bus carries the location of the data being accessed, while the Data Bus carries the actual information or instruction.
The Control Bus transmits command signals (like 'read' or 'write') from the Control Unit to ensure components are acting in synchronization.
| Component | Primary Function | Storage Type |
|---|---|---|
| Register | Holds immediate data for the current instruction | Volatile, Internal, Ultra-fast |
| RAM | Holds programs and data currently in use | Volatile, External, Fast |
| ALU | Performs calculations and logic | Processing Unit |
| CU | Decodes and manages data flow | Control Unit |
MAR vs. MDR: The MAR always contains a memory 'location' (an address), whereas the MDR contains the 'content' (the data) found at that
PC vs. MAR: The PC tracks the sequence of the program (what's next), while the MAR is used specifically for the physical interface with memory during a fetch or store operation.
Sequence Matters: When describing the FDE cycle, always mention that the Program Counter (PC) increments after the address is sent to the MAR but before the next cycle begins.
Identify the 'What' vs 'Where': In exam questions, if the scenario involves a calculation result, look for the Accumulator. If it involves finding an instruction in RAM, look for the MAR.
Clock Speed Units: Remember that modern CPUs operate in Gigahertz (GHz), which represents billions of cycles per second. A higher clock speed directly increases the number of instructions processed per unit of time.
Common Pitfall: Do not confuse the CPU with 'storage' like a Hard Drive. The CPU and its registers are for active processing, not long-term file storage.