Lecture Notes Unit 1 - Lesson 1 (1)
Lecture Notes Unit 1 - Lesson 1 (1)
[C1A50US]
Lecturer: Mr. Conard Ntelamo
Email: [email protected]
This Course outlines the fundamental components and functions of personal computers as
well as Operating Systems. Students will be exposed to different operating systems so that
they will be able to compare them at the end of the course. Students will also learn how to
install system and application software as well as how to maintain, troubleshoot and repair
personal computers and printers.
1. Attendance : Students expected to attend 80% of the lectures.
2. Assessment activities: 3x per semester (Assignment/Test)
3. Examination: To Qualify For Exam You Need Average CA Of
50%
4. Module materials will be shared with the class representative and on LMS
DISCUSSION WILL BE AN EXPECTED NORMAL IN THIS CLASS
UNIT 1
INTRODUCTION TO THE COMPUTER
ORGANIZATION
COURSE OVERVIEW & LEARNING OBJECTIVES
1. Explain the Historical Evolution of Computers.
2. Differentiate between Generations of Computer
Technology.
3. Describe the Von Neumann Architecture and its
significance.
4. Understand Computer Number Systems.
5. Identify and Analyze Computer Performance Measures.
WHAT IS A COMPUTER?
A computer is an electronic device that can accept input,
process it according to predefined instructions
(programs), produce output as results and store it.
It consists of hardware components such as the central
processing unit (CPU), memory, storage devices, input
devices (e.g., keyboard, mouse), output devices (e.g.,
monitor, printer), and networking components.
WHAT IS A COMPUTER?
TWO COMPONENTS OF A COMPUTER
Computer hardware and computer software are two
fundamental components of any computer system.
They work together to perform tasks and enable the
functionality of the machine.
Computer Hardware: Physical components of a computer
system that you can touch and interact with.
Computer Software: A set of instructions, data, or programs
used to operate computers and perform specific tasks.
TWO COMPONENTS OF A COMPUTER
Together, computer hardware and software form a cohesive unit that
enables the operation of computer systems.
Hardware provides the physical infrastructure necessary for
computing processes, while software dictates how that hardware
should function and what tasks it should perform.
Understanding the interplay between hardware and software is
essential for efficient utilization and troubleshooting of computer
systems.
COMPUTER HARDWARE
Central Processing Unit (CPU) is the brain of
the computer.
It processes instructions, performs calculations,
and controls other components.
CPU Speed: Measured in Gigahertz (GHz) – a higher
GHz means the CPU can process tasks faster.
Cores: Modern CPUs have multiple cores (e.g., dual-
core, quad-core) to handle more tasks at the same time.
Cache Memory: A small, high-speed memory inside the
CPU that stores frequently used data for quick access.
COMPUTER HARDWARE
Motherboard (The Main Circuit Board) is a type of
printed circuit board (PCB) that connects all parts of the
computer so they can communicate with each other.
It has different slots and sockets for components, such as:
CPU socket – Where the processor is installed.
RAM slots – For installing memory modules.
Expansion slots (PCI/PCIe) – For adding graphics cards,
sound cards, or network cards.
Chipsets – Control data flow between the CPU, memory,
and storage.
BIOS/UEFI firmware – A small built-in program that starts
the computer before the operating system loads.
COMPUTER HARDWARE
Random Access Memory (RAM) is
the short-term (temporary) memory of
a computer.
It stores data and instructions of running
programs.
More RAM helps run multiple
applications/programs smoothly.
Measured in Gigabytes (GB); more
RAM generally means better
performance.
RAM is faster than secondary
memory or storage but loses all data
when the computer is turned off.
COMPUTER HARDWARE
Read-Only Memory (ROM) is the permanent
(non-volatile) memory of a computer.
It stores firmware and essential system instructions
needed for booting.
Unlike RAM, ROM retains data even when the
computer is turned off.
Used for storing the BIOS, firmware, and other
critical system software.
Measured in Megabytes (MB) or Gigabytes (GB), but
is generally smaller than RAM.
Cannot be easily modified; some types (EEPROM,
Flash Memory) allow limited reprogramming.
COMPUTER HARDWARE
Storage Drives (Secondary Memory) – Permanent
Data Storage
Storage drives save files, programs, and the operating
system.
There are different types:
Hard Disk Drive (HDD) – Uses spinning disks,
provides large storage but is slower.
Solid State Drive (SSD) – Uses flash memory, much
faster than HDDs.
M.2 & NVMe (Non-Volatile Memory Express) SSDs –
Advanced SSDs that are even faster, used in modern
PCs.
Optical Disks (CD/DVD/Blu-ray) – Use laser
technology to read and write data, often used for
media storage and backups.
COMPUTER HARDWARE
External Hard Drives & SSDs – Portable
storage devices for backups and extra
space.
USB Flash Drives – Small, removable
storage devices for quick file transfers.
Memory Cards [Secure Digital (SD),
microSD] – Used in cameras,
smartphones, and other portable devices.
COMPUTER HARDWARE
Power Supply Unit (PSU) – Provides
Electricity.
The PSU converts power from an electrical
outlet into a form the computer can use.
Power is measured in Watts (W) – high-
performance PCs need more power.
Some PSUs are modular, allowing better
cable management for airflow.
COMPUTER HARDWARE
Graphics Processing Unit (GPU)
– Handles Graphics.
The GPU processes images, videos,
and animations.
Integrated GPU – Built into the CPU,
good for basic tasks (web browsing,
office work).
Dedicated GPU – A separate graphics
card for gaming, video editing, and 3D
rendering.
COMPUTER HARDWARE
Cooling System – Prevents Overheating.
Computers generate heat, so cooling is
important to keep them running smoothly.
Air Cooling – Uses fans and heat sinks.
Liquid Cooling – Uses liquid coolant, mainly for
high-performance PCs.
Thermal Paste – Helps transfer heat from the
CPU to the heat sink.
COMPUTER HARDWARE
5th 1980s-Present AI, Quantum Computing Cloud, DRAM IBM Watson, IoT
COMPUTER ORGANIZATION &
ARCHITECTURE
COMPUTER ORGANIZATION
Computer organization explains how a computer's hardware components work together to process data
and run programs.
It focuses on the physical structure and internal connections of the system.
Key Aspects:
Physical Parts – Includes the CPU (processor), memory (RAM), buses (data highways), and input/output devices
(keyboard, mouse, screen, etc.).
Control Unit – Acts like a traffic officer, directing how data moves and ensuring smooth communication between parts.
Data Flow – Defines how data moves inside the CPU, using elements like the ALU (performs calculations), registers
(temporary storage), and memory.
Buses (Data Highways):
Data Bus – Carries actual data (like a delivery truck).
Address Bus – Identifies memory locations (like a GPS address).
Control Bus – Sends signals to control operations (like traffic lights).
COMPUTER ORGANIZATION
Types of Processor Architectures:
CISC (Complex Instruction Set Computing) – Uses fewer but complex
instructions (like a Swiss Army knife).
RISC (Reduced Instruction Set Computing) – Uses simpler but more
frequent instructions (like using separate tools for each task).
Why Cache Memory Matters:
Cache memory is fast and stores frequently used data, reducing delays
in accessing information from main memory.
This improves speed and performance.
COMPUTER ARCHITECTURE
Computer architecture focuses on how a computer is designed and how it operates at a logical level.
It defines the rules and structure that allow software and hardware to work together efficiently.
It defines how a system is built and how it operates from a programmer’s perspective.
Key Aspects:
Instruction Set Architecture (ISA) – The language a CPU understands to execute tasks. Examples include
x86 (used in PCs),ARM (used in smartphones), and RISC-V (used in modern processors).
Data Formats – Defines how data is stored, such as whole numbers (integers) or decimal numbers
(floating-point).
Memory Organization – Explains how memory is structured and accessed, including fast cache memory,
RAM, and long-term storage (hard drives or SSDs).
System Design – Shows how the CPU, memory, and input/output devices communicate to process tasks.
Performance Factors – Includes speed, power efficiency, and response time, which impact how fast a
computer completes tasks.
Feature Computer Organization Computer Architecture
Performance Affects execution speed through elements like Influences performance by determining how
Impact pipelining, memory hierarchy, and cache design. efficiently instructions are executed.
Computer organization is influenced by the Computer architecture defines the foundation for
Dependency
chosen architecture. organization choices.
RISC vs. CISC architectures, x86 vs. ARM,
Cache memory organization, bus design, ALU
Examples instruction formats, and memory addressing
operations, and pipeline implementation.
techniques.
VON NEUMANN
ARCHITECTURE
HARVARD ARCHITECTURE
Harvard architecture is a computer design where program instructions and data are stored in separate
memory units.
This allows the CPU to fetch instructions and access data at the same time, making the system faster and
more efficient.
Key Features:
Separate Memory for Instructions and Data – The CPU can read instructions and data simultaneously,
reducing delays.
Fixed Instruction Length – Simplifies processing and speeds up execution.
Parallel Processing – Instructions and data can be accessed at the same time, improving speed.
Optimized Memory Usage – Memory for instructions and data is designed separately for better
performance.
Used in Embedded Systems – Common in devices like microcontrollers, digital signal processors, and
real-time systems where speed is important.
HOW IT WORKS
Memory & Buses
Harvard architecture uses separate buses for
better efficiency:
Data Bus – Transfers data between memory
and CPU.
Instruction Bus – Transfers program
instructions.
Data Address Bus – Locates data in memory.
Instruction Address Bus – Locates instructions
in memory.
HOW IT WORKS
CPU Components:
Program Counter (PC): Holds the address of
the next instruction.
Memory Address Register (MAR): Stores
memory locations.
Memory Data Register (MDR): Holds the data
being transferred.
Arithmetic and Logic Unit (ALU): Performs
calculations and logical operations.
Control Unit (CU): Directs the flow of
instructions and data
HOW IT WORKS
Input/Output System:
Input Devices: Provide data (e.g.,
keyboard, sensors).
Output Devices: Display results (e.g.,
screen, printer).
I/O Controllers: Manage
communication between CPU and
devices.
Advantages Disadvantages
Faster Performance – Can access instructions and More Complex Design – Requires separate
data at the same time. memory and buses, increasing cost.
Efficient Processing – Fixed instruction size makes Less Flexibility – Changing program instructions at
execution easier. runtime is difficult.
Better Security – Separate memory reduces Higher Memory Requirements – Needs more
memory-related attacks. memory compared to Von Neumann architecture.
Key Feature: Shared Memory – Instructions and Limited Speed – The CPU can’t fetch
data use the same memory space, and the CPU instructions and data at the same time, reducing
processes them one at a time. efficiency.
VON NEUMANN ARCHITECTURE COMPONENTS
Input/Output (I/O) Devices
Central Processing Unit (CPU)
Input Devices: (e.g., Keyboard, mouse, scanner) –
Control Unit (CU): Manages the execution of
instructions. Send data into the system.
Arithmetic Logic Unit (ALU): Performs calculations Output Devices: (e.g., Monitor, printer, speaker) –
and logical operations. Display results.
Registers: Store temporary data for fast access. I/O Controllers: Manage communication between
CPU and external devices.
Memory Unit
Primary Memory (RAM): Holds data and System Bus
instructions during execution. Data Bus: Transfers data between CPU, memory, and
Memory Address Register (MAR): Stores memory devices.
addresses.
Address Bus: Identifies memory locations.
Memory Data Register (MDR): Holds data being
read/written. Control Bus: Sends control signals to coordinate
operations.
VON NEUMANN COMPUTER ARCHITECTURE
DIAGRAM
Feature Harvard Architecture Von Neumann Architecture
Definition A computer architecture with separate memory for A computer architecture that uses a single memory
instructions and data. for both instructions and data.
Memory Unit Separate memory for instructions and data. Shared memory for both instructions and data.
Access Parallel access to instructions and data via separate buses. Instructions and data share the same bus, leading to
Mechanism sequential access.
Performance Faster, as the CPU can fetch instructions and data Slower due to the "Von Neumann bottleneck," where
simultaneously. fetching instructions and data occurs sequentially.
Complexity More complex due to separate memory and buses, Simpler design, making it easier to implement and
increasing design and cost. cheaper to manufacture.
Flexibility Limited, as modifying instructions at runtime is difficult. More flexible, allowing self-modifying code and
dynamic data handling.
Typical Use Used in embedded systems, DSPs, and real-time applications Common in general-purpose computers, PCs, and
Cases requiring high-speed processing. servers due to ease of use and programming
flexibility.
FETCH-DECODE-EXECUTE CYCLE
The Fetch-Decode-Execute cycle is how the CPU processes and executes instructions
in a program.
It consists of three main steps:
1. Fetch:
Getting the Instruction.
The CPU fetches the next instruction from memory.
The Program Counter (PC) keeps track of the instruction's memory location.
The fetched instruction is stored in the Instruction Register (IR).
The PC is updated to point to the next instruction.
Example: Imagine a calculator app. The CPU fetches an instruction to add two numbers
from memory.
FETCH-DECODE-EXECUTE CYCLE
2. Decode:
The CPU interprets the fetched instruction.
It identifies what operation to perform (e.g., addition, subtraction,
comparison).
It checks if additional data (operands) are needed, like numbers stored in
memory or registers.
Example:The CPU deciphers that the instruction means “Add 5 + 3”.
FETCH-DECODE-EXECUTE CYCLE
3. Execute:
The CPU carries out the instruction using the Arithmetic Logic Unit
(ALU).
The result is stored in a register or memory.
If needed, the program counter updates based on the instruction (e.g.,
jumping to a new location in case of a loop).
Example: The CPU performs 5 + 3, stores 8, and moves to the next
instruction.
IMPORTANCE OF THE FETCH-DECODE-EXECUTE (FDE)
CYCLE
Step-by-Step Execution – Ensures the computer processes instructions in the
correct order.
Controls Programs – Manages how instructions and data move within the
computer.
Efficient CPU Use – Helps the CPU handle tasks smoothly by allocating
resources properly.
Breaks Down Tasks – Simplifies complex operations into smaller, manageable
steps.
Faster Processing – Uses techniques like pipelining to speed up execution.
Essential for Computers – Forms the core of modern computing, based on the
Von Neumann