Foundations: What a Computer Is

the control unit

In our one-worker workshop, the control unit is the boss reading the instruction sheet and barking orders: open this drawer, pick up that part, use this tool, put the result here. The control unit does no actual calculating itself — it is the conductor, not the orchestra. It reads each instruction and decides what every other part of the processor should do, step by step, in the right order.

Mechanically, the control unit fetches the current instruction (using the program counter, which holds the address of the next instruction), decodes it to figure out what it means, and then raises the right control signals — on/off lines that tell the datapath which operation to perform, which register to read, whether to write to memory, and where to go next. For an add instruction it tells the arithmetic-logic unit to add and the result to be written to a register; for a branch it may change the program counter so the next instruction comes from somewhere else.

The control unit is one of the two halves of a processor, the other being the datapath it commands. How it is built is a classic design choice: hardwired control uses fixed logic and is fast but rigid, while microprogrammed control stores the steps in a tiny internal memory and is more flexible but slower. Either way, its job is the same — turn each instruction into the precise sequence of signals that makes the rest of the machine act.

For load value from memory into a register, the control unit signals: compute the address in the ALU, read that memory location, then write the value into the named register — three coordinated commands from one instruction.

The control unit conducts; it does not compute.

The control unit issues signals but performs no arithmetic itself — that is the datapath's job. Hardwired and microprogrammed are the two classic ways to build it, trading speed against flexibility.

Also called
CU控制器