ECE 338 Parallel Computer Architecture Spring 2022: Basic MIPS Pipeline Review
ECE 338 Parallel Computer Architecture Spring 2022: Basic MIPS Pipeline Review
ECE 338 Parallel Computer Architecture Spring 2022: Basic MIPS Pipeline Review
Nikos Bellas
0 ID/EX
WB EX/MEM
PCSrc
Control M WB MEM/WB
IF/ID EX M WB
4 Add
P Add
C
RegWrite <<2
Read Read
register 1 data 1 MemWrite
ALU
Read Instruction Zero
Read Read
address [31-0] 0
register 2 data 2 Result Address
Write
Data
Instruction register 1 MemToReg
Registers ALUOp memory
memory Write
data ALUSrc Write Read
1
data data
Instr [15 - 0] Sign
RegDst
extend MemRead
Instr [20 - 16] 0
0
Instr [15 - 11]
1
PC
Read Read 0
register 1 data 1 1
Addr Instr
Read 2 ALU
register 2 Zero
ALUSrc
Write Read Result Address
0
Instruction register data 2
1 0 Data
memory
Write Registers memory
2
data 1
Write Read
Instr [15 - 0] 1
RegDst data data
Extend
Rt
0 0
Rd
1 EX/MEM.RegisterRd
Rs
Forwarding
Unit
MEM/WB.RegisterRd
Rs Rt 0 0 WB EX/MEM
M WB MEM/WB
Control 1
EX M WB
PC
IF/ID
Read Read 0
register 1 data 1 1
Addr Instr 2
Read ALU
register 2 Zero
ALUSrc
Write Read Result Address
0
Instruction register data 2
1 0 Data
memory
Write Registers 2 memory
data 1
Write Read
Instr [15 - 0] 1
RegDst data data
Extend
Rt 0
0
Rd
1 EX/MEM.RegisterRd
Rs
Forwarding
Unit
MEM/WB.RegisterRd
0 ID/EX
WB EX/MEM
PCSrc M WB
Control MEM/WB
IF/ID EX M WB
4 Branch
Add
P Add Zero PCSrc
C
RegWrite << 2
Read Read
register 1 data 1 Zero MemWrite
ALU
Read Instruction Read
address [31-0] register 2 0
Read Result Address
data 2
Write
register Data
Instruction 1 MemToReg
Registers ALUOp memory
memory Write
data
ALUSrc Write Read
1
data data
Sign
extend RegDst
MemRead
0
Instr [20 - 16]
0
Instr [15 - 11]
1
IM Reg DM Reg
beq $1, $3, 28