The Architecture of Control Memory

Exploring the role of ROM and RAM in storing the Binary Microprogram and defining the CPU's instruction set.

1. The Binary Microprogram

The control unit's operation is governed by a sequence of microinstructions known as the microprogram. While the symbolic form is human-readable, the Control Memory (CM) stores the Binary Microprogram—a translation of symbols into 1s and 0s.

Microinstruction Structure

Micro Routine Address (Binary) F1     F2     F3 CD BR AD
ADD 0000000 000 000 000 01 01 1000011
0000001 000 100 000 00 00 0000010
0000010 001 000 000 00 00 1000000
0000011 000 000 000 00 00 1000000
BRANCH 0000100 000 000 000 10 00 0000110
0000101 000 000 000 00 00 1000000
0000110 000 000 000 01 01 1000011
0000111 000 000 110 00 00 1000000
STORE 0001000 000 000 000 01 01 1000011
0001001 000 101 000 00 00 0001010
0001010 111 000 000 00 00 1000000
0001011 000 000 000 00 00 1000000
EXCHANGE 0001100 000 000 000 01 01 1000011
0001101 000 100 000 00 00 0001110
0001110 100 101 000 00 00 0001111
0001111 111 000 000 00 00 1000000
FETCH 1000000 110 000 000 00 00 1000001
1000001 000 100 101 00 00 1000010
1000010 101 000 000 00 11 0000000
INDRCT 1000011 000 100 000 00 00 1000100
1000100 101 000 000 00 10 0000000
This address is unused by the routine. It's often programmed to jump to Address 64 (FETCH) as a wise defensive measure against errors.

2. ROM for Control Memory

A Read-Only Memory (ROM) is the most common choice for Control Memory due to its speed and cost-effectiveness.

3. RAM (Writable Control Memory)

When a RAM is used for the Control Memory, it is termed Writable Control Memory (WCM), offering significant flexibility.

4. ROM vs. WCM Comparison

Select a characteristic below to reveal the comparison:

Programmability

ROMFixed and Permanent. The microprogram is hardware-defined by the mask.
WCM (RAM)Flexible and Dynamic. Microprogram can be rewritten using software.
Start Learning Design of Control Unit