Question

We execute the following instruction sequence (data hazards may exhibit in the sequence) on a MIPS...

We execute the following instruction sequence (data hazards may exhibit in the sequence) on a MIPS 5-stage pipeline with forwarding and stall features implemented. Draw a graphical representation for the execution of the instruction sequence that clearly shows (1) forwarding path (if any); (2) stall cycles (if any); and (3) total cycles needed for the execution. lw R8, 0x0020(R10) add R9, R8, R10 sw R8, 0x0040(R10)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

CIOCK cycles Cei CC2 CC3 ccЧ. CC5 CCG cc] Сс в IW R8, 20(810) IF EX MEM WB Stall B B CB B (Forwarding add R9, R8, Rio IF ID M

Add a comment
Know the answer?
Add Answer to:
We execute the following instruction sequence (data hazards may exhibit in the sequence) on a MIPS...
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
  • 1. Given the following instruction sequence for the MIPS processor with the standard 5 stage pipeline $10, S0. 4 addi lw S2.0(S10) add sw S2,4(510) $2, $2, $2 Show the data dependences between th...

    1. Given the following instruction sequence for the MIPS processor with the standard 5 stage pipeline $10, S0. 4 addi lw S2.0(S10) add sw S2,4(510) $2, $2, $2 Show the data dependences between the instructions above by drawing arrows between dependent instructions (only show true/data dependencies). a. Assuming forwarding support, in what cycle would the store instruction write back to memory? Show the cycle by cycle execution of the instructions as they execute in the pipeline. Also, show any stalls...

  • 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...

  • Consider a typical MIPS pipeline with branch penalty 1 cycle (i.e. 1 stall cycle if taken.)...

    Consider a typical MIPS pipeline with branch penalty 1 cycle (i.e. 1 stall cycle if taken.) For the following MIPS instruction sequence, for branch taken.             BEQ R14, R12, L                   AND R9, R9, R1 OR R8, R12, R2 SW R12, 0x0004 (R10) L:            ADD R10, R14, R12                 LW R10, 0x0004(R12) branch is taken. instr CC1 CC2 CC3 beq

  • Using graphical representation, show the pipeline execution of the following instructions on the 5-stage pipeline with...

    Using graphical representation, show the pipeline execution of the following instructions on the 5-stage pipeline with hazard detection and forwarding as implemented in Lecture 6. Clearly indicate the forwarding path(s) and stall(s). Note: highlight the forwarding path and use bubbles (or O) for stalls. Lw R20, 0x0100(R18) Add R14, R20, R16 Sw R18, 0x0110(R16) Or R12, R14, R20 Lw R18, 0x0100(R12) instr CC1 CC2 CC3 lw

  • Consider a typical MIPS pipeline with branch penalty 1 cycle (i.e. 1 stall cycle if taken.)...

    Consider a typical MIPS pipeline with branch penalty 1 cycle (i.e. 1 stall cycle if taken.) For the following MIPS instruction sequence, branch not taken;      BEQ R14, R12, L                   AND R9, R9, R1 OR R8, R12, R2 SW R12, 0x0004 (R10) L:            ADD R10, R14, R12                 LW R10, 0x0004(R12) 3. branch is not taken. instr CC1 CC2 CC3 beq

  • Given the following sequence of instructions: lw $s2, 0($s1) //1 lw $s1, 40($s3) //2 sub $s3,...

    Given the following sequence of instructions: lw $s2, 0($s1) //1 lw $s1, 40($s3) //2 sub $s3, $s1, $s2 //3 add $s3, $s2, $s2 //4 or $s4, $s3, $zero //5 sw $s3, 50($s1) //6 a. List the read after write (current instruction is reading certain registers which haven’t been written back yet) data dependencies. As an example , 3 on 1 ($s2) shows instruction 3 has data dependency on instruction 1 since it is reading register $s2. b. Assume the 5...

  • Using a diagram similar to Figure 7.53, show the forwarding and stalls needed to execute the foll...

    Using a diagram similar to Figure 7.53, show the forwarding and stalls needed to execute the following instructions on the pipelined ARM processor. Exercise 7.30 Using a diagram similar to Figure 7.53, show the forwarding and stalls needed to execute the following instructions on the pipelined ARM processor. ADD RO, R4, R9 SUB RO, RO, R2 LDR R1, [RO, #60] AND R2, R1. RO 4 8 Time (cycles) R4 LDR RE 40 R1 DM LDR R1, [R4, #40] |IM RF...

  • (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...

  • Consider a standard 5-stage MIPS pipeline of the type discussed during the class sessions: IF- ID-EX-M-WB....

    Consider a standard 5-stage MIPS pipeline of the type discussed during the class sessions: IF- ID-EX-M-WB. Assume that forwarding is not implemented and only the hazard detection and stall logic is implemented so that all data dependencies are handled by having the pipeline stall until the register fetch will result in the correct data being fetched. Furthermore, assume that the memory is written/updated in the first half of the clock cycle (i.e. on the rising edge of the clock) and...

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