computer-architecture-control-unit.html
* created: 2025-06-09T18:58
* modified: 2025-06-24T18:28
title
Control Unit (CU)
description
The control unit is the part of the cpu that is responsible for loading and executing instructions.
Controlling the unit
The control unit handles the execution of a program which is already decoded into the hardware specific machine language. This is done by interpreting the machine code and then executing the required steps.
The command cycle
The CU has to execute 5 main steps during a instruction cycle; which are:
- Fetch: Obtain the instruction from memory.
- Decode: Interpret the instruction's opcode and operands.
- Load: Retrieve any necessary data from memory or registers.
- Execute: Perform the operation (e.g., arithmetic or logical operation).
- Write: Store the result back into memory or a register.
This cycle runs until the program ends (or the CPU receives an interrupt), which is sometimes denoted by a 6th interrupt step.