Professional Documents
Culture Documents
Control Unit: and Instruction Process
Control Unit: and Instruction Process
Control Unit
and Instruction Process
Decomposition of a Computer’s Organization LOGO
Computer
Connections
(High/Low-Speed)
Processor + Interface Devices
Memory
www.themegallery.com
Decomposition of a Computer’s Organization LOGO
Processor =
Datapath + Control
Control Datapath
Control Signals Processing of
Orchestrates the
correct sequence data according
of micro- to instructions.
instructions or
Status Signals
micro-stages in
the processing of
instruction.
www.themegallery.com
Decomposition of a Computer’s Organization LOGO
Data Memory
Register
File
Data Mem
Register File
ALU
ALU
O/P Reg.
www.themegallery.com
Decomposition of a Computer’s Organization LOGO
Instruction Memory
Control
Instruction Mem PC IR
Prog Counter
PC Status
Upd.
Instruction Reg Datapath
CU C.U.
Control
www.themegallery.com
Basic Functions of the C.U. LOGO
www.themegallery.com
Basic Functions of the C.U. LOGO
sel=0, ldrb=1 ra rb rc rd
ldra=0 ldrb=1 ldrc=0 ldrd=0
www.themegallery.com
Basic Functions of the C.U. LOGO
r1 r2
Read 0 1
Period Write/Load sel=1 2:1 Mux
Bus
sel=1, ldrb=1, ra rb rc rd
ldrd=1 ldra=0 ldrb=1 ldrc=0 ldrd=1
www.themegallery.com
Instruction Process LOGO
Data Memory
Instruction Memory
PC IR
Register
File
PC
Upd.
C.U.
ALU
O/P Reg.
Source: Patterson Fall 97
www.themegallery.com
Instruction Processing: Phase 1 -- Fetch LOGO
Data Memory
Instruction Memory
Data Memory
Instruction Memory
PC IR
Register
2 File
PC Decode State
Upd. 2
Start State for ADD
Load PC w/ o/p
of Update H/W ALU
[PC <= PC Upd o/p]
O/P Reg.
www.themegallery.com
Instruction Processing:
LOGO
Phase 3 --Read Operands in RF
Data Memory
Instruction Memory
C.U.
Connect regs specified 3
ALU
by source fields of IR to
Load appr. internal regs of
Buses A and B
ALU w/ Bus A, B data O/P Reg.
[r3 => BusA; r7=> BusB]
[rega <= Bus A; regb<= BusB
www.themegallery.com
Instruction Processing:
LOGO
Phase 4 --Execute (in ALU)
Data Memory
Instruction Memory
PC IR
Select ADD FU to Register
connect to ALU o/p reg File
PC
Upd. [ADD o/p => ALU o/p]
4
C.U.
ADD
ALU
4
Load o/p reg O/P Reg.
w/ ALU o/p [o/p reg <= ALU o/p]
www.themegallery.com
Instruction Processing:
LOGO
Phase 5 --Write Back (to RF)
Data Memory
Instruction Memory
PC IR
Register
PC File
Upd.
5
C.U.
ALU
Write data on write
port to reg specified in O/P Reg.
dest filed of IR [r2 <= o/p reg]
www.themegallery.com
LOGO