A computer is defined as a device that:
Takes input
Processes this input according to stored instructions
Produces results as output.
Hardware refers to all electronic and mechanical equipment in a computer, including:
Storage: Hard disk
Memory: RAM
Processor: CPU (Central Processor Unit)
Input Devices: Keyboard, mouse
Output Devices: Monitor
Cables
Key components include:
CPU/Processor
Memory Subsystem
I/O Devices
Address Bus: Carries the address to access data
Data Bus: Transmits the actual data
Control Bus: Carries control signals
The CPU executes programs by performing four main steps:
Fetch: Retrieve an instruction from program memory.
Decode: Break down the instruction into parts relevant to the CPU.
Execute: Different portions of the CPU perform the required operations.
Write Back: Store the results of execution if necessary.
Components include:
Control Unit: Directs the execution of instructions.
Execution Units: Perform specific operations (e.g., arithmetic).
Register File: Contains information necessary for current instruction execution.
Memory is organized into numbered storage locations:
Nonvolatile Memory:
Retains data when the system is shut down.
Typically has a higher capacity yet slower than volatile memory.
Volatile Memory (Primary Memory):
Loses data when powered off.
Examples include Cache Memory and RAM.
Essential for CPU functionality and directly connected to it.
Types include:
Registers: Store data the CPU needs for instructions.
Main Memory: Contains currently executed programs and operational data.
Cache Memory: A fast, small internal memory enhancing CPU performance.
Input Devices: Feed data into the computer (e.g., keyboard, mouse).
Output Devices: Display or transmit information back to the user (e.g., monitors, printers).
I/O devices communicate with the processor via the I/O bus, commonly using PCI Express in PCs.
Despite differences in hardware across computing devices, they all share core components:
CPU
RAM
I/O Devices
Busses