3.4 Bus Interconnection

COS2621 - Computer Organisation · 3. A Top- Level View of Computer Function and Interconnection

Bus Interconnection

Understanding Buses

A bus is a communication system that transfers data between components inside a computer or between computers. It serves as a shared pathway for multiple devices to communicate. Buses can be classified into three main types: data bus, address bus, and control bus.

Types of Buses

  • Data Bus: This bus carries the actual data being transferred. Its width (number of bits it can carry simultaneously) affects the amount of data that can be transmitted at one time. For example, a 32-bit data bus can transfer 4 bytes of data simultaneously.
  • Address Bus: This bus carries the addresses of the data (but not the data itself) so that the CPU knows where to read or write data. The width of the address bus determines the maximum addressable memory. For example, a 32-bit address bus can address up to 4 GB of memory.
  • Control Bus: This bus carries control signals from the CPU to other components. It helps manage operations in the computer, such as read/write operations and device control.

Bus Architecture

Buses can be implemented in various architectures:

  • Single Bus Architecture: All devices share a single bus. It is simple but can become a bottleneck as more devices are added.
  • Multiple Bus Architecture: Multiple buses are used to connect different components. This reduces bottlenecks and increases performance.
  • Hierarchical Bus Architecture: This architecture uses a hierarchy of buses to connect different levels of components, allowing for better management and efficiency.

Bus Operations

Bus operations involve several key processes:

  • Arbitration: This process determines which device can use the bus when multiple devices request access. Common methods include daisy chaining and centralized control.
  • Data Transfer: Once a device gains access, data is transferred over the bus. This can be done in several ways:
  • Simplex: Data flows in one direction only.
  • Half-Duplex: Data can flow in both directions, but not simultaneously.
  • Full-Duplex: Data can flow in both directions simultaneously.

Example of Bus Operation: Suppose a CPU wants to read data from memory. The process would be as follows:

  1. The CPU places the memory address on the address bus.
  2. It sends a read signal on the control bus.
  3. The memory responds by placing the requested data on the data bus.
  4. The CPU then reads the data from the data bus.

Tip: Understanding bus architecture is crucial for grasping how data flows in a computer system.

Watch out: Do not confuse the data bus with the address bus; they serve different purposes in data transfer.

Summary

  • Buses are essential for data transfer within a computer.
  • There are different types of buses: data, address, and control.
  • Bus architecture can be single, multiple, or hierarchical.
  • Key operations include arbitration, data transfer, and timing.

Check your understanding

  • What are the three types of buses in a computer system?
  • Explain the difference between simplex, half-duplex, and full-duplex data transfer.
  • What is the purpose of bus arbitration?
  • How does the CPU read data from memory using the bus?

Test yourself

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

  1. 1. Which type of bus architecture uses multiple buses to connect different components?

  2. 2. What is the primary function of the data bus in a computer system?

  3. 3. In which data transfer mode can data flow in both directions simultaneously?

  4. 4. A ________ contains electronics for exchange data, control, and status signals with an I/O module plus the electronics for controlling the disk read/write mechanism.

  5. 5. What does bus arbitration determine?