Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Consider the MIPS code below: addi $t0,$t1,1 sub $t1,$so, $s1 add $81,$t0,$t1 xor $t0,$t1,$s1 (a) Assume that we execute the code on a superscalar

image text in transcribed
3. Consider the MIPS code below: addi $t0,$t1,1 sub $t1,$so, $s1 add $81,$t0,$t1 xor $t0,$t1,$s1 (a) Assume that we execute the code on a superscalar MIPS-processor with four func- tional units. What is then the maximal instructions per clock cycle (IPC) for the code snippet? Note that the IPC is computed as the average instructions per clock cycles when executing the above four instructions. (b) What kind of dependency must an out-of-order processor take care of if it switches the order of the addi and the sub instructions? How can the processor resolve the hazard that occurs if the instructions are swapped? Your solution: 3. Consider the MIPS code below: addi $t0,$t1,1 sub $t1,$so, $s1 add $81,$t0,$t1 xor $t0,$t1,$s1 (a) Assume that we execute the code on a superscalar MIPS-processor with four func- tional units. What is then the maximal instructions per clock cycle (IPC) for the code snippet? Note that the IPC is computed as the average instructions per clock cycles when executing the above four instructions. (b) What kind of dependency must an out-of-order processor take care of if it switches the order of the addi and the sub instructions? How can the processor resolve the hazard that occurs if the instructions are swapped? Your solution

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions