The Wayback Machine - https://web.archive.org/web/20251012123407/https://www.geeksforgeeks.org/computer-organization-architecture/introduction-of-alu-and-data-path/
Open In App

Introduction of ALU and Data Path

Last Updated : 22 Sep, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

The Arithmetic Logic Unit (ALU) is the part of the CPU that performs all arithmetic and logical operations, while its data path consists of components like registers and buses that provide the route for data to move and be processed during execution.

  • The control unit directs the ALU to compute and store results in an output register.
  • The CPU has two sections: the data section (ALU, registers, data path) and the control section (generates control signals)
central_processing_unit_

Arithmetic Logic Unit (ALU)

The Arithmetic Logic Unit is a fundamental component of the CPU responsible for all calculations and logical decision-making. It’s a digital circuit that performs basic operations – like adding, subtracting, and comparing numbers – on data represented in binary code. Essentially, the ALU is where the actual processing of information takes place within a computer.

BUS

A bus is a communication system that transfers data between components or computers. It consists of hardware (wires, fibres) and software (protocols). Registers, ALU, and buses together form the data path.

Types of buses

There are mainly three types of buses:

  1. Address bus: Transfers memory addresses from the processor to components like storage and input/output devices. It's one-way communication.
  2. Data bus: carries the data between the processor and other components. The data bus is bidirectional.
  3. Control bus: carries control signals from the processor to other components. The control bus also carries the clock's pulses. The control bus is unidirectional.

The bus can be dedicated, i.e., it can be used for a single purpose or it can be multiplexed, i.e., it can be used for multiple purposes. when we have different kinds of buses, different types of bus organisations will take place.

Registers

In Computer Architecture, Registers are very fast computer memory which is used to execute programs and operations efficiently. They act as gates, controlled by the control unit.

The following list of five registers for in-out signal data storage:

  • Program Counter (PC): Stores the address of the next instruction.
  • Instruction Register (IR): Holds the instruction being executed/decoded.
  • Memory Address Register (MAR): Stores the memory address for data fetch/store.
  • Memory Data Register (MDR/MBR): Stores data being transferred to/from memory.
  • General-Purpose Registers: Store temporary data for multiple uses.

What is Data Path?

Suppose that the CPU needs to carry out any data processing action, such as copying data from memory to a register and vice versa, moving register content from one register to another, or adding two numbers in the ALU. Therefore, whenever a data processing action takes place in the CPU, the data involved for that operation follows a particular path, or data path.

Data paths are made up of various functional components, such as multipliers or arithmetic logic units. Data path is required to do data processing operations.

One Bus Organization

1-

In a one bus organization, a single bus connects registers, PC, IR, MAR, and MDR, with memory read/write handled via MAR and MDR. Only one operand can be read at a time, so reading two operands requires two bus cycles, making operations sequential. It is simple and cheap but rarely recommended due to this sequential access.

Two Bus Organization

To overcome the limitations of one bus, two bus organization uses two buses, allowing general-purpose registers to read/write from both. Two operands can be fetched simultaneously—one bus for the ALU and another for registers. If both buses are busy, the output can be stored in a temporary register and later placed on the bus when free.

2-

There are two versions of two bus organizations, i.e., in-bus and out-bus. From in-bus, the general-purpose register can read data and to the out bus, the general-purpose registers can write data. Here buses get dedicated.

3

Three Bus Organization

In a three bus organization, there are OUT bus1, OUT bus2, and an IN bus. Operands from general-purpose registers flow through the OUT buses to the ALU, and the output is placed on the IN bus to the respective registers. It is more complex but faster, allowing parallel operand processing and immediate output transfer, overcoming the busy-waiting problem of two-bus systems.. The structure is given below in the figure. 

4-

The main advantages of multiple bus organizations over the single bus are as given below. 

  1. Increase in size of the registers.
  2. Reduction in the number of cycles for execution.
  3. Increases the speed of execution or we can say faster execution.

Data-Path & Basics of instruction execution
Visit Course explore course icon

Explore