Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the MIPS code below, answer the questions. ADDI T1, TO, O LW T2, 100(TO) LW T7, 220(TO) ADDI T3, TO, 50 LOOP 1: SLLI

image text in transcribed

Given the MIPS code below, answer the questions. ADDI T1, TO, O LW T2, 100(TO) LW T7, 220(TO) ADDI T3, TO, 50 LOOP 1: SLLI T5, T1, 2 LW T6, 1200(T5) ADD T6, T6, T2 ADD T6, T6, T7 SW 0(T5), T6 ADDI R1, R1,1 SLE T4, T1, T3 BNEZ T4, LOOP1 LOOP2: SW 10000(TO), T1 a) Find data hazards which can be overcome by forwarding methods. (5pt) b) Is there any stall despite forwarding method is applied? If yes, is it possible to overcome that? (5pt) c) Does any control hazard exist? If yes, what would the solution be? (10pt) d) What is the number of clock cycles if this code is executed when the loop count is 50? (10pt) Given the MIPS code below, answer the questions. ADDI T1, TO, O LW T2, 100(TO) LW T7, 220(TO) ADDI T3, TO, 50 LOOP 1: SLLI T5, T1, 2 LW T6, 1200(T5) ADD T6, T6, T2 ADD T6, T6, T7 SW 0(T5), T6 ADDI R1, R1,1 SLE T4, T1, T3 BNEZ T4, LOOP1 LOOP2: SW 10000(TO), T1 a) Find data hazards which can be overcome by forwarding methods. (5pt) b) Is there any stall despite forwarding method is applied? If yes, is it possible to overcome that? (5pt) c) Does any control hazard exist? If yes, what would the solution be? (10pt) d) What is the number of clock cycles if this code is executed when the loop count is 50? (10pt)

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

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago