Lesson 3 IT

Computer Systems

Lecture 03: Internal Structure of a Computer

Intended Learning Outcomes
  • 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
  1. Input Devices:
    • Functions: Accept data in a format that the computer can utilize.
  2. Central Processing Unit (CPU):
    • Contains electronic circuitry for manipulating input to generate the desired information.
  3. Memory:
    • Temporary storage for data and instructions needed by the CPU.
  4. Output Devices:
    • Facilitate the availability of processed data for end-users.
  5. 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
  1. Arithmetic-Logic Unit (ALU):
    • Responsible for the computer's computational and logical functions based on input data.
  2. 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.
  3. Input and Output Devices:
    • Serve as the main interfaces between users and the computer.
  4. 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:
    1. Input Function: Interfaces between the external environment and the computer.
    2. Output Function: Interfaces between the computer and the outside world.
    3. Storage (Memory) Functions: Responsible for storing data, information, and instructions.
    4. Arithmetic/Logic Function: Executes mathematical and logical operations.
    5. 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:
    1. Primary Processing Chip (CPU)
    2. Memory Chips
    3. Expansion Slots for system interface cards
    4. Ports for connecting external devices
    5. Basic Input/Output System (BIOS)
    6. Graphics Card
    7. Network Card
    8. Sound Card
Memory Hierarchy
  • Layers of Memory:
    1. Registers
    2. Cache
    3. Main Memory
    4. Hard Disk
    5. Tapes and Other Backup Media
  • Metrics:
    • Size, Cost, Speed.
Internal and External Memory
  1. Internal Memory:
    • Directly accessible by the processor.
  2. 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.
  • Examples of Registers:
    • Program Counter (PC), Instruction Register (IR), Memory Address Register (MAR), Memory Buffer Register (MBR).
Internal Memory: Cache Memory
  • Definition:
    • A small, high-speed memory that operates faster than RAM, positioned between the main memory and the CPU.
  • Function:
    • When the CPU reads from memory, the cache is checked first for the data.
Operation of Cache Memory
  • Process:
    1. The CPU checks the cache for the required data.
    2. If found in cache, the word is copied.
    3. If not found:
    • Access the main memory.
    • Copy a block of memory starting with the desired word.
    • Access the cache again to get the word.
Internal Memory: Main Memory
  • Definition:
    • Composed of numerous storage locations, each uniquely identified by an address.
  • Addressability:
    • Refers to the CPU’s ability to identify each unique memory location.
  • Word Length:
    • The number of bits processed by the CPU in a single operation is known as word length, which can typically be 16, 24, 32, or as many as 64 bits.
Internal Memory: Main Memory (Continued)
  • Program Storage:
    • Programs and data are held in memory before execution, following the Stored Programme Concept proposed by Von Neumann.
  • Nature of Memory:
    • Modern computers use semiconductor memory (previously magnetic core memories).
  • Terminology:
    • Main memory, primary storage, and memory (often referred to as RAM) are synonymous.
Structure of Main Memory
  • Byte Addressability:
    • Memory is byte addressable; each byte is uniquely addressed.
  • Addressing Sequence:
    • Memory addresses start from zero and increment sequentially.
  • Memory Refresh:
    • A process for periodically reading data from an area of memory and writing it back unchanged to ensure data integrity.
ROM (Read Only Memory)
  • Characteristics:
    • A non-volatile memory type, storing information that does not change, retaining data when the computer is off.
  • Installation:
    • ROM is generally pre-installed by the computer manufacturer.
  • Firmware Storage:
    • Used to store essential startup instructions, known as firmware, tightly associated with specific hardware.
  • Types of ROM:
    • Variants include PROM, EPROM, EEPROM, and CD-ROM.
Hard Disk Drive (HDD)
  • Definition:
    • A non-volatile storage device composed of magnetic disks or platters that rotate at high speeds to permanently store data.
Parts of the Hard Disk
  • Components Include:
    • Base Casting, Spindle, Slider (and Head), Actuator Arm, Actuator Axis, Actuator, Cover Mounting Holes, SCSI Interface Connector, Case, Platters, Ribbon Cable, Tape Seal, Jumper Pins, Power Connector.
Operation of Platters
  • Functionality:
    • 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:
    1. Capacity of Track in Blocks:
    • Capacity of track = 50 sectors = 25 blocks
    1. Capacity of Surface in Blocks:
    • Capacity of track * Number of Tracks = 25 blocks * 2000 = 50,000 blocks
    1. 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
  • Given Data:
    • Disks rotate at 5400 RPM
    • Average Seek Time = 10 msec
  • Calculations:
    1. Maximum Rotational Delay Calculation:
    • Maximum Rotational Delay = 1 / (RPM/60)
    • Maximum Rotational Delay = (60 / 5400) * 1000 = 11.1 msec
    1. Average Rotational Delay:
    • Average Rotational Delay = Maximum Rotational Delay / 2 = 11.1 / 2 = 5.55 msec
    1. Access Time Calculation:
    • Access time = Average Seek Time + Average Rotational Delay
    • Access time = 10 msec + 5.55 msec = 15.55 msec