1.2 Structure and Function

COS2621 - Computer Organisation · 1. Basic Concepts and Computer Evolution

1.2 Structure and Function

The structure of a computer system refers to its components and their relationships, while function describes what these components do and how they work together. Understanding both aspects is essential for grasping computer organization.

Key Components

A typical computer system consists of several key components:

  • Central Processing Unit (CPU): This is the brain of the computer where most calculations take place. It interprets instructions and processes data.
  • Main Memory: Also known as RAM (Random Access Memory), it stores data and instructions that the CPU needs while performing tasks.
  • Input/Output (I/O) Devices: These are peripherals that allow interaction with the computer. Examples include keyboards, mice, and printers.
  • Buses: These are communication systems that transfer data between components. They can be data buses, address buses, or control buses.

Function of Each Component

Each component has a specific function:

  • The CPU executes instructions from programs, performs calculations, and manages data flow.
  • Main memory temporarily holds data and programs that are in use, enabling quick access by the CPU.
  • I/O devices facilitate user interaction and data exchange with the external environment.
  • Buses connect components, allowing them to communicate and share data.

Data Flow in a Computer System

Data flow involves how data moves through the system:

  1. Data is entered via I/O devices.
  2. The CPU retrieves instructions and data from main memory.
  3. The CPU processes the data and sends results back to memory or to an output device.

Example of Data Flow

Consider a simple addition operation:

  1. The user inputs two numbers via the keyboard (I/O device).
  2. The CPU fetches these numbers from memory.
  3. The CPU adds the numbers and stores the result back in memory.
  4. The result is then sent to a display screen (another I/O device).

Watch out: Students often confuse the roles of main memory and storage. Main memory is temporary, while storage (like hard drives) retains data long-term.

Hierarchical Structures in Computing

A hierarchical structure in computing is a way of organizing components into levels, where each level has specific roles. This structure helps in managing complex systems by breaking them down into smaller, interrelated subsystems. For instance, a computer system can be seen as a complex system consisting of various subsystems such as the CPU, memory, and I/O devices.

Remember: A __________ system is a set of interrelated subsystems.

Summary

  • The structure of a computer includes the CPU, memory, I/O devices, and buses.
  • The function involves executing instructions, data storage, and communication between components.
  • Data flows from input devices to the CPU, through memory, and to output devices.
  • Hierarchical structures help manage the complexity of computer systems.

Check your understanding

  • What are the main components of a computer system?
  • How does data flow from input to output in a computer?
  • What is the difference between main memory and storage?
  • Define a hierarchical system in computing.

Test yourself

4 quick questions on this lesson. Pick an answer to see if you're right.

  1. 1. Which component of a computer system temporarily holds data and instructions for quick access by the CPU?

  2. 2. What is the role of buses in a computer system?

  3. 3. In the data flow of a computer system, which component retrieves instructions and data from main memory?

  4. 4. What is the primary function of the Central Processing Unit (CPU) in a computer system?