Computer Hardware Architecture and Storage Systems
Fundamentals of Computer Architecture and Hardware
Computer architecture follows a standardized structure across systems, comprising two primary domain classifications:
Hardware (HW): The physical equipment utilized for input, processing, storage, and output activities across a computer system.
Software (SW): The programs and operating instructions executed by the computer system.
Major physical hardware components of a computer system:
Central Processing Unit (CPU)
Memory (comprising primary storage and secondary storage)
Input devices and technology
Output devices and technology
Motherboard Architecture
A motherboard is an internal circuit board integrated within computer systems, personal computers, smart televisions, smart monitors, and related electronic devices.
Core functions and attributes:
Classed strictly as a hardware (HW) component.
Supports and facilitates communication between distinct internal electrical components.
Houses critical hardware units, including the Central Processing Unit (CPU) and system memory.
Central Processing Unit (CPU) Design and Components
The Central Processing Unit (CPU) functions as a microprocessor responsible for performing all processes within any computer.
Microprocessor structural components and specialized functions:
Control Unit (CU):
Directs and coordinates all hardware units required to execute programs.
Directs and coordinates all computer operations, including:
Control of input and output devices.
Entry and retrieval of information from memory.
Routing of information between the memory and the Arithmetic Logic Unit.
Does not perform actual processing on data; instead, functions as a central nervous system that transmits control signals to other functional units.
Arithmetic Logic Unit (ALU):
Performs physical data processing operations.
Arithmetic operations: addition, subtraction, multiplication, and division.
Logical operations: comparisons (such as ) and data sorting.
Registers:
Specialized hardware devices capable of storing information, receiving data from other internal areas, and transferring information as directed by the Control Unit.
Function as temporary storage for small quantities of data or instructions over brief time intervals.
Key register types:
Address Register (AR): Holds the specific address of a memory location.
Instruction Register (IR): Contains the instruction currently being executed.
Program Counter (PC): Holds the address of the next instruction scheduled for execution.
Data Register (DR): Holds data temporarily during execution routines.
Primary Memory Architecture and Data Representation
Computer memory is divided into two basic operational categories:
Primary Storage (Main Memory): Temporarily stores small amounts of data and information required immediately for processing.
Secondary Storage: Stores larger amounts of data and information (such as complete software programs) over extended periods of time.
Functions of Main Memory:
Holds all data awaiting processing.
Holds intermediate results of processing.
Holds final results generated from processing.
Data Representation and Binary Storage Metrics:
Computers operate exclusively on a binary numbering system, processing and storing all data as ones () or zeros ().
Bit: The fundamental unit of storage, representing a single binary value ( or ).
Character Representation: All data is translated via computer languages into binary strings; exactly are required to represent a single character.
Byte: An string used as the standard metric for measuring computer storage capacity.
Standard Byte Capacity Hierarchy:
Functional Classifications of Main Memory
Main memory is subdivided into four primary structural parts:
Registers:
Located physically inside the CPU.
Possess the smallest storage capacity.
Store limited amounts of instructions and data for immediate processing.
Random Access Memory (RAM):
Stores more information than registers, but less than secondary storage.
Positioned physically farther from the CPU than registers, but much closer than secondary storage.
Operational workflow: When software applications are opened, the entire program is transferred from secondary storage into RAM. As the program runs, small parts of instructions and data are sent closer to the CPU.
Performance characteristics: Formed as a microprocessor chip, RAM is much faster and more costly than secondary storage devices. Moving data closer to the CPU is fundamental to overall system speed.
Cache Memory:
Addresses complex applications with massive instruction sets that exceed or consume significant RAM capacity.
Positioned physically closer to the CPU than RAM.
Temporarily holds blocks of instructions that are used most frequently; less frequently used instructions remain in RAM until needed.
Faster than RAM because instructions travel a shorter physical distance to the CPU.
Read Only Memory (ROM):
A memory chip where critical system instructions are stored.
Non-volatile: Retains instructions permanently even when power to the computer is turned off.
Read-only nature: Instructions can only be read by the computer and cannot be modified or altered by the user.
Storage Hierarchy and Dimensional Metrics
Physical Storage Hierarchy (from top/fastest to bottom/slowest):
Registers (Top Level)
Cache Memory
Main Memory (RAM)
Disk / Secondary Storage (Bottom Level)
Dimensional Relationships Along the Hierarchy:
Moving upward toward Registers: Access time decreases (speed increases), cost per byte increases, and total storage capacity decreases.
Moving downward toward Disk: Access time increases (speed decreases), cost per byte decreases, and total storage capacity increases.
Secondary Storage Systems and Media
Secondary storage (backing storage) is engineered to retain massive volumes of data (gigabyte capacity or higher) over extended periods.
Core Operational Traits:
Non-volatile storage medium.
Exhibits slower retrieval times compared to RAM.
Significantly more cost-effective per byte than primary storage.
Only small portions of secondary storage data are transferred into primary storage at any single time.
Hard Disk (HD) and Hard Disk Drive (HDD):
Hard Disk (HD): Internal or external hardware component that stores data including the operating system, applications, and user files.
Hard Disk Drive (HDD): The mechanical drive required to operate a Hard Disk.
Performance Factors: The most important factor determining HDD performance is the physical movement of the read/write head to the target track.
Configurations:
Internal Hard Disks: Located directly inside the main computer unit.
External Hard Disks: Connected externally to the main computer unit (e.g., plugged into a USB port).
Disk Formatting Rules and Guidelines:
Formatting creates structural guidelines on a blank disk, comparable to drawing lines on a blank sheet of paper to enable structured writing.
Enables the operating system (e.g., Windows) to read and store information on the disk.
Hard disks are formatted by the manufacturer prior to delivery.
Formatting erases all existing data on the disk; formatting a hard disk should only be performed by a qualified individual.
Flash Memory:
A non-volatile, long-life storage chip.
Retains stored data and information even when electrical power is turned off.
Can be electrically erased and reprogrammed.
Exercises and Review Concepts
Core Review Questions:
Main Hardware Components: Central Processing Unit (CPU), Memory (Primary and Secondary), Input Devices, Output Devices.
Main Parts of CPU: Control Unit (CU), Arithmetic Logic Unit (ALU), Registers (AR, IR, PC, DR).
RAM vs. ROM Comparison:
Volatility: RAM is volatile (temporary storage); ROM is non-volatile (permanent storage).
Modifiability: RAM allows read and write operations; ROM allows read-only operations by the system.
Capacity & Proximity: RAM has larger capacity than ROM/registers and holds active software data.
Primary vs. Secondary Storage Comparison:
Capacity: Primary storage handles small amounts of immediate data; Secondary storage handles massive amounts (gigabytes/terabytes).
Access Speed: Primary storage is significantly faster than secondary storage.
Cost: Primary storage is higher cost per byte; Secondary storage is more cost-effective.
Retention: Primary storage is temporary/volatile (except ROM); Secondary storage is permanent/non-volatile.
Secondary Storage Examples & Capacities: Hard Disk Drives (HDDs), External USB Hard Disks, and Solid-State Flash Memory chips operating in Gigabyte (GB) and Terabyte (TB) scales.