The processor (CPU - Central Processing Unit) is the brain of a computer system, responsible for executing instructions that allow programs to function.
ALU (Arithmetic and Logic Unit)
Arithmetic operations: Addition, subtraction, multiplication, division
Logical operations: AND, OR, NOT, XOR (Boolean logic)
CU (Control Unit)
• Directing the flow of data between the CPU and other components
• Coordinating the sequence of data processing steps
• Sending control signals to manage instruction execution
Registers
| Register | Full Name | Purpose |
|---|---|---|
| PC | Program Counter | Stores the address of the next instruction to be executed |
| ACC | Accumulator | Holds results of arithmetic and logic operations |
| MAR | Memory Address Register | Contains the address of the memory location to be read/written |
| MDR | Memory Data Register | Temporarily stores data being transferred to/from memory |
| CIR | Current Instruction Register | Stores the instruction currently being executed (split into opcode and operand) |
Buses
| Bus | Direction | Purpose |
|---|---|---|
| Data Bus | Bi-directional | Carries data and instructions between components |
| Address Bus | Unidirectional (CPU → Memory) | Carries memory addresses to identify where data should be read/written |
| Control Bus | Bi-directional | Carries control signals (read, write, clock) to coordinate actions |