













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














Instruction memory
Read address
Instruction [31–0]
Instruction [20 16]
Instruction [25 21]
Add
Instruction [5 0]
MemtoReg ALUOp MemWrite
RegWrite
MemRead
Branch
RegDst
ALUSrc
Instruction [31 26]
Instruction [15 0]
u x
Control
Add ALU result
u x
Registers Write register
Write data
Read data 1
Read data 2
Read register 1
Read register 2
Sign extend
u x 1
result
Zero
PCSrc
Data memory Write data
Read data M u x
Instruction [15 11]
control
Shift left 2
Address
Shift left 2
u x
Registers Write register
Write data
Read data 1
Read data 2
Read register 1
Read register 2
Instruction [15–11]
u x
u x
Instruction [15–0]
Sign extend
Instruction [25–21]
Instruction [20–16]
Instruction [15–0] Instruction register
control
result
Zero
Memory data register
IorD MemRead MemWrite MemtoReg
PCWriteCond PCWrite
IRWrite
ALUOp ALUSrcB
ALUSrcA
RegDst
PCSource
RegWrite
Control
Outputs
Op [5–0]
Instruction [31-26]
Instruction [5–0]
M u x
0
2
Jump Instruction [25–0] (^26) Shift^28 address [31-0] left 2
PC [31-28]
u x
u x
ALUOut
Memory MemData
Write data
Address
Shift left 2
u x
Registers Write register
Write data
Read data 1
Read data 2
Read register 1
Read register 2
Instruction [15–11]
u x
u x
Instruction [15–0]
Sign extend
Instruction [25–21]
Instruction [20–16]
Instruction [15–0] Instruction register
control
result
Zero
Memory data register
IorD MemRead MemWrite MemtoReg
PCWriteCond PCWrite
IRWrite
ALUOp ALUSrcB
ALUSrcA
RegDst
PCSource
RegWrite
Control
Outputs
Op [5–0]
Instruction [31-26]
Instruction [5–0]
M u x
0
2
Jump Instruction [25–0] (^26) Shift^28 address [31-0] left 2
PC [31-28]
u x
u x
ALUOut
Memory MemData
Write data
Address
Shift left 2
u x
Registers Write register
Write data
Read data 1
Read data 2
Read register 1
Read register 2
Instruction [15–11]
u x
u x
Instruction [15–0]
Sign extend
Instruction [25–21]
Instruction [20–16]
Instruction [15–0] Instruction register
control
result
Zero
Memory data register
IorD MemRead MemWrite MemtoReg
PCWriteCond PCWrite
IRWrite
ALUOp ALUSrcB
ALUSrcA
RegDst
PCSource
RegWrite
Control
Outputs
Op [5–0]
Instruction [31-26]
Instruction [5–0]
M u x
0
2
Jump Instruction [25–0] (^26) Shift^28 address [31-0] left 2
PC [31-28]
u x
u x
ALUOut
Memory MemData
Write data
Address
Opcode = LW or SW
Shift left 2
u x
Registers Write register
Write data
Read data 1
Read data 2
Read register 1
Read register 2
Instruction [15–11]
u x
u x
Instruction [15–0]
Sign extend
Instruction [25–21]
Instruction [20–16]
Instruction [15–0] Instruction register
control
result
Zero
Memory data register
IorD MemRead
MemWrite MemtoReg
PCWriteCond PCWrite
IRWrite
ALUOp
ALUSrcB ALUSrcA
RegDst
PCSource
RegWrite
Control
Outputs
Op [5–0]
Instruction [31-26]
Instruction [5–0]
M u x
0
2
Jump Instruction [25–0] 26 28 address [31-0] Shift left 2
PC [31-28]
u x
u x
ALUOut
Memory MemData
Write data
Address
Shift left 2
u x
Registers Write register
Write data
Read data 1
Read data 2
Read register 1
Read register 2
Instruction [15–11]
u x
u x
Instruction [15–0]
Sign extend
Instruction [25–21]
Instruction [20–16]
Instruction [15–0] Instruction register
control
result
Zero
Memory data register
IorD MemRead MemWrite MemtoReg
PCWriteCond PCWrite
IRWrite
ALUOp ALUSrcB
ALUSrcA
RegDst
PCSource
RegWrite
Control
Outputs
Op [5–0]
Instruction [31-26]
Instruction [5–0]
M u x
0
2
Jump Instruction [25–0] (^26) Shift^28 address [31-0] left 2
PC [31-28]
u x
u x
ALUOut
Memory MemData
Write data
Address
Shift left 2
u x
Registers Write register
Write data
Read data 1
Read data 2
Read register 1
Read register 2
Instruction [15–11]
u x
u x
Instruction [15–0]
Sign extend
Instruction [25–21]
Instruction [20–16]
Instruction [15–0] Instruction register
control
result
Zero
Memory data register
IorD MemRead MemWrite MemtoReg
PCWriteCond PCWrite
IRWrite
ALUOp ALUSrcB
ALUSrcA
RegDst
PCSource
RegWrite
Control
Outputs
Op [5–0]
Instruction [31-26]
Instruction [5–0]
M u x
0
2
Jump Instruction [25–0] (^26) Shift^28 address [31-0] left 2
PC [31-28]
u x
u x
ALUOut
Memory MemData
Write data
Address
Shift left 2
u x
Registers Write register
Write data
Read data 1
Read data 2
Read register 1
Read register 2
Instruction [15–11]
u x
u x
Instruction [15–0]
Sign extend
Instruction [25–21]
Instruction [20–16]
Instruction [15–0] Instruction register
control
result
Zero
Memory data register
IorD MemRead MemWrite MemtoReg
PCWriteCond PCWrite
IRWrite
ALUOp ALUSrcB
ALUSrcA
RegDst
PCSource
RegWrite
Control
Outputs
Op [5–0]
Instruction [31-26]
Instruction [5–0]
M u x
0
2
Jump Instruction [25–0] (^26) Shift^28 address [31-0] left 2
PC [31-28]
u x
u x
ALUOut
Memory MemData
Write data
Address
Shift left 2
u x
Registers Write register
Write data
Read data 1
Read data 2
Read register 1
Read register 2
Instruction [15–11]
u x
u x
Instruction [15–0]
Sign extend
Instruction [25–21]
Instruction [20–16]
Instruction [15–0] Instruction register
control
result
Zero
Memory data register
IorD MemRead MemWrite MemtoReg
PCWriteCond PCWrite
IRWrite
ALUOp ALUSrcB
ALUSrcA
RegDst
PCSource
RegWrite
Control
Outputs
Op [5–0]
Instruction [31-26]
Instruction [5–0]
M u x
0
2
Jump Instruction [25–0] (^26) Shift^28 address [31-0] left 2
PC [31-28]
u x
u x
ALUOut
Memory MemData
Write data
Address