Unit 4 - Microprogrammed Control
Unit 4 - Microprogrammed Control
10 HRS
2. Logical Operations:
Operations like AND, OR, NOR, NOT etc. using logical circuitry are examples of logical
operations.
3. Data Manipulations:
Operations such as flushing a register is an example of data manipulation. Shifting binary
numbers are also example of data manipulation.
Notes By: Raju Poudel (Mechi Multiple Campus)
Control Memory
A computer that employs a microprogrammed control unit will have two separate
memories: a main memory and a control memory.
The main memory is available to the user for storing the programs. The contents
of main memory may alter when the data are manipulated and every time that the
program is changed. The user's program in main memory consists of machine
instructions and data.
In contrast, the control memory holds a fixed microprogram that cannot be altered
by the occasional user. The microprogram consists of microinstructions that specify
various internal control signals for execution of register microoperations.
Each machine instruction initiates a series of microinstructions in control memory.
These microinstructions generate the microoperations to fetch the instruction from
main memory; to evaluate the effective address, to execute the operation specified
by the instruction, and to return control to the fetch phase in order to repeat the
cycle for the next instruction.
Information in these bits can be tested and actions initiated based on their
condition: whether their value is 1 or 0.
The status bits, together with the field in the microinstruction that specifies a branch
address, control the conditional branch decisions generated in the branch logic.
The branch logic hardware may be implemented in a variety of ways. The simplest
way is to test the specified condition and branch to the indicated address if the
condition is met; otherwise, the address register is incremented.
2. It is a convenient form for writing microprograms in a 2. It is written in binary form so can be difficult for people to
way that people can read and understand. read and understand.
3. To be stored in memory symbolic microprogram must be 3. Translation is not required for storing in memory because it is
translated to binary either by means of an assembler already written in binary form.
program or by the user if the microprogram is simple
enough.
4. The symbolic representation is useful for writing 4. The binary representation is the actual internal content that
microprograms in an assembly language format. must be stored in control memory.
5. Example: Symbolic microprogram for fetch routine: 5. Example: Translation of symbolic microprogram to binary
microprogram.