Question
Computer architecture

n Question 11 This code runs on the five-stage pipelined datapath we studied. add to, ti, t3 sub t3, te, t4 or ts, to, t6 For
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The above code runs on pipelined data path.we need to determine the action that was needed.

1.Forward WB->Ex

2.no forwarding needed

3.Forward MeM-->ID

If needed explanation plz comment i will explain you .ok thanks byee

Add a comment
Know the answer?
Add Answer to:
Computer architecture n Question 11 This code runs on the five-stage pipelined datapath we studied. add...
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 datapath for 5-stage MIPS pipelined architecture is given below. IFAID ID/EX EX/MEM MEM/WB > Add...

    The datapath for 5-stage MIPS pipelined architecture is given below. IFAID ID/EX EX/MEM MEM/WB > Add Add Add result Shift left 2 Lo-o PC Address Read register 1 Read Read data Instruction memory register Registers Read SALU Zero ALU result Read Address data data 2 Write register Write data Data memory Write data 16 Sign- extend Choose all the components that generate a useful result during the execution of the following instruction: ADD R1, R2, R3 O 1. Program Counter...

  • The datapath for 5-stage MIPS pipelined architecture is given below. IF/D ID/EX EX/MEM MEM/WB >Add Add...

    The datapath for 5-stage MIPS pipelined architecture is given below. IF/D ID/EX EX/MEM MEM/WB >Add Add Add result Shift left 2 Address Instruction memory Read Read register 1 data Read register "Registers Read Write data 2 register Write data SALU ALU result Address Read data Data memory Write data 16 Sign- 32 extend Choose all the components that generate a useful result during the execution of the following instruction: Choose all the components that generate a useful result during the...

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

  • Computer architecture n Question 37 The pipelined datapath we studied is called the rigid pipeline. What...

    Computer architecture n Question 37 The pipelined datapath we studied is called the rigid pipeline. What are its shortcomings? (check all that are true) It is limited to IPC-1 (Instruction Per Cycle) There's only one instruction in the datapath at any moment It cannot do out-of-order execution O Data dependences must be resolved by the compiler A stall propagates to earlier stages

  • c. The classic five-stage pipeline MIPS architecture is used to execute the code fragments. Assume the...

    c. The classic five-stage pipeline MIPS architecture is used to execute the code fragments. Assume the followings: 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 second stage of the pipeline and the architecture does not utilize any branch prediction mechanism Forwarding is fully supported Clock Cycle à 1 2 3 4 5 6 7 8 9 10 11 12...

  • 2. Consider executing the following code on the five-stage pipelined datapath: add $1, $2, $3 sub...

    2. Consider executing the following code on the five-stage pipelined datapath: add $1, $2, $3 sub $2 $1, Thoora Tropi and $3, $2 $1 or $9, $8, $2 -nepez SW $9, 100($17) lw $9, 100($18) (a) Draw a multiple-clock-cycle pipeline diagram of six instructions in this code, and mark all ti data dependence lines among the instructions in the figure. (109 CES MEMWB) pin E 1 (WVB (b) Indentify all of the data dependencies in this code. Please point out...

  • The following MIPS program is to be run on a MIPS pipeline processor of 5 stages...

    The following MIPS program is to be run on a MIPS pipeline processor of 5 stages (IF-ID-EX-MEM-WB). Work out and diagram the optimal pipeline schedule using full forwarding from EX or MEM stages to any other stage, Draw the pipeline execution diagram for this code and then compute the pipeline CPI: addi $t6, $t6, 10 sub $t5, $t6, $t4 srl $t5, $t5, 2 sw $t5, 20($t5) lw $t2, 0($t6) add $t7, $t2, $t3 beq $t5, $t7, End

  • Ch04.2. [3 points] Consider the following assembly language code: I0: ADD R4 R1RO I1: SUB R9R3 R4...

    Ch04.2. [3 points] Consider the following assembly language code: I0: ADD R4 R1RO I1: SUB R9R3 R4; I2: ADD R4 - R5+R6 I3: LDW R2MEMIR3100]; 14: LDW R2 = MEM [R2 + 0]; 15: STW MEM [R4 + 100] = R3 ; I6: AND R2R2 & R1; 17: BEQ R9R1, Target; I8: AND R9 R9&R1 Consider a pipeline with forwarding, hazard detection, and 1 delay slot for branches. The pipeline is the typical 5-stage IF, ID, EX, MEM, WB MIPS...

  • Question 12 The datapath for 5-stage MIPS pipelined architecture is given below. IFAD IDEX EX/MEM MEMWB...

    Question 12 The datapath for 5-stage MIPS pipelined architecture is given below. IFAD IDEX EX/MEM MEMWB Add 4 Add Add result Shift left 2 PC Address Instruction ALU Instruction memory Read register 1 Read data 1 Read register 2 "Registers Read Write data 2 register Write data Zero ALU result Address Read data Data memory Write data 16 32 Sign- extend Choose all the components that generate a useful result during the execution of the following instruction: LW R1, 8(R2)...

  • The datapath for 5-stage MIPS pipelined architecture is given below. VAD IDEX EXMEM MEMWI Add Add...

    The datapath for 5-stage MIPS pipelined architecture is given below. VAD IDEX EXMEM MEMWI Add Add Ads Shit wef2 Address Read Read register Road Zero Instruction memory w gier rond Address data register Write data 0 memory w extend Choose all the components that generate a useful result during the execution of the following instruction: LW R1, B(R2) 1. Program Counter 2. Adder in IF stage 3. Instruction Memory 4. Register File Choose all the components that generate a useful...

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