Question: 1 . 4 . 2 2 [ 5 ] < 4 . 6 > Consider the fragment of MIPS assembly below: sd $s 5 ,

1.4.22[5]<4.6> Consider the fragment of MIPS assembly below:
sd $s5,12($s3)
Id $s5,8($s3)
sub $s4, $s2, $s1
beqz $s4, label
add $s2, $s0, $s1
sub $s2, $s6, $s1
Suppose we modify the pipeline so that it has only one memory (that
handles both instructions and data). In this case, there will be a
structural hazard every time a program needs to fetch an instruction
during the same cycle in which another instruction accesses data.
4.22.1[5]<4.6> Draw a pipeline diagram to show were the code
above will stall.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!