CPU Components and Functionality
Overview of CPU Architecture
Focus on essential CPU components and their functions.
Common CPU Components
Control Unit (CU): Coordinates operations, manages data flow, and sends control signals between internal components.
Arithmetic Logic Unit (ALU): Performs arithmetic operations (addition, subtraction, multiplication, division) and logical operations (AND, OR).
Registers: Fast, temporary memory for immediate data storage (includes PC, MAR, MDR, ACC).
Cache: Fast memory located between CPU and main memory, holds frequently used instructions for quicker access.
Memory Types
RAM (Random Access Memory): Temporary storage for data/instructions currently in use; data lost when power is off.
ROM (Read Only Memory): Permanent storage on a chip; retains instructions even when power is off; contains the bootstrap loader.
Data Communication
System Buses: Three types for communication between components:
Data Bus: Carries data/instructions; bi-directional.
Address Bus: Carries addresses from the processor; uni-directional.
Control Bus: Transmits control signals for memory read/write operations.
Peripherals and I/O Devices
Peripherals: External devices (e.g., mouse, keyboard, printer) not directly connected to CPU; facilitate input/output.
I/O Ports: Allow communication between I/O devices and motherboard, connecting to CPU.