Home / Learn Chip Programming / Hardwired vs Microcoded Control Units

Hardwired vs Microcoded Control Units

How the control unit turns an instruction into the signals that move data inside the CPU.

In shortHow the control unit turns an instruction into the signals that move data inside the CPU.

Theory in plain words

Two control stylesHardwiredGates and state machineFastestHard to changeRISC: ARM, RISC-V, MIPSMicrocodedControl ROM holds micro-instructionsSlower but flexibleEasy to add complex instructions or fix bugsClassic CISC: 8086, many x86 internals
Two control styles

What it is

The control unit decodes the opcode and activates control signals (register select, ALU operation, memory read/write). Hardwired logic does this with gates; microcode uses a small ROM of micro-instructions.

Why we use it

Hardwired is fast and used in RISC. Microcode makes complex CISC instructions easy to design and to fix with updates. Understanding both shows how an instruction really runs.

How it works

Each instruction is a sequence of micro-operations (micro-ops). A ROM or logic outputs the control word for each step: e.g. PC to address bus, memory read, data to IR, PC increment.

Where it is used

  • Designing your own CPU (Project 10)
  • Understanding x86 micro-ops
  • Reading CPU manuals

Control signals for each instruction

Control word table of our teaching CPUTry it Yourself

The first two steps (fetch) are the same for every instruction. Only the execute steps differ.

ItemHardwiredMicrocoded
Speedhighestlower
Flexibilitylowhigh
Design effort for complex instruction setslargesmall
TypicalRISC CPUs, microcontrollerscomplex x86 instructions
Tip:When you build your 8 bit CPU in Project 10 you will write this table yourself: one control word per micro-step, stored in a ROM or decoded with gates.

Quick quiz

1. What does a microcode ROM hold?

2. Which control type is typical for RISC?

Common questions

What does a microcode ROM hold?

Control words for each micro step. Each word activates control signals for one step.

Which control type is typical for RISC?

Hardwired. RISC uses simple hardwired decoding for speed.