Question
Assume the MIPS instruction subset is redefinied to contain only the following instructions:
1. Assume that our MIPS instruction subset is redefined to contain only the following instructions: Instruction Instruction fetch Register read & ALU operation Data Memory Register write decode 0 ns R-format 2ns 1 ns lw ns l ns 2 ns 5 ns 1 ns ns 1 ns ns 0 0 bne The table lists the times required for each step within each instruction. Recall that with the single-cycle and multi-cycle datapaths, the steps with 0 duration are not used. But with the pipeline, every instruction must pass through all 5 pipeline stages. Assume that all registers contain 0 initially. The following instruction sequence is to be executed or $2 $0 $0 and $7 $3.$11 sub $8 $8.$3 sw $5.0x800 ($2) lw $7,0x8040$0) add $8, $8, $8 bne $3, $2, 0x040
media%2Fc32%2Fc3296279-ae76-4b13-b6bf-ed
0 0
Add a comment Improve this question Transcribed image text
Answer #1

a) For 4 R type instructions cycles requried = 4 x 4 = 64
For 1 lw instruction the cycles required is = 5 x 1 = 5
For 1 sw instruction the cycles required is = 4 x 1 = 4
For 1 bne instruction the cycles required is = 3 x 1 = 3

Total clock cycles is = 64+5+5+3 = 77 clock cycles

b) The clock duration is determined by the slowest instruction which is lw in this case with time period = 11ns
hence the clock frequency should be 90.09 Mhz

c) For multicycle datapath the clock frequency is determined by the slowest stage which is of 5ns in this case so the
frequency should be 200 Mhz

d) First instruction will take 5 cycle to pass through all stages (as the pipeline is empty ) then each instruction will be computed in each cycle so total cycles taken is 5+7 = 12 clock cycles

Add a comment
Know the answer?
Add Answer to:
Assume the MIPS instruction subset is redefinied to contain only the following instructions: 1. Assume that...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The classic five-stage pipeline MIPS architecture is used to execute the code fragments in this problem....

    The classic five-stage pipeline MIPS architecture is used to execute the code fragments in this problem. Assume the followings: The architecture fully supports forwarding, Register write is done in the first half of the clock cycle; register read is performed in the second half of the clock cycle, Branches are resolved in the third stage of the pipeline and the architecture does not utilize any branch prediction mechanism, Register R4 is initially 100. L1:  lw    R1, 0(R4)   add   R3, R1, R2 sw   ...

  • We’re executing the following instruction sequences on a 5-stage MIPS pipeline. Add R8, R9, R10 Lw...

    We’re executing the following instruction sequences on a 5-stage MIPS pipeline. Add R8, R9, R10 Lw R14, 0x0020(R12) Or R16, R9, R10 Sw R12, 0x0020(R10) Addi R20, R21, 5 (1) At cycle 5, what action (add, sub, and, or) is ALU performing? (2) At cycle 5, what is the action (read, write, no action) of DM? (3) At cycle 5, which registers are being read out? (4) What is the speedup comparing with the unpipelined execution of the same instruction...

  • We’re executing the following instruction sequences on a 5-stage MIPS pipeline. Add R8, R9, R10 Lw...

    We’re executing the following instruction sequences on a 5-stage MIPS pipeline. Add R8, R9, R10 Lw R14, 0x0020(R12) Or R16, R9, R10 Sw R12, 0x0020(R10) Addi R20, R21, 5 (1) At cycle 5, what action (add, sub, and, or) is ALU performing? (2) At cycle 5, what is the action (read, write, no action) of DM? (3) At cycle 5, which registers are being read out? (4) What is the speedup comparing with the unpipelined execution of the same instruction...

  • help Question 11 The classic five-stage pipeline MIPS architecture is used to execute the code fragments...

    help Question 11 The classic five-stage pipeline MIPS architecture is used to execute the code fragments in this problem. Assume the followings: • The architecture fully supports forwarding, • Register write is done in the first half of the clock cycle; register read is performed in the second half of the clock cycle, • Branches are resolved in the third stage of the pipeline and the architecture does not utilize any branch prediction mechanism, • Register R4 is initially 200....

  • The classic five-stage pipeline MIPS architecture is used to execute the code fragments in this problem....

    The classic five-stage pipeline MIPS architecture is used to execute the code fragments in this problem. Assume the followings: • The architecture fully supports forwarding, • Register write is done in the first half of the clock cycle; register read is performed in the second half of the clock cycle, • Branches are resolved in the third stage of the pipeline and the architecture does not utilize any branch prediction mechanism, • Register R4 is initially 200. L1: lw lw...

  • Suppose the times required by each of the functional units of a MIPS processor to do...

    Suppose the times required by each of the functional units of a MIPS processor to do their work are: Instruction Memory: 400 ps Data Memory: 400 ps ALU: 300 ps Register file: 200 ps lgnoring the overhead introduced by the pipeline registers, what is the maximum speedup achieved by the pipelined processor with fetch, decode, execute, memory and write back stages vis-a-vis the single-cycle processor? Give your answer to two decimal places.

  • Usc only the following MIPS instructions for assignment questions 3, 4 and 5: add, sub, addi,...

    Usc only the following MIPS instructions for assignment questions 3, 4 and 5: add, sub, addi, j, beq, bne, lw, sw. You may not need as many lines as we provide space for 4. (4 pts) Write a MIPS program starting at address 20 that writes a value of 488 to register $7. Next, you will test if register $10 is equal to register $7. If the values are equal, continue execution at address 48; otherwise set the value in...

  • Please help me with this question Assume the following instruction is to be executed using the...

    Please help me with this question Assume the following instruction is to be executed using the 5-cycle pipeline architecture explained in class: LW R1, 500 (R2) Assume Reg[R1] = 16, Reg[R2] = 10, and Mem[510] = 15. Fill out the following table, showing the microinstructions executed and the values of the registers at the end of each pipeline cycle. Use "?" for registers whose values are not known in a cycle. Assume this is the only instruction entering into the...

  • The classic five-stage pipeline MIPS architecture is used to execute the code fragments in this problem....

    The classic five-stage pipeline MIPS architecture is used to execute the code fragments in this problem. Assume the followings: • The architecture fully supports forwarding, • Register write is done in the first half of the clock cycle; register read is performed in the second half of the clock cycle, • Branches are resolved in the third stage of the pipeline and the architecture does not utilize any branch prediction mechanism, • Register R4 is initially 100. L1: lw add...

  • (60 points) The following instructions are executed on the 5-stage MIPS pipelined datapath. add r...

    Computer architecture help: (60 points) The following instructions are executed on the 5-stage MIPS pipelined datapath. add r5,r2, r1 lw r3, 4(r5) lw r2, 0(r2) or r3, r5, r3 sw r3, 0(r5) (a) (20 points) List the data hazards in the above code. For each data hazard identified, clearly mark the source and the destination. For example you can say, there is a data hazard from instruction X to instruction Y on register Z. (b) (20 points) Assume there is...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT