Course contentsShow
← Computer Science
Lesson 1079 of 2,87225. Computer Architecture FoundationsFree lesson

Register Transfer and Data Paths

How data moves between registers through internal buses and the role of multiplexers in routing.

Register Transfer and Data Paths

You'll learn how data flows between CPU registers through internal buses and how multiplexers select the correct paths.

What is Register Transfer?

Inside a CPU, data constantly moves between registers (like the ones you just learned: PC, IR, general-purpose registers, etc.). This movement is called register transfer. For example, when executing an instruction, data from one register might need to be sent to the ALU, or results might need to be stored back into a different register.

Data Paths: The Roads Inside the CPU

A data path is the physical route data takes as it moves through the CPU. Think of it like a highway system connecting different CPU components. These paths are typically made of parallel wires called buses that can carry multiple bits simultaneously (e.g., a 32-bit bus carries 32 bits at once).

The Role of Multiplexers

Here's the challenge: multiple registers might need to send data to the same destination (like the ALU), but you can't have all of them transmitting at once—that would be chaos!

Multiplexers (MUXes) solve this by acting like traffic directors or railroad switches. A multiplexer has multiple inputs but only one output. Control signals tell the MUX which input to "select" and route to the output at any given moment.

For example, if the ALU needs input from either Register A or Register B, a 2-input MUX sits before the ALU. The control unit sends a select signal: "0" picks Register A, "1" picks Register B.

Putting It Together

During instruction execution, the control unit orchestrates these transfers: it activates the right multiplexers, opens the correct data paths, and ensures data flows from source registers through the ALU (or other components) to destination registers—all synchronized by the clock.

Key Takeaway: Data paths are the internal highways of the CPU, and multiplexers act as programmable switches that route data from the correct source registers to destinations under control unit supervision.