Question

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

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

pipeline diagram using Forwar sarding instr 2 3 4 5 7 9 10 12 13 Iw IF ID Exemem WB Add IF ID o Exe Mem WB SW IF ID O EXe mem

Add a comment
Know the answer?
Add Answer to:
Using graphical representation, show the pipeline execution of the following instructions on the 5-stage pipeline with...
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
  • Problem 1 (5 points) Using graphical representation, show the pipeline execution of the following instructions on...

    Problem 1 (5 points) Using graphical representation, show the pipeline execution of the following instructions on the 5-stage pipeline as given in the Lecture 7. Lxx R20, 0x0100(R18) Add R20, R18, R16 Sw, R22, 0x0110(R16) cc1 CC2 Instr lwy Also answer the following questions: (1) How many cycles needed for the execution of these three instructions? (2) What is ALU doing on cycle 3, 4, 5 respectively? (3) What is the memory action in cycle 4, 5, 6 respectively?

  • 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

  • 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

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

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

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

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

  • Given the following sequence of instructions to be executed on a 5-stage pipelined datapath as decrypted...

    Given the following sequence of instructions to be executed on a 5-stage pipelined datapath as decrypted in our textbook: I1: add $8, $12,$10 12: SW $9,0 ($8) 13: lw $8,4($9) I4: and $12,$12,$8 15: SW $8,0($9) a. List true dependencies in the given sequence in the format of (register involved producer instruction, consumer instruction). Use labels to indicate instructions For example: ($0, I10, I11) means a true dependence between instruction I10 and I11: value of register $0 is generated by...

  • 6) Given the MIPS five stage pipeline and the following instruction sets: [30 pts, 10 pts each] i...

    Computer organization 6) Given the MIPS five stage pipeline and the following instruction sets: [30 pts, 10 pts each] instruction set #1 1w $1, 40 ($6) add $2, $3, $1 add $1, $6, $4 and $1, $1, $4 sw $2, 20 ($4) instruction set #2 add $1, $5, $3 sw$1, 0 ($2) lw $1, 4 ($2) add $5, $5, $1 sw$1, 8 ($2) a) If there is no forwarding or hazard detection, write the instructions (same order) and insert nop's...

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