Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started