02_01 Microprogrammed Control
02_01 Microprogrammed Control
UNIT – II
Microprogrammed Control
Prof. Murali Nath R S, Ms. Nagamani G & Ms. Kavitha P
Department of Computer Science & Engineering
Examples
Control Memory
Address Sequencing
Microprogram Example
Main Memory:
- Available to the user for storing the programs, consisting of machine
instructions and data.
- The contents may alter when the data are manipulated and the program
is changed.
Control Memory:
- Holds a fixed microprogram that cannot be altered by the occasional
user.
BVRIT HYDERABAD College of Engineering for Women
The microprogram consists of microinstructions that specify various
internal control signals for execution of register microoperations.
The system can operate without the CDR by applying a single-phase clock to
the address register.
The control word and next-address information are taken directly from the
control memory.
The ROM operates as a combinational circuit, with the address value as the
input and the corresponding word as the output.
BVRIT HYDERABAD College of Engineering for Women
The content of the specified word in ROM remains in the output wires as long
as its address value remains in the CAR.
No read signal is needed as in a random-access memory.
With the single phase clock, the CAR is the only component in the control system
that receives clock pulses.
The other two components, the sequencer and the control memory are
combinational circuits and do not need a clock.
The main advantage of the microprogrammed control is that once the hardware
configuration is established, there is no need for further hardware or wiring
changes.
To establish a different control sequence for the system, specify a different set of
microinstructions for control memory
BVRIT HYDERABAD College of Engineering for Women
Why Should I Study this course?
Address Sequencing
Microinstructions are stored in control memory in groups, with each group as
aExamples
routine.
Each computer instruction has its own microprogram routine to generate the
corresponding microoperations.
Let us discuss the steps involved during the execution of a single computer
instruction.
This can be accomplished by fixing the value of one status bit at the input
of the multiplexer, so it is always equal to 1.
A reference to this bit by the status bit select lines from control memory
causes the branch address to be loaded into the CAR unconditionally.
Advantages:
- The microprogram routine executing the instruction can be placed in
any desired location in control memory.
- The mapping concept provides flexibility for adding instructions for
control memory as the need arises.
The best way to implement SBR as a register file, organizing the registers
in a last-in, first-out (LIFO) stack.
The computer used here is similar but not identical to the basic computer.
BVRIT HYDERABAD College of Engineering for Women
Why Should I Study this course?
Computer Configuration
Examples
The 20 bits of the microinstruction are divided into four functional parts:
- The three fields F1, F2, and F3 specify microoperations for the
computer.
- The CD field selects status bit conditions.
- The BR field specifies the type of branch to be used.
- The AD field contains a branch address.
- The address field is seven bits wide, since the control memory has
128 = 27 words.
BVRIT HYDERABAD College of Engineering for Women
The microoperations are subdivided into three fields of three bits
each.
The three bits in each field are encoded to specify seven distinct
microoperations as:
The nine bits of the microoperation field are divided into three subfields
of three bits each.
The control memory output of each subfield must be decoded to provide
the distinct microoperations.
The outputs of the decoders are connected to the appropriate inputs in the
processor unit.
BVRIT HYDERABAD College of Engineering for Women
BVRIT HYDERABAD College of Engineering for Women
Why Should I Study this course?
Microprogram Sequencer
The basic components of a microprogrammed control unit are:
Examples
- Control Memory.
- Circuits selecting the next address.
The address selection part is called a microprogram sequencer.