Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Consider the following MIPS Assembly code 16 lw 220 sub. 24 beq 28 add 32 sub 36 sub 40 and 44 beq 948

1. Consider the following MIPS Assembly code 16 lw 220 sub. 24 beq 28 add 32 sub 36 sub 40 and 44 beq 948 add

1. Consider the following MIPS Assembly code 16 lw 220 sub. 24 beq 28 add 32 sub 36 sub 40 and 44 beq 948 add 10 52 or 1156 add 12 60 slt 820, 7(810) $11, $20, $16 $12, $21, 4 $24, 80, $2 1 $10, $4, 88 $3, $10, $1 $22, 82, 85 $24, 820, -4 $4, $24, $12 $26 $5, $16 $4, $14, $12 $5, $26, $7 [15] (a) Identify all the data dependencies in the above code. (Write instruction numbers and register number) [3] (b) Which dependencies are data hazards that will be resolved by forwarding and which dependencies are data hazards that will cause a stall? [3] [2] [2] (c) Write the values of ForwardA and ForwardB for each forwarding. (d) Find the branch targets for both branch instructions. (e) If the branch execution is still in the MEM stage, how many instructions (total) will be flushed, if the branch is taken? Also, write the instruction numbers which will be flushed. [2] (f) If the branch execution is in the ID stage, how many instructions (total) will be flushed, if the branch is taken? Also, write the instruction numbers which will be flushed. (g) Identify error(s) in the preceding code, if any. [2] [1]

Step by Step Solution

3.53 Rating (153 Votes )

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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Computer Network questions