← 🧠 ALU, Datapath & Control Unit
Subtopic 8 of 9

5.8Vertical microinstruction

The idea

Vertical micro-instructions encode signals into small fields: narrow, but each field needs a decoder, and fewer signals fire at once.

Think of it like this: Instead of one switch per light, a dial with positions: fewer controls but slower to read.

Why it exists

It saves control-store space.

How it works

  1. Group mutually exclusive signals into a field.
  2. Field bits = ⌈log2(options + 1)⌉ (+1 for "none").
  3. Add up the field widths.
  4. A decoder expands each field into signals.

Worked example: Same signals as before

ALU 8 → 4 bits, source 6 → 3, dest 6 → 3, memory 3 → 2. Total 12 bits vs 23 horizontal.

Now play with it

  • →Switch to the Vertical tab and compare totals.

Total 12 bits. Click a field for details.

Horizontal width23 bits
Vertical width12 bits
Saving by encoding11 bits

Horizontal: 1 bit per signal, many signals can fire together, no decoder. Vertical: encoded fields, one signal per field, needs decoders (slower).

Check yourself

A field selects one of 7 mutually exclusive sources or none. Minimum bits?

Remember: Vertical: ⌈log2(n+1)⌉ bits per field.
Exam notes (the dense version)

Encoded fields. Narrow, small store, needs decoders → slower, less parallelism.

Previous year questions: ALU, Datapath & Control Unit (3)

PYQs are grouped by topic, so this is the full set for ALU, Datapath & Control Unit; try the ones that match this subtopic. Open all 3 on the topic page.