Lecture 8
Lecture 8
Topics covered:
CPU Architecture
Multiple-bus organization
2
Multiple bus organization (contd..)
Incrementer
Bus A Bus B Bus C
PC
Register
file
Constant
MUX A
4
ALU R
Instruction
decoder
IR
3
Multiple bus organization (contd..)
4
Multiple bus organization (contd..)
5
Multiple bus organization (contd..)
Step Action
1. Pass the contents of the PC through ALU and load it into MAR.
Increment PC.
2. Wait for MFC.
3. Load the data received into MAR and transfer to IR.
4. Execution of the instruction is the last step.
6
Control unit
Microprogrammed control:
Control path is designed hierarchically using principles
identical to the CPU design.
Flexible, but slow.
Appropriate for complex machines (e.g. CISC machines)
7
Hardwired control
8
Hardwired control (contd..)
9
Hardwired control (contd..)
Control unit organization
Control signals
10
Hardwired control (contd..)
CLK
Clock Control step Reset
counter
Run End
Control signals
11
Hardwired control (contd..)
Control signals such as Zin, PCout, ADD are generated by encoder block
T4 T
6
T1
12
Hardwired control (contd..)
13
Microprogrammed control
Microprogrammed control:
Control signals are generated by a program similar to
machine language programs.
14
Microprogrammed control (contd..)
MDRout
WMFC
MARin
Select
PCout
R1out
R3out
Micro -
Read
PCin
R1in
Add
End
Z out
IRin
Yin
instruction
Zin
1 0 1 1 1 0 0 0 1 1 1 0 0 0 0 0 0
2 1 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0
3 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0
4 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0
5 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0
6 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0
7 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1
16
Microprogrammed control (contd..)
17
Microprogrammed control (contd..)
Basic organization of a microprogrammed control unit.
Control
store CW
18
Microprogrammed control (contd..)
19
Microprogrammed control (contd..)
Address
Microinstruction
20
Microprogrammed control (contd..)
Control Unit with Conditional Branching in the Microprogram
External
inputs
Starting and
branch address Condition
IR codes
generator
Control
store CW
21
Microprogrammed control (contd..)
22