Introduction to Computers - Lecture 3
Recap
Overview of previously covered items regarding hardware and software in computers.
Components of a Computer
Computer Hardware: Physical components of a computer system.
Computer Software: Instructions and data that a computer uses to perform tasks.
Input Devices: Devices that provide data to the computer (e.g., keyboard, mouse).
Output Devices: Devices that receive data from the computer (e.g., monitor, printer).
Storage Devices: Devices used for data storage (e.g., hard drives, SSDs).
Internal Components: Core hardware directly involved in processing (e.g., CPU, memory).
System Software: Operating systems that manage hardware and software resources.
Application Software: Programs designed for end-users to perform specific tasks (e.g., word processors, web browsers).
Definitions
Computer Architecture:
Refers to the overall design and organization of a computer's hardware components.
Includes how the CPU, memory, storage, and I/O devices are structured and interconnected.
Defines the communication and operational efficiency between components as they execute tasks.
Instruction Set Architecture (ISA):
Defines the set of commands (instructions) that a CPU can understand and execute.
Influences processor complexity, performance, efficiency.
ISA decisions shape CPU design, compiler development, and software compatibility.
System Bus:
It is the main communication path between the CPU and memory, allowing data transfer.
(Illustrative note: Not to confuse with other buses referenced in graphics).
Computer Architecture Characteristics
Variation in Computers:
Computers are not all the same; there are different architectures at different levels affecting data organization and processing.
Common Architectures Based on Memory Structure:
Von Neumann Architecture
Harvard Architecture
Memory Structure: Refers to how the CPU accesses and utilizes memory.
Harvard Architecture
Definition: A computer design model where program instructions (code) and data (images, videos) are stored in separate memory units.
Accessed through independent buses.
Advantages:
Less traffic leads to higher efficiency in data processing.
Higher security due to separation of data and instruction memory.
Von Neumann Architecture
Definition: A computer design where instructions and data are stored in the same memory space.
The CPU fetches both instructions and data from the same memory, using identical pathways.
Advantages:
Simplicity in design and implementation.
Cost-effectiveness due to unified memory structure.
Disadvantages:
Performance limitation due to the need to access data and instructions concurrently, leading to a "Bottleneck" issue.
Common Computer Architectures Based on Instruction Set Style
Types:
RISC (Reduced Instruction Set Computer)
CISC (Complex Instruction Set Computer)
RISC
Definition: A microprocessor architecture utilizing a small, highly optimized instruction set.
Aims to simplify hardware using a limited number of basic instructions for operations like loading, evaluating, and storing data.
Examples of use: Found in some Apple device versions.
Advantages of RISC:
Simpler instructions for easier decoding of commands.
Faster execution times due to a streamlined instruction set.
Low power consumption, beneficial for smaller devices (like mobiles).
Disadvantages of RISC:
Requires a larger number of instructions to perform complex tasks.
Increased memory utilization because additional instructions need storage.
Higher development and manufacturing costs compared to other architectures.
CISC
Definition: An architecture featuring fewer, more powerful instructions capable of executing multiple low-level tasks in one step.
Core concept: Minimizes the number of instructions per program while increasing instruction complexity.
Example: In a CISC system, multiplying two values might involve:
Loading values from memory,
Performing multiplication,
Storing the result back to memory, all in one instruction.
Common CISC Architectures:
Intel x86
AMD processors
Advantages of CISC:
Reduced code size due to complex instructions performing more operations.
More efficient memory usage through fewer overall instructions.
Wider market usage and software compatibility due to historical prevalence.
Disadvantages of CISC:
Slower execution due to lengthy complex instructions.
Increased design complexity, making optimization and maintenance harder.
Higher power consumption compared to RISC due to intricate instruction sets.
Comparative Analysis of Architectures
Device Type Su mmary:
Desktop/Laptop:
Typical CPU Architecture: x86/x86-64 (CISC)
Performance: High
Memory (RAM): 8-64+ GB
Power Consumption: High
Use Case: Productivity, Gaming
Operating Systems: Windows, macOS, Linux
Characteristics: Full-featured, multitasking, peripheral support.
Mobile Phone:
Architecture: ARM (RISC)
Performance: Moderate to High
Memory (RAM): 4-12 GB
Power Consumption: Low
Use Case: Communication, Apps
Operating Systems: Android, iOS
Characteristics: Touch-based, secure app model, energy-efficient.
Server:
Architecture: x86/x86-64 (CISC)
Performance: Very High (Multi-core)
Memory (RAM): 32-1024+ GB
Power Consumption: Very High
Use Case: Enterprise services
Operating Systems: Linux, Windows Server
Characteristics: Headless/server-optimized, stable, scalable, and secure.
Tablet:
Architecture: ARM (RISC)
Performance: Moderate
Memory (RAM): 2-8 GB
Power Consumption: Moderate
Use Case: Media, Apps, Light Work
Operating Systems: Android, iPadOS
Characteristics: Touch-based, media-focused, moderate multitasking.
Questions
Conclusion Slide: Questions were posed about the material discussed, inviting engagement and clarification where necessary.