Microprogrammed control unit is implemented by writing microprograms in the control memory. These microprograms are a set of microinstructions required for executing the machine instruction. Each microinstruction somehow(implicitly or explicitly ) also specify the address of next microinstruction to be fetched, thus sequencing the microoperations. The following terms must be understood before we go for the details on microprogrammed control unit.
Block diagram of MCU
Coponents of the microprogram control unit:
Control memory is in the form of read only memory. Control memory stores the microinstructions. The format of the microinstruction is:
Address field to point to next microinstruction
The control field part specify the control signals to be activated in response to the assembly instruction and the address field contains the address of the next microinstruction in control memory to be executed. The control memory unit also has a current and the next memory address.
As indicated in the figure the control memory address register (CMAR) is connected to the 2×1 MUX which gets the input from the 2nd field of the microinstructioncan (address part) or from the external source of address. The instructions opcode after suitable encoding, provides the starting address of its microprogram.
The external source of address usually denote the starting address of the microprogram for a particular instruction. The control unit also respond to external signal or external conditions which allow the current microinstruction to choose or select one of the two possible address fields