COA Notes
Five functional units of a computer system: input, output, memory, ALU, and control unit with detailed explanations.
Introduction
Every computer, from the simplest microcontroller in your washing machine to the most powerful supercomputer, is built from the same five fundamental functional units. These units work together like a well-coordinated team, each handling a specific responsibility. Understanding these units gives you a complete picture of how any computer system operates.
The Five Functional Units
A computer system consists of:
- Input Unit — Accepts data and instructions from the outside world
- Memory Unit — Stores data and instructions
- Arithmetic Logic Unit (ALU) — Performs calculations and logical decisions
- Control Unit (CU) — Coordinates all other units
- Output Unit — Delivers results to the outside world
Together, the ALU and Control Unit form the Central Processing Unit (CPU), which is the brain of the computer.
| Input | ─────▶ | Control | ALU | ─────▶ | Output | |||
|---|---|---|---|---|---|---|---|---|
| Unit | Unit | Unit |
Input Unit
What It Does
The input unit is the gateway through which data and instructions enter the computer. It converts human-readable or sensor data into binary form that the computer can process.
How It Works
- Accepts data from input devices (keyboard, mouse, scanner, microphone)
- Converts the data into binary electrical signals
- Transfers the binary data to memory or directly to the CPU
Examples of Input Devices
- Keyboard: Converts key presses into ASCII/Unicode binary codes
- Mouse: Sends position coordinates and button states
- Scanner: Converts physical documents into digital images
- Microphone: Converts sound waves into digital audio samples
- Network Interface: Receives data packets from other computers
- Sensors: Temperature, pressure, motion sensors in IoT devices
Key Characteristics
- Performs data conversion (analog-to-digital, human-to-machine)
- Operates at much slower speeds than the CPU
- Requires buffering to handle speed mismatch
Memory Unit
What It Does
The memory unit stores both data (the information being processed) and instructions (the program telling the CPU what to do). It serves as the computer's workspace.
Types of Memory
Primary Memory (Main Memory)
- RAM (Random Access Memory): Volatile — loses contents when power is off. Used for active programs and data.
- ROM (Read Only Memory): Non-volatile — retains contents without power. Stores firmware and boot instructions.
Secondary Memory
- Hard drives, SSDs, USB drives — non-volatile, larger capacity, slower access
Registers
- Tiny, ultra-fast memory locations inside the CPU itself
How Memory Works
Memory is organized as a series of cells, each with a unique address. To store data, the CPU provides an address and the data. To retrieve data, the CPU provides an address and receives the stored value.
| Address | ┌────────────┐ |
| 0000 | │ 10110011 │ |
| 0001 | │ 01001100 │ |
| 0002 | │ 11100001 │ |
| 0003 | │ 00011010 │ |
Key Characteristics
- Random access — any location accessible in equal time
- Measured in bytes (KB, MB, GB, TB)
- Speed hierarchy: Registers > Cache > RAM > SSD > HDD
Arithmetic Logic Unit (ALU)
What It Does
The ALU is the computational engine of the computer. It performs all mathematical calculations and logical comparisons.
Operations Performed
Arithmetic Operations:
- Addition, Subtraction, Multiplication, Division
- Increment, Decrement
- Floating-point arithmetic
Logical Operations:
- AND, OR, NOT, XOR
- Comparison (equal, greater than, less than)
- Shift and rotate operations
How It Works
- Receives operands (data values) from registers
- Receives operation code from the control unit
- Performs the specified operation
- Produces a result and status flags (carry, zero, overflow, negative)
Internal Structure
The ALU contains:
- Adder circuits for arithmetic
- Logic gates for boolean operations
- Shifters for shift operations
- Comparators for comparison operations
- Status register to report condition codes
Control Unit (CU)
What It Does
The control unit is the coordinator — it doesn't process data itself but directs all other units on what to do and when to do it. It's like an orchestra conductor.
How It Works
- Fetches the next instruction from memory
- Decodes the instruction to determine the required operation
- Generates control signals to activate the appropriate components
- Sequences operations in the correct order
Control Signals Generated
- Memory Read/Write signals
- ALU operation selection
- Register load/enable signals
- I/O device activation
- Bus control signals
Types of Control Units
- Hardwired: Uses combinational logic circuits — faster but inflexible
- Microprogrammed: Uses a control memory with microinstructions — flexible but slightly slower
Output Unit
What It Does
The output unit takes processed results from the computer and converts them into human-readable or machine-usable form.
How It Works
- Receives binary data from memory or CPU
- Converts it to the appropriate output format
- Delivers to the output device
Examples of Output Devices
- Monitor: Converts binary data to visual display (pixels)
- Printer: Converts digital documents to physical paper
- Speakers: Converts digital audio to sound waves
- Network Interface: Sends data packets to other computers
- Actuators: Motors and servos in robotics/IoT
How the Units Work Together
Let's trace a simple operation: calculating 5 + 3 and displaying the result.
- Input Unit: User types "5 + 3" on keyboard → converted to binary
- Memory Unit: Stores the values 5 (0101) and 3 (0011) and the ADD instruction
- Control Unit: Fetches the ADD instruction, decodes it, sends signals to ALU
- ALU: Receives 0101 and 0011, performs addition, produces 1000 (8)
- Memory Unit: Stores the result 8
- Control Unit: Directs the result to the output unit
- Output Unit: Converts binary 1000 to the character "8" on the display
Key Takeaways
- Every computer has five functional units: Input, Memory, ALU, Control Unit, and Output
- The CPU consists of the ALU (computation) and Control Unit (coordination)
- Memory stores both data and instructions (the stored-program concept)
- The control unit orchestrates all operations through control signals
- Input/Output units bridge the gap between humans and binary machines
- All units communicate through buses (data bus, address bus, control bus)
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for Functional Units of Computer.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Computer Organization & Architecture topic.
Search Terms
computer-organization, computer organization & architecture, computer, organization, introduction, functional, units, functional units of computer
Related Computer Organization & Architecture Topics