Basic Datapath
MemData
Read
address
Memory
Write
address
Write
data
Read
register1
Read
register2
Write
register
Write
data
Registers
Read
data 1
Read
data 2
Zero
ALU
result
Instruction
register
Ins [25-21]
Ins [20-16]
Ins [15-0]
PC
M
u
x
0
1
M
u
x
0
1
M
u
x
0
1
M
u
x
0
1
Sign
extend
Shift
left2
2
M
u
x
0
3
1
2
4
ALU
Control
MemtoReg
ALUOp
ALUSelB
IorD
MemRead
MemWrite
IRWrite
RegDst
RegWrite
ALUSelA
Memory
data
register
B
A
A
L
U
O
u
t
PCWrite
M
u
x
2
1
PCSource
0
Shift
left2
Add registers: IR, MDR, A, B, ALUOut
Previous slide
Next slide
Back to first slide
View graphic version