Professional Documents
Culture Documents
Processor: Datapath
and
Control
Implementation of
Instruction sets
PC
Instruction Memory
rt
Need of Multiplexors
The arithmetic and logical instructions
use the ALU with inputs coming from
two registers.The memory instructions
use ALU to do address calculation. 1
input – register , 2nd input – sign
extend.
The value stored into destination register
comes from ALU(R Type instructions) or
memory (load).
Steps in executing branches
rs
rt
rd
R-Type Instruction Path
Lw instruction datapath
Sw instruction Datapath
beq instruction datapath
J - Format
31 26 25 o
Op address
For j instruction
Target address = PC[31-28] | | (offset
address << 2)
Datapath with control unit
ALU control Function
lines
0000 AND
0001
0010
0110
0111
1100