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.
- Fabrication: The microprogram (the list of 1s and 0s) acts as the truth table for fabricating the ROM mask during hardware production.
- Permanence: The microprogram is fixed. The internal links are fused, making the ROM content non-volatile and immutable.
- Modification: Changing the instruction set requires generating a new microprogram, removing the old ROM package, and physically replacing it with the new one.
- Security: Prevents the occasional user from inadvertently changing the fundamental architecture of the system.
3. RAM (Writable Control Memory)
When a RAM is used for the Control Memory, it is termed Writable Control Memory (WCM), offering significant flexibility.
- Advantage: The microprogram can be altered simply by writing a new pattern of 1s and 0s. No hardware procedures are needed.
- Flexibility: Allows the computer's instruction set to be changed dynamically by choosing which microprogram to load into the WCM.
- Usage: Often employed in specialized or research architectures where frequent modification of the instruction set is required.
4. ROM vs. WCM Comparison
Select a characteristic below to reveal the comparison:
Programmability
| ROM | Fixed and Permanent. The microprogram is hardware-defined by the mask. |
|---|---|
| WCM (RAM) | Flexible and Dynamic. Microprogram can be rewritten using software. |