Lec 13
Lec 13
27-Nov-06 (1)
27-Nov-06 (2)
CSC2510 - Computer
Organization
Lecture 13: Revision
Processor Unit
Philip Leong
27-Nov-06 (3)
27-Nov-06 (4)
Execution
Execution
Internal processor
bus
Step
Action
Control signals
PC
Address
lines
MAR
Instruction
MDR out , IR in
decoder and
control logic
Memory
bus
R1out , Y in , WMF C
MDR
Data
lines
IR
Y
R0
Constant 4
Select
Memory-bus
data lines
MDRoutE
ALU
control
lines
Internal processo
bus
MUX
Add
MDRout
Sub
MDR
R( n - 1)
ALU
Carry-in
XOR
TEMP
MDR inE
MDRin
27-Nov-06 (5)
Branch Instructions
Step Action
1
MDR out , IR in
Offset-field-of-IRout, Add, Z in
27-Nov-06 (6)
Multiple Buses
One disadvantage of our single bus scheme is that only
one data item can be transferred over the bus per cycle
A solution is multiple internal buses
All registers combined into a register file with 3 ports
Why are there 2 outputs?
What is the input for?
What does 3 port mean?
27-Nov-06
27-Nov-06 (7)
Bus B
27-Nov-06 (8)
Hardwired Control
Bus C
Incrementer
PC
Hardwired control
Microprogrammed control
Register
file
A
ALU
Step Action
Instruction
decoder
WMFC
CLK
IR
MDR
Decoder/
encoder
IR
Condition
codes
Control signals
MAR
Memory bus
data lines
Control step
counter
External
inputs
Clock
A hardwired control is
called a finite state
machine
Constant 4
MUX
Address
lines
27-Nov-06 (9)
27-Nov-06 (10)
Microprogrammed
Control Unit
Microprogrammed Control
Micro instruction
PCout
MAR in
Read
MDRout
IRin
Yin
Select
Add
Zin
Z out
R1out
R1in
R3out
WMFC
End
PCin
A microprogram counter is
used to read control words
sequentially from control store
Every time new instruction
loaded into the IR, output of
Starting Address Generator
loaded into the uPC
uPC automatically
incremented by clock causing
successive microinstructions to
be read from the control store
Control signals delivered to
various parts of the processor
in the correct sequence
This scheme is not able to
change its sequence as a
result of other inputs such as
the condition code e.g. Branch
<0
IR
Starting
address
generator
Clock
PC
Control
store
27-Nov-06 (11)
Microprogrammed
Control Unit
0
PCout , MAR
Z out , PC in , Y in , WMF C
MDR out , IR in
in
27-Nov-06 (12)
Scheme to allow
Conditional Branching
Starting and branch
address generator
Address Microinstruction
, Read, Select4, Add, Z in
3
Branch to starting addressof appropriate microroutine
. ... .. ... ... .. ... .. ... ... .. ... ... .. ... .. ... ... .. ... .. ... ... .. ... ..
25
26
Offset-field-of-IR
27
Z out , PC in , End
out
, SelectY, Add, Z in
CW
External
inputs
IR
Starting and
branch address
generator
Condition
codes
Clock
PC
Control
store
CW