标签:style blog http io color for sp 文件 数据
IF |
IF/ID.IR<-MEM[PC]; IF/ID.NPC,PC <- if((EX/MEM.opcode == branch) & EX/MEM.cond) then EX/MEM.ALUOutput else PC+4 |
||
ID |
ID/EX.A<-Regs[IF/ID.IR[rs]]; ;ID/EX.B<- Regs[IF/ID.IR[rt]]; ID/EX.NPC<-IF/ID.NPC; ;ID/EX.IR<- IF/ID.IR ID/EX.Imm<- sign-extend(IF/ID.IR[immediate field]); |
||
ALU instruction | LOAD or Store | Branch instruction | |
EX |
EX/MEM.IR<- ID/EX.IR; EX/MEM.ALUOutput<- ID/EX.A func ID/EX.B; or EX/MEM.ALUOutput<- ID/EX.A op ID/EX.Imm; |
EX/MEM.IR<- ID/EX.IR EX/MEM.ALUOutput<- ID/EX.A+ID/EX.Imm EX/MEM.B<- ID/EX.B |
EX/MEM.ALUOutput<- ID/EX.NPC+(ID/EX.Imm << 2); EX/MEM.cond<- (ID/EX.A == 0) |
MEM |
MEM/WB.IR<- EX/MEM.IR; MEM/WB.ALUOutput<- EX/MEM.ALUOutput; |
MEM/WB.IR<- EX/MEM.IR; MEM/WB.LMD<- Mem[EX/MEM.ALUOoutput];or Mem[EX/MEM.ALUOutput]<- EX/MEM.B;(store) |
|
WB |
Regs[MEM/WB.IR[rd]]<- MEM/WB.ALUOutput; or Regs[MEM/WB.IR[rt]]<- MEM/WB.ALUOutput; |
Regs[MEM/WB.IR[rt]]<- MEM/WB.LMD ;for load only |
标签:style blog http io color for sp 文件 数据
原文地址:http://www.cnblogs.com/li-daphne/p/4067651.html