Question: Pipelined processor [ 2 5 points ] Please consider the following 7 stage pipelined processor ( depicted below ) . The pipeline is similar to
Pipelined processor points
Please consider the following stage pipelined processor depicted below The pipeline is
similar to the standard stage pipeline with the exception that the icache IF stage and dcache
MEM stage are both pipelined with a latency of cycles. Results from cache reads are
available at the end of cycles. As usual, the branch compare is calculated and the new PC
loaded during the ID stage.
Consider the following codes.
Loop: lw $$
add $$$
add $$$
addi $$
addi $$
bgez $ Loop
a points Identify all readafterwrite dependencies in the code above. You should draw
circles around two registers that exhibit the dependency and connect them with an arrow.
b points Assume the pipelined processor provides full forwarding and a hazard
detection logic. Please fill the multicycle pipelined diagram. Stall cycles can be expressed
by inserting the dash Note that MEM are same as MM
c points To reduce the stall cycle, the compiler can reschedule the code. Please write
down the best optimized code sequence.
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
