Академический Документы
Профессиональный Документы
Культура Документы
Control Design
S0 = 0 0 – Begin
Example: GCD processor
S1 = 0 1 – Swap
GCD is performed by continuous subtraction
S2 = 1 0 – Sub
of the smallest value until reached the last
number that can be the difference and that S3 = 1 1 – End
would be the greatest common denominator.
S2 = 0 1 0 0 – Sub
Control unit organization
S3 = 1 0 0 0 – End
Microinstruction’s two parts:
Microprogramming is a method of
control-unit design in which the control
signal selection and sequencing information
is stored in a ROM or RAM called control
memory, CM. Microinstruction length is determined by
three factors:
Microinstructions activates the control
signals at any time which is fetched from CM 1 The maximum number of simultaneous
in much the same way an instruction is microoperations that must be specified, that
fetched from main memory. is, the degree of parallelism required at the
microoperation level
Microprogram is a set of related
microinstructions. 2 The way in which the control information is
represented or encoded
Emulator is the set of microprograms
that interpret a particular instruction set or 3 The way in which the next microinstruction
machine language. address is specified
Control memories are usually ROMs, so their Horizontal microinstructions (fig5.28):
contents cannot be altered on-line. But CM
can be a r/w memory or RAM. WCM or 1 long formats
writable control memory would have a
2 ability to express a high degree of
number of “fascinating possibilities” but
parallelism
doubted that its cost could be justified. WCM
allows us to change a processor’s instruction 3 little encoding of the control
set by changing the microprograms that information
interpret the instruction set.
Allows no encoding of control information
1 short formats
Parallelism in microinstructions
2 limited ability to express parallel
Microinstruction formats take microoperations
advantage of the fact that, at the
microprogramming level, many operations 3 considerable encoding of the control
can be performed in parallel. information
Microinstruction addressing
A single clock signal synchronizes the control We can state optimization problem that aims
signals, and its period can be the same as to minimize the total size of control fields
the microinstruction cycle period; this mode needed to implement a particular set of
of control has been termed monophase. microinstructions:
Pipeline structure
encoded or unencoded format the control Simplest instruction pipeline:
signals that are activated to perform the
desired microoperations Fetch Stage S1:
Optimizing m