Question: Problem 1 Consider the following MIPS code. begin { tabular } { lll } IO: & Iw $s 3 , 0 (
Problem
Consider the following MIPS code.
begintabularlll
IO: & Iw $s$s & # LDW $s M$s
I: & Iw $s$s & #LDW $s M$s M$s
I: & add $s$s$s & # ADD $s$s$s
I: & beq $s$s L & # IF $s$s goto L
I: & sw $s$s & #STW M$ s$s
I: L: sw $s$s & #STW M$s$s
endtabular
In the absence of hazards, a new instruction can be fed to the pipeline every cycle.
How many cycles does this code take to complete? Use the table below.
Problem
Consider the following MIPS code.
IO: Iw $s$s # LDW $s M$s I: Iw $s$s #LDW $s M$s M$s I: add $s$s$s # ADD $s $s $s I: beq $s$s L # IF $s $s goto L I: sw $s$s #STW M$ s $s I: L: sw $s$s #STW M$s $s
In the absence of hazards, a new instruction can be fed to the pipeline every cycle.
How many cycles does this code take to complete? Use the table below.
B Suppose that the MIPS processor with the stage pipeline from part A In addition, suppose that:
The instruction and data cache are split allowing the overlap of instruction fetch with readwrite data to the cache
The pipeline has hazard detection and forwarding.
How many cycles does this code take to complete? Use the table below.
cycles
C Suppose now that the Execution stage of the pipeline is split into two stages E and E and that instruction i cannot use E until instruction i released E or more general E cannot be used again until
E is finished processing. Using the assumptions from part B how many cycles does this code take to complete? Use the table below.
PLEASE SOLVE PARTS A B AND C SPECIFY BOTH WHICH ROW AND COLUMN THE INSTRUCTION BELONGS IN ie: WB T I
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
