Question: Question 2 ( 4 0 % ) - Consider a MIPS processor that uses the five - stage pipeline described in class ( IF ,
Question Consider a MIPS processor that uses the fivestage pipeline
described in class IF ID EXE, MEM, WB The processor is used to execute the
following sequence of instructions:
$$
$$
ADDI $ $
AND $ $ $
ADD $ $ $
Pipelined execution: assume that the clock cycle is
A Indicate the data dependences that result due to the execution of this
instructions sequence. The data dependency occurs when an instruction
produces a value in a given pipeline stage, and a subsequent instruction
consumes that value in another pipeline stage.
B Which hazard type occurs due to the data dependency described in A
C Show the pipelined execution if the pipeline has no bypassing, and the registers
cannot be read and written in the same clock cycle. Compute the total
execution time. To answer this question, and the other similar questions, you
need to fill the chart below. You can expand the chart vertically and horizontally
as needed. Make sure to insert the NOP instructions when needed.
D Show the pipelined execution if the pipeline has no bypassing, and the registers
can be read and written in the same clock cycle. Compute the total execution
time.
E Show the pipelined execution if the pipeline supports bypassing, and the
registers can be read and written in the same clock cycle. Compute the total
execution time.
F Compute the speedup achieved by the pipelined execution that implements
bypassing and allows the registers to read and write in the same clock cycle
point E compared to the pipelined execution that does not implement
bypassing and does not allow the registers to read and write in the same clock
cycle point C
Serial execution:
G Assume that of all execution stages IF ID EXE, MEM, WB requires the same
time ns What is the length of the clock cycle that should be used if a single
cycle processor ie unpipelined processor is used to run the instructions
listed above instead of the pipelined processor? Also, Compute the total
execution time that is required to run the five instructions listed above.
What is the speedup achieved by the pipelined execution that implements
bypassing and allows the registers to read and write in the same clock cycle
point E compared to the unpipelined execution point G
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
