Table of Contents
ToggleComputer
A computer is an electronic machine that takes data as input and follows instructions to give output. It does math and logic work to produce results. It can also save the results for later use. A computer can handle both numbers and other types of information. The word “computer” comes from the Latin word “computare,” which means to calculate.
Block Diagram of a Computer

Von-Neumann architecture

The Von Neumann architecture, also known as the Von Neumann model, is a computer architecture that stores both program instructions and data in a single memory unit. This design allows for great flexibility and ease of programming. It’s a fundamental concept in the design of modern electronic computers.
Now let’s discuss over the components of the architecture:
- The CPU, or processor, runs the instructions of a computer program. It has three main parts: the ALU, the CU, and registers.
- The ALU does the math and logic work. It handles arithmetic tasks such as addition, subtraction, multiplication, and division. It also performs logic operations like AND, OR, and NOT.
- The CU manages timing and control signals. It tells the ALU, memory, and input/output devices when and how to carry out each instruction.
Registers
Registers are small, high-speed storage units inside the CPU. They hold data temporarily before it is processed. In the Von Neumann Architecture, the main types of registers are:
- MAR (Memory Address Register): Holds the address of the memory location to be accessed.
- MDR (Memory Data Register): Holds the data that is being transferred to or from memory.
- PC (Program Counter): Keeps track of the address of the next instruction to be executed.
- ACC (Accumulator): Stores intermediate results of arithmetic and logic operations.
- IR (Instruction Register): Holds the current instruction being executed.
Memory Unit
- The memory unit in the Von Neumann architecture stores both data and instructions in the same place. It is an important part of the computer’s main memory. The memory is organized as one large space with addresses that the CPU can use to find information. The memory unit handles storing and retrieving data and instructions when needed. It also manages how memory is used and freed. This unit includes RAM, which is fast and can be directly accessed by the CPU.
Main Drawbacks of the Von Neumann Architecture
- The CPU and memory share the same path to send and receive data. This makes the CPU wait, which slows down the system.
- Data and program instructions are stored together. If something goes wrong, the instructions can be changed by mistake, which may cause errors.
- The CPU works step by step, doing one instruction at a time. This makes it slower compared to systems that can do many tasks at once.
- Moving data back and forth between the CPU and memory all the time uses a lot of energy.
- Modern work, like AI, games, and big data, needs fast data movement. The single data path in Von Neumann systems can’t handle this well.
Harvard Architecture
Harvard Architecture is a type of computer design where data and instructions are stored in separate memory units and travel through separate buses (paths).
FeaturesHarvard Architecture
- Separate memory for instructions and data
This means the computer can read an instruction and access data at the same time, making it faster. - Separate buses
Since there are two buses (one for data and one for instructions), there is no delay or waiting like in Von Neumann architecture. - Faster performance
Because it avoids the “bottleneck” of using one path for both data and instructions, programs can run more efficiently.
Introduction of basic hardware components
A computer’s hardware components are the physical parts that work together to process data, run programs, and perform tasks. Below is a simple introduction to the main hardware components of a computer, explained in plain language:
1. Motherboard
- What it is: The main circuit board that connects all components, acting like the computer’s backbone.
- Role: It provides pathways for data to flow between the CPU, RAM, storage, and other parts.
- Example: A large board inside the computer with slots and connectors.
2. Central Processing Unit (CPU)
- What it is: The “brain” of the computer that does all the calculations and runs programs.
- Role: Executes instructions from software by performing fetch, decode, and execute operations.
- Example: A small chip (like Intel Core i5 or AMD Ryzen) on the motherboard.
3. Random Access Memory (RAM)
- What it is: Temporary memory that stores data the CPU needs right now.
- Role: Holds active programs and data for quick access; more RAM means smoother multitasking.
- Example: A stick of memory (like 8GB or 16GB DDR4) plugged into the motherboard.
4. Storage Devices
- What it is: Where the computer saves data, programs, and the operating system permanently (or until deleted).
- Role: Stores files when the computer is off, unlike RAM, which is temporary.
- Types:
- Hard Disk Drive (HDD): A spinning disk, cheaper but slower.
- Solid State Drive (SSD): Faster, no moving parts, more reliable.
- Example: A 1TB HDD or a 500GB SSD.
5. Graphics Processing Unit (GPU)
- What it is: A specialized chip for handling visuals, like images, videos, and games.
- Role: Takes the load off the CPU for rendering graphics; essential for gaming or video editing.
- Types:
- Integrated: Built into the CPU (e.g., Intel Iris Xe).
- Dedicated: Separate card (e.g., NVIDIA GeForce RTX 3080).
- Example: A graphics card plugged into the motherboard.
6. Power Supply Unit (PSU)
- What it is: Converts electricity from the wall outlet into power for the computer.
- Role: Supplies stable power to all components.
- Example: A box with cables (like a 650W PSU) inside the computer case.
7. Cooling System
- What it is: Keeps components like the CPU and GPU from overheating.
- Role: Dissipates heat generated during operation.
- Types:
- Fans: Air cooling with spinning blades.
- Liquid Cooling: Uses liquid to transfer heat.
- Example: A fan on the CPU or a radiator for liquid cooling.
8. Input Devices
- What they are: Tools to send data or commands to the computer.
- Role: Allow users to interact with the computer.
- Examples:
- Keyboard: For typing.
- Mouse: For clicking and navigating.
- Others: Touchscreens, microphones, webcams.
9. Output Devices
- What they are: Devices that show or produce results from the computer.
- Role: Display or output processed data to the user.
- Examples:
- Monitor: Displays visuals.
- Speakers/Headphones: Output sound.
- Printer: Produces physical copies.
10. Expansion Cards
- What they are: Add-on cards that enhance the computer’s capabilities.
- Role: Enhance the computer’s capabilities beyond what’s built into the motherboard.
- Examples:
- Sound Card: Improves audio quality for music or gaming.
- Network Interface Card (NIC): Adds wired Ethernet connectivity.
- USB Expansion Card: Adds extra USB ports.
- Example: A PCIe Wi-Fi card for wireless internet.
11. Case (Chassis)
- What it is: The physical enclosure that houses all the computer’s components.
- Role: Protects components, organizes them, and provides airflow for cooling.
- Example: A metal or plastic tower case with slots for drives and fans.
12. Optical Drives (Optional)
- What they are: Devices that read or write data on CDs, DVDs, or Blu-ray discs.
- Role: Used for installing software, playing media, or backing up data (less common today due to USB drives and downloads).
- Example: A DVD-RW drive in older computers.
13. Network Adapter
- What it is: Hardware that connects the computer to a network, like the internet.
- Role: Enables wired (Ethernet) or wireless (Wi-Fi) communication.
- Types:
- Integrated: Built into the motherboard.
- External: USB Wi-Fi dongles or PCIe cards.
- Example: A Wi-Fi 6 adapter for fast wireless internet.
14. Battery (For Laptops)
- What it is: A rechargeable power source for portable devices like laptops.
- Role: Powers the laptop when not plugged into an outlet.
- Example: A lithium-ion battery providing 4-8 hours of use.
15. BIOS/UEFI Chip
- What it is: A small chip on the motherboard with firmware (basic software).
- Role: Starts the computer, checks hardware, and loads the operating system.
- Example: A chip programmed with UEFI for modern PCs.
16. Cables and Connectors
- What they are: Wires and ports that link components inside and outside the computer.
- Role: Transfer power, data, or signals between devices.
- Examples:
- SATA Cables: Connect storage drives to the motherboard.
- HDMI/DisplayPort: Connect the monitor to the GPU.
- USB Ports: For external devices like keyboards or flash drives.
17. Sensors (In Some Systems)
- What they are: Small devices that detect environmental changes.
- Role: Monitor temperature, fan speed, or motion (common in laptops or IoT devices).
- Example: A temperature sensor to adjust fan speed.
Power supply:
- A power supply is a hardware component that converts AC power from an outlet to DC power, regulates voltage to prevent overheating, and ensures a computer runs smoothly, making it essential for all components to function properly.
Power supplies can also be classified into two types based on their integration with the device:
1. Internal Power Supply: This type is integrated with the motherboard or main circuit board of the device. Examples include the power supplies in devices like televisions, DVD players, or desktop computers (e.g., ATX power supplies), where the power supply is housed within the device’s case and connected directly to the motherboard.
- 2. External Power Supply: This type is separate from the motherboard or main circuit board of the electronic device. Examples include laptop chargers, smartphone chargers, or external power adapters, which connect to the device via a cable and plug.
Based on their function, computer power supplies can be classified into two commonly used types with distinct differences:
- AT Power Supply: This is an older type of power supply used in early computers, such as those with Pentium II and Pentium III processors around 1997. It features a simple design with a power switch directly connected to the power supply and uses fewer connectors (e.g., 2×6-pin connectors for the motherboard). Due to its outdated technology and limited power output, AT Power Supplies are no longer used in modern computer equipment.
- ATX Power Supply: This is the modern standard for computer power supplies, introduced to replace the AT Power Supply. ATX (Advanced Technology Extended) power supplies offer improved efficiency, better power regulation, and more connectors (e.g., 20/24-pin main connector, 4/8-pin CPU connector) to support advanced hardware. They are widely used in current desktop and laptop systems, providing higher wattage and support for features like standby power (5VSB) for better energy management.
Casing
A computer case (also called a chassis, tower, system unit, or cabinet) is the box that holds most of the computer parts, like the motherboard, hard drive, and power supply. It does not include the monitor, keyboard, or mouse. Most cases are made from steel or aluminium. Some may also use plastic, glass, wood, or even creative materials like Lego bricks, especially in custom-built computers.
Motherboard
The motherboard is a flat circuit board that holds most of the parts of a computer, except for input and output devices. Important hardware like the CPU, RAM, hard drive, and ports are all attached to the motherboard. It is the largest circuit board inside the computer case.
The motherboard gives power to all the hardware connected to it and helps them work together. It holds the computer’s main chip (the CPU) and allows other parts to connect to it through ports and slots. Every part that runs or improves the computer connects to the motherboard.
There are different types of motherboards depending on the size and type of the computer. Each motherboard works only with specific CPUs and memory types.
Components of a Motherboard:
- CPU Slot: This slot is used to place the CPU. It connects the processor to the motherboard. It has a lock to keep the CPU in place and a heat sink to keep it cool.
- RAM Slot: This slot is for installing RAM (memory). Most motherboards have two or more RAM slots.
- Expansion Slot: Also called a bus slot, it is used to add extra hardware like video or sound cards. Examples of expansion slots are AGP, PCI, AMR, and CNR.
- Capacitor: It stores electrical energy. It is made of two plates with an insulating material in between, packed in a plastic container.
- Inductor (Coil): This is a coil of wire wrapped around a metal core. It stores magnetic energy and helps with power flow.
- Northbridge: This chip helps the CPU communicate with RAM and graphics. It also connects with another chip called the southbridge.
- USB Port: This port lets you connect devices like a mouse or keyboard to the computer.
- PCI Slot: This stands for Peripheral Component Interconnect. It is used to connect devices like modems, sound cards, or network cards.
- AGP Slot: This stands for Accelerated Graphics Port. It is used to connect a graphics card to the motherboard.
- Heat Sink: This part absorbs and spreads out heat to keep the CPU cool.
- Power Connector: It supplies power to the motherboard from the power supply.
- CMOS Battery: This small battery stores settings like the date, time, and hardware configuration. CMOS stands for Complementary Metal-Oxide-Semiconductor.
Chipsets
A chipset is a group of electronic parts built into a circuit that controls how data moves between the processor (CPU), memory (RAM), and other devices connected to the computer. It is usually located on the motherboard. Each chipset is designed to work with a certain type of processor. Since it controls communication between the CPU and other parts, the chipset plays an important role in how fast and smoothly the computer works.
Chipset Characteristics
Chipsets have several important features that help us understand their functions. These features are grouped into six main categories:
- Host
This tells us which processor the chipset supports, the type of voltage it uses (like GTL+ or AGTL+), and how many processors it can work with. - Memory
This defines what kind of memory (DRAM) the chipset supports. It includes how much memory it can handle, the type of memory, and if it supports extra features like:- Memory Interleaving (faster access to memory)
- ECC (Error Correction Code, which corrects small memory errors)
- Parity (basic error checking)
- Interfaces
This describes which types of expansion connections the chipset supports, like:- PCI (used for connecting extra cards)
- AGP (used for graphics cards)
It also tells if it supports features like: - PIPE (Graphics pipelining for better performance)
- SBA (Side Band Addressing for faster graphics data flow)
- Arbitration
This explains how the chipset manages and balances data flow between different devices and buses (data pathways). Common methods include:- MTT (Multi Transaction Timer)
- DIA (Dynamic Intelligent Arbiter)
- South Bridge Support
Most chipsets are made of two main parts:- Northbridge: Connects the CPU and memory.
- Southbridge: Connects devices like USB ports, hard drives (IDE), real-time clock (RTC), and other ports like serial and parallel ports.
The chipset ensures that both parts work together smoothly.
- Power Management
All Intel chipsets and most others support power-saving features like:- SMM (System Management Mode)
- ACPI (Advanced Configuration and Power Interface)
These help the computer save energy when not in use.
Real-Time Clock (RTC)
- A real-time clock (RTC) is a small clock powered by a battery that is built into a microchip on the computer’s motherboard. This chip is separate from the main processor and is often called the CMOS chip (which stands for Complementary Metal-Oxide Semiconductor).
- This chip has a small memory that stores important system information, including the current time. The time includes the year, month, date, hour, minute, and second.
- When you turn on your computer, the BIOS (Basic Input-Output System) reads the time from the RTC chip to show the correct time on your system.
Benefits of RTCs:
- RTC chips are more accurate than using the system’s main timer for keeping time.
- They allow the main computer system to focus on other tasks instead of checking the time.
- They use very little power and are very stable in keeping time.
BIOS: Basic Input Output System
- BIOS stand for Basic Input Output System. It is built-in software. It is the first software run by the computer when you turned on your computer system. This software is usually stored in Read Only Memory (ROM) and located on the motherboard. In modern computer systems, the BIOS contents are stored in a flash memory. It is not possible for an operating system to continue without BIOS as it is the BIOS that loads the drivers of the hard disk and primary portions of the operating system like MBR, FAT, GPT etc, into the memory to enable the operating system to continue loading itself.
- It is also known as System BIOS, ROM BIOS, PC BIOS etc.
Functions of BIOS
The main function of Basic Input Output System (BIOS) is to initialize and test all hardware components attached to the computer and load the part of the operating system. BIOS also provides a medium that facilitates the application programs and operating system to interact with the keyboard, display, and other I/O devices.
The following is a list of activities performed by BIOS:
- BIOS handles the power management and initializes registers.
- It checks and loads the device drivers and interrupt handlers into the RAM.
- It is used to display system settings.
- BIOS specifies the Bootable devices.
- BIOS initializes the Bootstrap sequence.
