Introduction to
Computer Architecture
Engr. Dr. Akpofure Enughwure
What is a Computer?
• Definition: A machine designed to process, store, and retrieve data.
• Data Representation:
• Numbers (spreadsheets), text, images, sound, system states (e.g., air
conditioner).
• Key Components:
• Processor, memory, I/O devices.
Figure 1: Block Diagram of Computer
Categories of Computer Systems
• Desktop Computers:
• General-purpose, runs varied software (orchestrated by OS).
• User-controlled software installation.
• Embedded Computers:
• Dedicated to specific tasks (e.g., garden-watering controller).
• Minimal user control; often no OS.
• Far more numerous but less visible.
Core Components of a Computer
• Processor: Executes programs (the "computing" core).
• Memory: Stores programs + data during execution.
• I/O Devices: Exchange data with the outside world (keyboard, screen,
disk).
• Support Logic: Enables processor functionality.
Figure 2: Block Diagram of CPU, Memory + I/O
Processor Workflow
Definition:
The processor is an electronic device capable of manipulating data
(information) in a way specified by a sequence of instructions.
Basic Operations:
• Write data to memory and I/O.
• Read data from memory and I/O.
• Read instructions from memory.
• Internal data manipulation (via ALU).
Figure 3: Block structure of a processor
Figure 3: Block diagram representing the cyclic operation
of the processor
Architecture Types
• 1. Von Neumann (Princeton):
• Single memory for programs + data.
• Advantage: Flexible resource allocation.
• 2. Harvard:
• Separate memory for programs/data.
• Advantage: Faster speed (parallel access).
• Disadvantage: Complex design.
Figure 4: Von Neumann (Princeton) Architecture
Figure 5: Harvard Architecture
The Arithmetic Logic Unit (ALU)
• Function: Performs operations (addition, AND, XOR, shifts, etc.).
• Operands: From registers/memory.
• Result: Stored in registers/memory.
• Status Outputs: Zero, negative, overflow flags.
• Note: Some processors have dedicated units (e.g., multipliers).
Figure 6: ALU Functional Block
Summary
• Computers process/store data via hardware + software.
• Two categories: Desktop (flexible) vs. Embedded (dedicated).
• Von Neumann vs. Harvard architectures trade flexibility for speed.
• ALU enables core computations.
THANK YOU