Presentation is loading. Please wait.

Presentation is loading. Please wait.

(a)add Rd, Rs, RtReg[Rd]=Reg[Rs]+Reg[Rt] (b) lw Rt, offs(Rs)Reg[Rt]=MEM[Reg[Rs]+offs] Instruction (a), all blocks except data memory are used for this.

Similar presentations


Presentation on theme: "(a)add Rd, Rs, RtReg[Rd]=Reg[Rs]+Reg[Rt] (b) lw Rt, offs(Rs)Reg[Rt]=MEM[Reg[Rs]+offs] Instruction (a), all blocks except data memory are used for this."— Presentation transcript:

1

2 (a)add Rd, Rs, RtReg[Rd]=Reg[Rs]+Reg[Rt] (b) lw Rt, offs(Rs)Reg[Rt]=MEM[Reg[Rs]+offs] Instruction (a), all blocks except data memory are used for this instruction Instruction (b), all blocks are used for this instruction

3

4 Setting of the control signals Instru- ction RegDstALUSrcMemto Reg Write Mem Read Mem Write BranchALU Op1 ALU Op0 R type10010001 add 0 add lw011110010 swx1x001010 beqx0x00010 sub 1 sub

5

6

7 I-Mem, Add, Mux, ALU, Regs, D-Mem, Control 400ps, 100ps, 30ps, 120ps, 200ps, 350ps, 100ps 500ps, 150ps, 100ps, 180ps, 220ps, 1000ps, 65ps MIPS AND instruction: I-Mem + Regs + Mux + ALU +Mux + Regs = 400 + 200 + 30+ 120+30+ 200 = 980 ps MIPs LD instruction: I-Mem + Regs + Mux +ALU + D-Mem + Mux + Regs = 400+200+30+120+350+30+200 = 1330 ps MIPS BEQ instruction: I-Mem + Regs + Mux + ALU + Mux = 400 + 200 + 30 + 120 + 30 = 780 ps


Download ppt "(a)add Rd, Rs, RtReg[Rd]=Reg[Rs]+Reg[Rt] (b) lw Rt, offs(Rs)Reg[Rt]=MEM[Reg[Rs]+offs] Instruction (a), all blocks except data memory are used for this."

Similar presentations


Ads by Google