Unit 1: Introduction to Digital Computers

Table of Contents

1.1 Computer Definition & Characteristics

Computer Definition

A computer is an electronic device that manipulates information, or data. It has the ability to store, retrieve, and process data. It takes raw data as input, processes it according to a set of instructions (a program), and produces a result (output).

Characteristics of Computers

1.2 Evolution of Computers & Applications

Evolution of Computers (Generations)

  1. First Generation (1940s-1950s): Used vacuum tubes for circuitry. They were massive, expensive, and generated a lot of heat. Programming was done in machine language. Examples: ENIAC, UNIVAC.
  2. Second Generation (1950s-1960s): Replaced vacuum tubes with transistors, making computers smaller, faster, cheaper, and more reliable. Assembly language and early high-level languages like FORTRAN and COBOL were introduced.
  3. Third Generation (1960s-1970s): Characterized by the use of Integrated Circuits (ICs). This allowed for even smaller computers with keyboards and monitors. Operating systems were developed. Examples: IBM-360 series.
  4. Fourth Generation (1970s-Present): Based on microprocessors, which packed thousands of ICs onto a single silicon chip. This led to the development of personal computers (PCs). GUIs, mice, and handheld devices emerged.
  5. Fifth Generation (Present and Beyond): Focuses on Artificial Intelligence (AI), parallel processing, and quantum computing. Aims to develop devices that can respond to natural language and are capable of learning and self-organization.

Applications of Computers

1.3 Types of Computers

Computers can be classified based on their size, power, and purpose.

1.4 Basic Organization of a Digital Computer

The basic organization of a computer system is based on the Von Neumann architecture. It consists of five major components.

Exam Tip: Always draw the Von Neumann Architecture diagram when asked about the basic organization of a computer. It clearly shows the relationship between the CPU, Memory, and I/O units.
  1. Input Unit: Takes data and instructions from the user. (e.g., Keyboard, Mouse)
  2. Central Processing Unit (CPU): The "brain" of the computer. It processes the data. It has two main sub-units:
    • Control Unit (CU): Directs and coordinates most of the operations in the computer.
    • Arithmetic Logic Unit (ALU): Performs arithmetic operations (+, -, *, /) and logical operations (AND, OR, NOT).
  3. Memory Unit: Stores data, instructions, and intermediate results. (e.g., RAM, ROM)
  4. Output Unit: Presents the processed data (information) to the user. (e.g., Monitor, Printer)
  5. Storage Unit: Stores data and programs permanently for future use. (e.g., Hard Disk, SSD)

1.5 Computer Design vs. Computer Architecture

Computer Architecture

Refers to the attributes of a system visible to a programmer. It's the what. It includes the instruction set, number of bits used for data, I/O mechanisms, and addressing techniques. Example: The specification that a processor will have a multiplication instruction.

Computer Organization

Refers to the operational units and their interconnections that realize the architectural specifications. It's the how. It includes details like control signals, interfaces between the computer and peripherals, and the memory technology used. Example: How the multiplication instruction is implemented (e.g., using a dedicated hardware unit or repeated addition).
Analogy: Think of designing a car. Architecture is deciding it will have four wheels, an engine, and seats for five people. Organization is deciding the specific type of engine, the material for the seats, and how the steering wheel connects to the wheels.

1.6 Hardware and Software

Hardware

The physical components of a computer system that you can touch and see. Examples: CPU, monitor, keyboard, motherboard, RAM.

Software

A set of instructions or programs that tells the hardware what to do. You cannot touch software.

1.7 Central Processing Unit (CPU)

As mentioned, the CPU is the primary component that executes instructions. It consists of:

1.8 Input and Output Devices

Input Devices

Hardware used to provide data and control signals to a computer.

Output Devices

Hardware used to communicate the results of data processing carried out by a computer.

1.9 Computer Memory & Storage

Memory is used to store data and instructions. It is organized in a hierarchy.

Primary Memory (Main Memory)

Volatile memory that holds data and instructions that the CPU is currently working with. It is directly accessible by the CPU.

Cache Memory

A very high-speed, small-sized memory placed between the CPU and RAM. It stores frequently accessed data and instructions to speed up processing.

Secondary Storage

Non-volatile storage used for long-term storage of data and programs. It is slower but has a much larger capacity than primary memory.