How Do Datapaths and Control Units Differ?
- Starter
- Article
- Ages 10+
- 6 min read

The datapath is the part of a processor that holds the hardware working on data: registers, an ALU, multiplexers and the links between them. The control unit is the part that tells the datapath what to do, using control signals made from the instruction. One does the work and one gives the orders, and together they make up the CPU.
Contents
- Instruction coming in (solid arrow from the left)
- Control unit (box with a round dot and a bar)
- Control signals (three dashed arrows)
- Datapath (large frame below)
- Registers (stack of three slots on the left)
- ALU (V-shaped block)
- Memory (stack of three slots on the right)
- Result going out (solid arrow to the right)
What you will learn
- Say what a datapath contains and what work it does.
- Retell how a control unit turns an instruction into control signals.
- Tell the two ways of building a control unit apart: hardwired and microprogrammed.
Before you start
You only need to know that a processor runs instructions and that an ALU is the circuit that does the calculations. The rest is explained in the article.
What does a datapath contain and what does it do?
The datapath is where data is actually processed. It is the portion of the processor that contains the hardware needed to perform the operations the processor requires, or put another way, the collection of hardware components that does the work of computation.
Which components? Registers for operands and results, an ALU to compute, and multiplexers that select data paths based on control signals. The three form a chain: data leaves a register, passes the selector, enters the ALU, and the result goes back to a register or on its way.
- Registers (stack of four slots on the left)
- Multiplexer (trapezoid)
- ALU (V-shaped block)
- Memory (stack of three slots on the right)
- Result written back to a register (green path looping back)
- Control signal into the multiplexer (dashed arrow)
What does a control unit do with an instruction?
The control unit turns an instruction into signals the datapath obeys. It is the part of the CPU that directs the operation of the processor. It decodes the instruction fields, activates the correct datapath paths with control signals, enables the correct write and read paths, and ensures correct sequencing. In the decode step, it generates control signals to guide the datapath.
What do those signals carry? Control specifies whether data must be written to memory or registers, which arithmetic or logical operation to execute, and the selectors for the multiplexers. The execution of a RISC-V instruction can be split into five steps: fetch, decode, execute, memory access and write back. The control unit decides which part of the datapath is used in each step.
How do the two differ, and how is a control unit built?
One part does the work and one directs it, but both are hardware. They are two abstractions that together make up the CPU, and both are designed with combinational logic and state elements. One way to picture it: the datapath is like a space station with all the hardware to do the work, and control is like mission control on Earth, which receives data from the station and sends directions back.
The line between the two is not drawn the same way everywhere. One definition keeps the datapath apart from the control unit; another counts the control unit as part of the datapath, which then consists of the CPU's control unit, one or more ALUs, multipliers, registers, flags and buses. When you read about it, check which sense of "datapath" is meant.
A control unit can be built in two main ways. Hardwired control uses fixed logic circuits to generate control signals directly from the instruction bits and timing signals. It is very fast but inflexible: changing the instruction set or adding instructions means redesigning the hardware. Microprogrammed control stores the control logic in memory. It is flexible, since instructions change by changing the microcode, but slower because each machine instruction may need several microinstructions.
- Hardwired control (frame with small boxes and round dots joined together)
- Microprogrammed control (frame with four rows, the third filled)
- Control signals from fixed circuits (three green arrows on the left)
- Control signals from the selected microinstruction row (three green arrows on the right)
Real-world example
Think of a restaurant kitchen. It has pots, burners, knives and boards: that is the part that does the work. The head chef reads the order slip and tells each cook which step to take, with which tool, in which order: that is the part that gives the orders. The order slip is like an instruction and the chef's words are like control signals. This is only an analogy: in a processor both parts are electrical circuits, with no people involved.
Common misunderstandings
The control unit does the calculating instead of the ALU. The calculating happens in the datapath, in the ALU. The control unit only tells the ALU which operation to do.
A datapath never includes the control unit. It depends on the definition: one way keeps the two apart, another counts the control unit as part of the datapath.
The control unit is just software. It is a part of the processor built in hardware.
Frequently asked questions
How is a datapath different from a control unit?
The datapath works on data. The control unit tells it what to do, using control signals.
What are control signals used for?
Which is better, hardwired or microprogrammed control?
Each has a trade-off: hardwired is fast but hard to change, while microprogrammed is easy to change but slower.
Summary
- The datapath works on data; the control unit tells it what to do using control signals.
- The control unit decodes the instruction and activates the right paths in the datapath.
- Hardwired control is fast; microprogrammed control is flexible.
Terms in this article
English and Vietnamese terms, with the meanings used here. Hover, tap or Tab to a term with a dotted underline for an explanation as you read.
- datapathđường dữ liệu
- The part of a processor that holds the hardware working on data: registers, ALU, multiplexers and the links between them.
- control unitkhối điều khiển
- The part of a processor that interprets instructions and tells the datapath what to do.
- control signaltín hiệu điều khiển
- A signal made by the control unit to enable paths, choose the operation and select inputs in the datapath.
- multiplexerbộ ghép kênh
- A circuit that chooses one of several inputs and sends it to the output.
- hardwired controlđiều khiển nối cứng
- A way to build the control unit from fixed logic circuits that make control signals directly from the instruction.
- microprogrammed controlđiều khiển vi chương trình
- A way to build the control unit by keeping its logic in memory as microinstructions.
This article is not marked as viewed
Spotted something wrong or unsafe?
Tell the administrator by email. The message already has the article title and address.
More in this topic
StarterWhat Is a Microchip?
Understand microchips, transistors and chip packages through a phone example, and distinguish a semiconductor material from a finished circuit.
5 min read
StarterWhat Is Inside a Microchip?
Explore the semiconductor base, transistors and chip package, and see how these parts form a component used in electronic devices.
5 min read
StarterHow Do Voltage Levels Represent Digital Signals?
See how chips read HIGH and LOW from voltage, how logic families set thresholds, and how a transistor switch flips a level.
5 min read
StarterHow Do Bits, Bytes and Machine Words Differ?
Compare bits, nibbles, bytes and machine words by length, and understand why a byte has a fixed size while word length depends on the design.
5 min read
Sources
These sources are written for older readers. If they feel hard, read them with an adult.
- Datapath (CS 2210, University of Vermont)(opens in a new tab)
University of VermontTier A: government, standards or research bodiesRead on November 14, 2026
- Introduction to datapath (CS 61C course notes, UC Berkeley)(opens in a new tab)
University of California, BerkeleyTier C: other sourcesRead on November 14, 2026
