Chap 8. Sequencing and Control
Chap 8. Sequencing and Control
Chap 8. Sequencing and Control
Fall 2000
Jaeyoung Choi
choi@comp.soongsil.ac.kr
8.1 Introduction Chap.8
2
programmable system
a portion of the input consists of a sequence of instructions
each instruction specifies the operation the system is to perform
instructions are stored in memory (RAM or ROM)
program counter
provide the address in memory of the instructions to be executed
address comes from a register called PC
executing an instruction
activating the necessary sequence of microoperations in the datapath
that are required to perform the operation specified by the instructi
on
nonprogrammable system
control unit is not responsible for obtaining instructions, nor for seq
uencing the execution of those instructions
control unit determines the operation to be performed & the seq
uence of those operations, based on only its inputs and the status bits
8.2 Algorithmic State Machines Chap.8
5
a data-processing task
register transfer operations controlled by a sequencing machanism
can be specified as a hardware algorithm t
hat consists of a finite number of procedural steps
which perform the data processing task
flowchart
a convenient way to specify a sequence of procedural steps
& decision paths for an algorithm
ASM chart
form of state
diagram for the
sequential circuit
part of
the control unit
8.2 Algorithmic State Machines Chap.8
8
Binary Multiplier
a copy of the multiplicand is added
to a partial product
& the partial product is stored
in a register for the shift action
the partial product is shifted
to the right
(adder is needed for only n bit
positions instead of 2n bit)
8.3 Decision Example: Binary Multiplier Chap.8
10
counter P
count the number of add-shift or shift actions
initially set to n-1 & counted down
8.3 Decision Example: Binary Multiplier Chap.8
13
[IDLE]:
multiplication process starts wh
en G becomes 1
(ASM moves from state IDLE
to state MUL
0)
[MUL0]:
a decision is made based on Q0
[MUL1]:
a right shift is performed on
C, A, & Q
C 0, A(n-1) C, A sr A, Q
(n-1) A(0), Q sr Q
or C A Q sr C A Q
8.4 Hardwired Control Chap.8
14
a F-F is assigned to
each of the state,
only one of F-F conta
ins a 1, wit
h others 0
8.4 Hardwired Control Chap.8
20
microprogrammed control
a control unit with its binary valu
es stored as words in memory
microinstructions
one or more microinstructions
microprogram
fixed at the time of the system d
esign & stored in ROM
8.7 Microprogrammed Control Chap.8
22
8.7 Microprogramm
ed Control
8.7 Microprogrammed Control Chap.8
24
Program
Instruction
Opcode (Operation code)
2m tane opcode için m bit
kullanmak yeterli.
R1 R2+R3
Implicitly instruction; hedef dolaylı olarak belirtilir;