At the end of this lecture, students will be able to:
LO1: Identify the basic architecture of a computer system.
LO2: Apply knowledge of calculations based on the capacity of the hard disk.
Data Processing
Definition of Data Processing:
Data processing refers to the re-structuring or re-ordering of data by a computer to enhance its usefulness and add value for specific purposes.
Functionality of a Computer:
A computer is defined as a machine that accepts data (input) and processes it into useful information (output).
Primary Components of a Computer
Input Devices:
Functions: Accept data in a format that the computer can utilize.
Central Processing Unit (CPU):
Contains electronic circuitry for manipulating input to generate the desired information.
Memory:
Temporary storage for data and instructions needed by the CPU.
Output Devices:
Facilitate the availability of processed data for end-users.
Secondary Storage Devices:
Serve to store additional data and programs.
Von Neumann Architecture
Overview:
Initially, re-wiring and re-designing machines to run different programs was manual and labor-intensive.
Example: The ENIAC required three weeks to re-wire for different calculations, prompting the proposal of a more efficient architecture by John von Neumann.
Key Concept:
Von Neumann architecture allows for the storage of programs and data in a single memory location, eliminating the need for physical re-wiring when changing programs.
Definition:
Von Neumann architecture is a computer design model wherein both instructions and data are stored in a singular memory structure and can be easily retrieved.
Characteristics of Von Neumann Architecture
Memory Design:
Utilizes a single sequentially addressed memory for both programs and data.
Components:
Contains a separate arithmetic/logic unit for performing necessary computations.
Features a controller responsible for fetching instructions from memory and executing them.
Main Components of Von Neumann Architecture
Arithmetic-Logic Unit (ALU):
Responsible for the computer's computational and logical functions based on input data.
Control Unit (CU):
Manages the movement of data and programs into and out of memory, executing instructions sequentially.
The phrase 'one-at-a-time' signifies that the Von Neumann Architecture follows a sequential processing model.
Input and Output Devices:
Serve as the main interfaces between users and the computer.
Memory:
Holds both the data and the programs processing that data, commonly referred to as RAM in modern systems.
The Processor and Memory: Data Manipulation
CPU Responsibilities:
The CPU transforms raw data into meaningful processed information. It carries out this function through electronic circuits that interpret and execute program instructions while interacting with input, output, and storage devices.
Memory (Primary Storage):
Stores input data temporarily, both prior to and after processing. It is also where the programs required by the CPU are held.
General Computer Functionality
A computer operates as an information-processing device through five basic functional operations:
Input Function: Interfaces between the external environment and the computer.
Output Function: Interfaces between the computer and the outside world.
Storage (Memory) Functions: Responsible for storing data, information, and instructions.
Arithmetic/Logic Function: Executes mathematical and logical operations.
Control Function: Sequences and manages device operations.
System Unit
Definition:
The system unit is the primary container for system devices, designed to protect sensitive electronic and mechanical components from damage.
Typical Components of a System Unit:
Adapter Cards, Sound Card, Network Card, Graphics Card, Video Card, Bus Lines.
Hard Disk Drive Structure
Structure Components:
Consists of Tracks, Sectors, and Clusters.
Internal Structure of a Computer Case
Components:
Floppy Drive, Data Cable, Hard Disk Drive, Power Cable, CD-ROM, Motherboard, Power Supply, Processor, Memory, Fan, Expansion Cards and Slots.
Motherboard
Definition:
Also known as the mainboard, system board, or mobo, it is the primary printed circuit board (PCB) in computers.
It physically holds the essential circuitry and components needed for computer function.
Components Found on the Motherboard:
Primary Processing Chip (CPU)
Memory Chips
Expansion Slots for system interface cards
Ports for connecting external devices
Basic Input/Output System (BIOS)
Graphics Card
Network Card
Sound Card
Memory Hierarchy
Layers of Memory:
Registers
Cache
Main Memory
Hard Disk
Tapes and Other Backup Media
Metrics:
Size, Cost, Speed.
Internal and External Memory
Internal Memory:
Directly accessible by the processor.
External Memory:
Accessible by the processor through an I/O module.
Examples of Memory Types:
Registers, Cache, Main Memory, Hard Disks, Magnetic Tapes, CD/DVDs, Floppy Disks, USB Thumb Drives.
Internal Memory: Registers
Definition:
The top level of the memory hierarchy, registers are high-speed storage areas within the CPU holding data temporarily.
When powered, platters become operational, rotating at specific RPM (rotations per minute), which varies by hard drive model.
Accessing Data:
The read/write head interacts with the rotating platters to read and write data.
Arm Mechanism
Access Arm:
Also known as read/write head arm or actuator arm, adjusts as the platter spins to perform data reading, writing, or deletion, similar to a record player's mechanism.
Disk Organization
Structure:
Tracks, sectors, platters, spindle, rotation, and access arm are crucial components of disk organization.
Surface Organization
Data Storage:
Data on a platter's surface is organized in sectors and tracks.
Tracks: Concentric circles on a platter.
Sectors: Pie-shaped wedges on a track containing a fixed number of bytes (512 Bytes).
Practice Question 01: Disk Capacity Calculation
Given Data:
Sector size = 512 bytes
Block size = 1024 bytes (1 Block = 2 Sectors)
50 sectors per track
2000 tracks per surface
5 double-sided platters
Capacity Calculation Steps:
Capacity of Track in Blocks:
Capacity of track = 50 sectors = 25 blocks
Capacity of Surface in Blocks:
Capacity of track * Number of Tracks = 25 blocks * 2000 = 50,000 blocks
Total Capacity of Disk in Blocks:
Number of Surfaces = Number of Platters * 2 = 5 * 2 = 10
Total Capacity = Number of Surfaces * Capacity of Surface = 10 * 50,000 = 500,000 blocks
Disk Performance Parameters
Access Time Calculation:
Formula: Access time = seek time + rotational delay
Seek Time: Time taken to move the head to the desired sector on the track.
Rotational Delay: Time for the sector's start to reach the head.
Transfer Time: Time required to transfer data.
Practice Question 02: Disk Performance Calculation