Microprogrammed Control & CPU Register Organization
A microprogrammed control unit stores control signals as microinstructions in control memory, so changing an instruction set means rewriting bits, not rewiring gates.
Core Principles
- Control memory: ROM holding microprograms; each word is one microinstruction
- Microinstruction: micro-operation fields plus a branch/next-address field
- Instruction execution: each machine instruction runs a microroutine, entered via opcode mapping
- Address sequencing: next address = CAR+1, branch address, mapped address, or SBR return
- Hardwired control: fixed gate logic, fast, hard to change; microprogrammed: flexible, slower per step
- General register organization: registers R0-Rn feed ALU via A and B multiplexers; a decoder selects the destination register
- 8 registers need 3-bit MUX select lines (2³ = 8) for each of the A and B buses
Key Terms
- CAR (Control Address Register): Holds the address of the next microinstruction to read from control memory.
- CDR (Control Data Register): Holds the current microinstruction while its micro-operations execute.
- Mapping logic: Converts the instruction opcode into the starting address of its microroutine.
- SBR (Subroutine Register): Saves the return address so a microroutine can call and return from a microsubroutine.
Pro Tips
- Horizontal microinstructions run many micro-ops in parallel, because each bit drives its own control line, at the cost of wider words
- Vertical (encoded) microinstructions save ROM bits, because fields decode to fewer signals but run one operation per step
- Add SBR for nested calls, because a single return register breaks as soon as a microroutine calls another
Pitfalls to Avoid
- Narrow branch field: cannot reach every control word, causing wrong jumps
- Single shared bus for all transfers: serializes operations, lengthens each microinstruction
- Ignoring control memory access time: every microinstruction costs one ROM read, capping clock speed
- Overloading microinstruction fields: wide words waste ROM when most bits stay unused
Related cheat sheets
More like this