1.2 Computer Organisation and Architecture
1. Computer Architecture
Computer architecture refers to the overall design and logical structure of a computer system. It defines how a computer system is designed to function and how its major components interact to execute programs.
Computer architecture focuses on what the computer can do from a user’s or programmer’s point of view, rather than how the hardware components are physically built. It describes the capabilities of the system that are visible to software.
Key aspects include:
- Instruction set (the commands the CPU can understand)
- Data types supported by the system
- Memory addressing methods
- Input and output mechanisms
- Overall system performance features
In simple terms: “What is this computer capable of doing?”
Importance of Computer Architecture
- Improves system performance and speed
- Ensures efficient use of power and system resources
- Supports compatibility between hardware and software
- Allows system upgrades and expansion
- Improves system security and reliability
- Reduces electronic waste by extending usable life
Good computer architecture leads to faster, more reliable, and more flexible computer systems.
2. Computer Organisation
Computer organisation refers to the internal operational structure of a computer system. It explains how the hardware components are arranged and how they work together to implement the architectural design.
Focuses on:
- How data moves inside the computer
- How instructions are fetched, decoded, and executed
- How hardware units communicate
Key components:
- CPU (Control Unit, ALU, registers)
- Memory units (RAM, cache)
- Input and output devices
- System buses and data paths
In simple terms: “How is the computer built to perform its tasks?”
Difference Between Computer Architecture and Computer Organisation
- Computer Architecture
- Focuses on system design and capabilities
- Visible to programmers
- Describes what the system does
- Computer Organisation
- Focuses on hardware implementation
- Concerned with internal data flow and control
- Describes how the system works
3. John von Neumann
John von Neumann was a Hungarian-American mathematician, physicist, and computer scientist
who made major contributions to the development of modern computers.
In 1945, he introduced the stored-program concept, which became the foundation of most
modern computer systems. Before this idea, computers had to be physically rewired
to change programs, which was slow and inefficient.
The stored-program concept allows:
- Program instructions and data to be stored together in the same memory
- The computer to automatically execute instructions without manual intervention
- Programs to be easily modified, stored, and reused
This concept made computers more flexible, faster, and easier to use,
and it laid the groundwork for today’s digital computers.
4. Von Neumann Architecture
Von Neumann architecture is a computer design model based on the stored-program concept
introduced by John von Neumann.
In this architecture:
- A single memory unit stores both data and instructions
- The CPU fetches, decodes, and executes instructions one at a time
- Instructions and data travel along the same communication path (bus)
The main components of the Von Neumann architecture include:
- Central Processing Unit (CPU)
- Main Memory
- Input Devices
- Output Devices
- System Bus
The CPU follows a cycle known as the fetch–decode–execute cycle,
where each instruction is processed sequentially.
Advantages of Von Neumann Architecture
- Simple and affordable design, making it cost-effective
- Easy to understand and implement, especially for beginners
- Suitable for general-purpose computers, such as personal computers
Because of its simplicity and practicality, the Von Neumann architecture
is still widely used in many computer systems today.
5. Functional Units of a Computer
The functional units of a computer are the main parts that work together
to perform data processing tasks. Each unit has a specific role, and together
they ensure that input is received, processed, stored, and output is produced.
The main functional units include:
- Input Unit
- Central Processing Unit (CPU)
- Memory Unit
- Output Unit
5.1 Input Unit
The Input Unit is one of the main components of a computer system.
It is responsible for receiving data and instructions from the user
or external sources and transmitting them to the computer for processing.
Since computers operate using binary language (0s and 1s), the input unit
converts human-readable data (such as text, numbers, images, and sound)
into a machine-readable format that the computer can understand and process.
Without the input unit, users would not be able to interact with the computer.
Functions of the Input Unit
The input unit performs the following functions:
- Accepts data and instructions from the user
- Converts input into binary (machine-readable) format
- Sends the converted data to memory or the CPU for processing
- Facilitates communication between the user and the computer
Common Input Devices (Most Widely Used)
- Keyboard – Used to enter text, numbers, and commands.
- Mouse – Used to point, click, drag, and select items on the screen.
- Touchscreen – Allows users to interact with the computer by touching the display.
- Scanner – Converts physical documents and images into digital form.
- Microphone – Inputs sound or voice into the computer.
- Webcam – Captures images and video as input.
- Joystick – Used mainly for gaming and controlling movement.
- Barcode Reader – Scans barcodes to input product information.
- Biometric Scanner – Inputs fingerprint or facial data for identification.
- Graphic Tablet (Digitizer) – Used to draw or design directly into the computer.
5.2 Central Processing Unit (CPU)
The Central Processing Unit (CPU) is the main part of the computer.
It is called the brain of the computer.
It controls all activities of the computer.
It processes all data and instructions given to the computer.
Every task performed by the computer passes through the CPU.
Functions of the CPU
The CPU:
- Receives instructions from memory
- Processes data
- Performs calculations
- Makes logical decisions
- Controls input and output devices
- Coordinates all parts of the computer system
Main Parts of the CPU
The CPU has three main parts:
- Control Unit (CU)
- Arithmetic and Logic Unit (ALU)
- Registers
1. Control Unit (CU)
The Control Unit directs and manages all activities inside the computer.
It tells other parts of the computer what to do and when to do it.
Functions of the Control Unit
- Fetches instructions from main memory
- Decodes the instructions (understands what the instruction means)
- Sends signals to the ALU, memory, and input/output devices
- Controls the order in which instructions are carried out
- Ensures all parts of the computer work together properly
⚠ The Control Unit does not perform calculations. It only controls operations.
2. Arithmetic and Logic Unit (ALU)
The ALU performs all calculations and comparisons.
It helps the computer solve problems and make decisions.
Arithmetic Operations (Mathematical Calculations)
- Addition
- Subtraction
- Multiplication
- Division
Logical Operations (Comparisons and Decisions)
- Greater than (>)
- Less than (<)
- Equal to (=)
- AND
- OR
- NOT
The ALU allows the computer to calculate results and compare values.
3. Registers
Registers are very small memory spaces inside the CPU.
They are very fast.
Functions of Registers
- Temporarily store data being used
- Hold instructions being executed
- Store memory addresses
- Keep intermediate results during calculations
Because registers are very fast, they help the CPU work quickly.
How the CPU Works (Fetch–Decode–Execute Cycle)
The CPU works in three main steps:
- Fetch – Gets the instruction from memory
- Decode – Understands what the instruction means
- Execute – Carries out the instruction
This cycle happens very fast, millions or billions of times per second.
5.3 Memory Unit
The Memory Unit is a part of the computer that stores data and instructions.
It keeps information that the CPU needs to perform tasks.
Without memory, the computer cannot function properly.
The memory unit allows the computer to work smoothly and quickly by
providing the CPU with the information it needs at the right time.
Functions of the Memory Unit
The memory unit:
- Stores input data before processing
- Stores program instructions
- Holds data while it is being processed
- Saves intermediate results during calculations
- Stores final results before they are sent to output devices
- Supplies data and instructions to the CPU when needed
Types of Computer Memory
Computer memory is mainly divided into two categories:
- Primary Memory (Main Memory)
- Secondary Memory (Secondary Storage)
1. Primary Memory (Main Memory)
- Located inside the computer
- Directly accessed by the CPU
- Faster than secondary memory
- Stores data temporarily while the computer is running
Examples of Primary Memory
(a) Random Access Memory (RAM)
- Temporarily stores data and instructions
- Data is lost when the computer is turned off
- Also called volatile memory
- Allows quick read and write operations
(b) Read Only Memory (ROM)
- Stores permanent instructions
- Data is not lost when power is turned off
- Also called non-volatile memory
- Contains startup instructions (booting instructions)
2. Secondary Memory (Secondary Storage)
- Used for long-term storage
- Stores data and programs permanently
- Data is not lost when power is off
- Slower than primary memory
Examples of Secondary Memory
- Hard Disk Drive (HDD)
- Solid State Drive (SSD)
- Flash disk (USB drive)
- Memory card
- External hard drive
Importance of the Memory Unit
The memory unit:
- Helps the CPU access information quickly
- Improves the speed and efficiency of the computer
- Stores important files and programs
- Supports smooth and accurate data processing
5.4 Output Unit
The Output Unit is the part of the computer that presents processed information to the user.
It shows the results after the CPU has finished processing data.
It converts binary results (0s and 1s) into a form that humans can understand.
The output can be in the form of text, images, sound, or printed documents.
Functions of the Output Unit
The output unit:
- Displays processed information
- Converts machine-readable data into human-readable form
- Presents results to the user
- Communicates information through visual, audio, or printed form
- Allows users to see, hear, or use the processed results
Types of Output
Computer output can be grouped into:
- Soft copy output – Temporary output displayed on a screen or heard as sound
- Hard copy output – Permanent output printed on paper
Common Output Devices
1. Monitor
- Displays text, images, graphics, and videos
- Produces soft copy output
- Also called Visual Display Unit (VDU)
2. Printer
- Produces hard copy output on paper
- Prints documents, pictures, and reports
3. Speakers
- Output sound and audio
- Used for music, videos, and system alerts
4. Headphones
- Similar to speakers but used for personal listening
5. Projector
- Displays images and videos on a large screen or wall
- Commonly used in classrooms and meetings
6. Plotter
- Used to print large drawings such as maps and architectural designs
Importance of the Output Unit
The output unit:
- Helps users understand the results of processing
- Makes communication between the computer and the user possible
- Provides information in different formats (visual, audio, printed)
6. System Bus
The system bus is a communication pathway that connects the CPU, memory unit,
and input/output devices. It allows all parts of the computer system to
exchange data and control signals.
Without the system bus, the components of a computer would not be able
to communicate with each other.
The system bus consists of three main types:
Data Bus
- Transfers actual data between the CPU, memory, and I/O devices
- Can be bidirectional (data moves both ways)
- The width of the data bus affects system performance
Address Bus
- Carries the addresses of memory locations
- Allows the CPU to specify where data should be read from or written to
- Usually unidirectional (from CPU to memory)
Control Bus
- Sends control and timing signals
- Controls operations such as read, write, and interrupt requests
- Ensures all components work in a coordinated manner
7. Fetch–Execute Cycle
The Fetch–Execute Cycle is the process the computer follows to carry out instructions.
It is the basic working process of the CPU.
The cycle repeats continuously while the computer is turned on.
It happens very fast — millions or even billions of times per second.
Every program you run (for example, opening a browser or typing a document)
works through this cycle.
Why the Fetch–Execute Cycle is Important
- It allows the computer to process instructions step by step.
- It ensures tasks are performed in the correct order.
- It makes sure instructions are executed accurately and efficiently.
Stages of the Fetch–Execute Cycle
The cycle has three main stages:
- Fetch
- Decode
- Execute
1. Fetch Stage
The CPU retrieves (fetches) the next instruction from main memory (RAM).
The instruction is stored in a special register inside the CPU.
The Program Counter (PC) keeps track of the address of the next instruction.
👉 In simple terms:
The computer gets the instruction it needs to work on.
2. Decode Stage
The Control Unit (CU) interprets (decodes) the instruction.
It determines what action is required.
It identifies which data is needed and where it is located.
👉 In simple terms:
The computer understands what the instruction means.
3. Execute Stage
The instruction is carried out.
If it is a calculation, the ALU performs it.
If it involves data movement, the CPU transfers data between memory and registers.
The result may be stored in memory or sent to an output device.
👉 In simple terms:
The computer performs the task.
After Execution
- The Program Counter moves to the next instruction.
- The cycle starts again.
This process continues until the program is completed or the computer is turned off.
8. RISC and CISC Architectures
RISC (Reduced Instruction Set Computer) and CISC (Complex Instruction Set Computer)
are two types of CPU designs.
They are designed to improve how efficiently a CPU processes instructions.
RISC Architecture
- Uses a small set of simple instructions
- Each instruction is fast and easy to execute
- Optimized for pipelining (processing multiple instructions at the same time)
- Typically requires more instructions to perform a task, but each instruction is quick
- Commonly used in mobile devices, tablets, and embedded systems
Characteristics of RISC
- Simple and short instructions
- Faster execution speed
- Optimized for pipelining
- Uses more RAM for storing instructions because tasks require multiple instructions
Examples of RISC Processors
- ARM processors (used in smartphones and tablets)
- MIPS processors
CISC Architecture
- Uses a large set of complex instructions
- One instruction can perform multiple tasks
- Each instruction takes longer to execute, but fewer instructions are needed for a task
- Requires more complex CPU design
- Commonly used in desktop computers and servers
Characteristics of CISC
- Complex and powerful instructions
- Slower execution per instruction compared to RISC
- Requires fewer program lines for tasks
- More efficient for general-purpose computing
Examples of CISC Processors
- Intel x86 processors
- AMD processors
RISC vs CISC – Simple Comparison Table
| Feature | RISC | CISC |
|---|---|---|
| Instruction Set | Small and simple | Large and complex |
| Execution Speed | Fast per instruction | Slower per instruction |
| Program Length | Longer (more instructions) | Shorter (fewer instructions) |
| CPU Design | Simple | Complex |
| Common Use | Mobile devices, embedded systems | Desktop computers, servers |
| Examples | ARM, MIPS | Intel x86, AMD |
Summary
RISC = small, simple, fast instructions (good for devices with low power)
CISC = complex, powerful instructions (good for desktop and server tasks)
🧠 Computer Organisation & Architecture Quiz
1. What does computer architecture describe?
It describes what the computer can do and its capabilities visible to software developers.
2. What is the main function of the Control Unit?
It directs and coordinates all activities inside the computer.
3. Name the three main parts of the CPU.
Control Unit (CU), Arithmetic and Logic Unit (ALU), and Registers.
4. Which memory is volatile?
RAM (Random Access Memory).
5. What are the three stages of the Fetch–Execute Cycle?
Fetch, Decode, Execute.
6. Which bus carries memory addresses?
Address Bus.
7. What did John von Neumann introduce?
The stored-program concept.
8. Which architecture uses simple instructions?
RISC.
9. Which architecture is commonly used in desktop computers?
CISC.
10. What does the Program Counter do?
It keeps track of the address of the next instruction.