Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are asked to design a small computing system with a customized 17-bits ISA that can execute the following loop program: for (i=0, i Sum

You are asked to design a small computing system with a customized 17-bits ISA that can execute the following loop program:

for (i=0, i

Sum = Sum + 2i

There needs one R-type (Add), two I-type (beq, addi), and one J-type (J) Instructions and four registers $zero, $t0, $t1, $t2 to translate the above program into MIPS Code. Assuming t0, t1, t2 hold the values of x, i and Sum respectively. Here's the MIPS Code for the loop program above.

image text in transcribed

Question: Locate the HAZARDs (Data, Control) if there's any and Solve the Hazards.

LI: add $t1, Szero, Szero beg $t1,$t0, L2 add $t2, St2, $t1 add $12, $12, $t1 addi $12, $12,1 JLI exit... L2

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

Students also viewed these Databases questions

Question

10. Microsoft Corporation

Answered: 1 week ago

Question

4. EMC Corporation

Answered: 1 week ago