Functional Units of a Computer
📌 Introduction
A computer is an electronic device that processes data according to a set of instructions. To perform this processing efficiently, a computer system is organized into several functional units. These units are responsible for input, storage, processing, control, and output operations.
The concept of functional units comes from basic computer organization and the stored-program concept, where data and instructions are stored in memory and executed sequentially. Understanding these units is fundamental for competitive exams like DCIO (Technical), SSC, Banking IT Officer, and other technical examinations.
A computer system is broadly divided into:
Input Unit
Memory Unit
Central Processing Unit (CPU)
Arithmetic Logic Unit (ALU)
Control Unit (CU)
Registers
Output Unit
All these units work together in a coordinated manner.
🏗️ Block Diagram of Functional Units
Input Unit → Memory Unit ↔ CPU (ALU + CU + Registers) → Output Unit
This shows the logical flow of data inside a computer system.
1️⃣ Input Unit
📌 Definition
The input unit is responsible for receiving data and instructions from the external world and converting them into a machine-readable format (binary form).
Computers understand only 0s and 1s. Therefore, any input given by the user must be converted into binary signals.
🔹 Functions of Input Unit
Accepts data and instructions from users.
Converts input into binary format.
Sends processed input to memory.
Provides interaction between user and computer.
🔹 Types of Input Devices
Keyboard
Mouse
Scanner
Microphone
Webcam
Barcode reader
Joystick
Touchscreen
Biometric devices
🔹 Example of Working
When a user types the letter “A” on the keyboard:
The keyboard sends a signal.
The input unit converts it into ASCII binary code.
The binary data is stored in memory.
2️⃣ Memory Unit
📌 Definition
The memory unit stores data, instructions, and intermediate results required during processing. It acts as the storage center of the computer.
Memory plays a crucial role because the CPU can only process data that is stored in memory.
🔹 Classification of Memory
(A) Primary Memory (Main Memory)
Directly accessible by CPU.
1. RAM (Random Access Memory)
Volatile memory.
Data lost when power is off.
Used for temporary storage.
Types: SRAM, DRAM.
2. ROM (Read Only Memory)
Non-volatile.
Stores permanent instructions.
Contains booting program (BIOS).
3. Cache Memory
Very fast.
Located inside or close to CPU.
Stores frequently used data.
Reduces access time.
(B) Secondary Memory
Permanent storage devices:
Hard Disk Drive (HDD)
Solid State Drive (SSD)
Pen drive
CD/DVD
External hard drive
🔹 Functions of Memory Unit
Stores input data.
Stores program instructions.
Stores intermediate results.
Stores final output before display.
🔹 Memory Hierarchy
Registers → Cache → RAM → Secondary Storage
As we go down:
Speed decreases
Cost decreases
Storage capacity increases
3️⃣ Central Processing Unit (CPU)
📌 Definition
CPU is called the brain of the computer. It performs all arithmetic, logical, and control operations.
The CPU consists of:
Arithmetic Logic Unit (ALU)
Control Unit (CU)
Registers
3️⃣ (A) Arithmetic Logic Unit (ALU)
📌 Definition
The ALU performs arithmetic and logical operations on data.
🔹 Arithmetic Operations
Addition
Subtraction
Multiplication
Division
Increment
Decrement
🔹 Logical Operations
AND
OR
NOT
XOR
Comparisons (<, >, =)
🔹 Example
If you calculate 20 + 15:
Data stored in memory.
ALU performs addition.
Result stored back in memory.
🔹 Importance of ALU
Performs core calculations.
Used in scientific and financial applications.
Essential for decision-making operations.
3️⃣ (B) Control Unit (CU)
📌 Definition
The Control Unit directs and coordinates all operations of the computer system.
It does not perform calculations but manages the execution process.
🔹 Functions of Control Unit
Fetches instructions from memory.
Decodes instructions.
Directs ALU to perform operations.
Controls input and output devices.
Manages data flow between components.
🔹 Fetch-Decode-Execute Cycle
This is the basic working cycle of CPU:
Fetch instruction from memory.
Decode the instruction.
Execute the instruction.
Store result.
This cycle repeats continuously.
🔹 Types of Control Units
Hardwired Control Unit
Fixed design
Faster
Microprogrammed Control Unit
Flexible
Slower but easier to modify
3️⃣ (C) Registers
📌 Definition
Registers are small, high-speed storage locations inside the CPU.
They store data temporarily during execution.
🔹 Types of Registers
Accumulator (Stores intermediate results)
Program Counter (Holds address of next instruction)
Instruction Register (Stores current instruction)
Memory Address Register (Stores memory address)
Memory Data Register (Stores data from memory)
Stack Pointer
🔹 Importance of Registers
Fastest memory in system.
Improves CPU speed.
Essential for efficient execution.
4️⃣ Output Unit
📌 Definition
The output unit presents processed information in human-readable form.
🔹 Functions
Receives processed data from CPU.
Converts binary data into readable form.
Displays or prints output.
🔹 Examples
Monitor
Printer
Speaker
Projector
Headphones
🔹 Types of Output
Soft Copy Output (Monitor, Speaker)
Hard Copy Output (Printer)
📊 Complete Working of Computer
Let us understand through an example:
Suppose you want to calculate:
50 + 25
Step 1: Input
You enter numbers using keyboard.
Step 2: Memory
Numbers stored in RAM.
Step 3: Control Unit
Fetches addition instruction.
Step 4: ALU
Performs addition.
Step 5: Store Result
Result stored in memory.
Step 6: Output
Monitor displays 75.
🏛️ Von Neumann Architecture
Most computers follow Von Neumann architecture:
Single memory for data and instructions.
CPU executes instructions sequentially.
Based on stored-program concept.
🔄 Data Flow in Functional Units
Input → Memory → CPU → Memory → Output
All units are interconnected via system buses:
Data Bus
Address Bus
Control Bus
🧠 System Buses
1. Data Bus
Transfers data between units.
2. Address Bus
Carries memory addresses.
3. Control Bus
Carries control signals.
⚡ Modern Enhancements in Functional Units
Modern computers have advanced versions of functional units:
Multi-core CPUs
Parallel processing
GPU (Graphics Processing Unit)
Large cache memory (L1, L2, L3)
Virtual memory
Cloud storage integration
Comments
Post a Comment