Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a simple MIPS program (or programs) that experiences a data hazard and a control hazard. (I would work with the code in the pic

Write a simple MIPS program (or programs) that experiences a data hazard and a control hazard. (I would work with the code in the pic below for the data hazard, and a simple control hazard is just a branch instruction where it depends on the result of the line before it). Then show a corrected program in the data hazard case.

image text in transcribed

Program execution order (in instructions) 200 400 600 800 1000 1200 1400 Time add $4, $5, S6 Instruction Reg ALUData access Reg fetch Instruction beq $1, $2,40 Reg ALUData Reg 200 ps fetch ubble bubble Cbubble Cbubble Cbubble or $7, $8, $9 Instruction fetch ReqALUData 400 ps accessS Program execution order (in instructions) 200 400 600 800 1000 1200 1400 Time add $4, $5, S6 Instruction Reg ALUData access Reg fetch Instruction beq $1, $2,40 Reg ALUData Reg 200 ps fetch ubble bubble Cbubble Cbubble Cbubble or $7, $8, $9 Instruction fetch ReqALUData 400 ps accessS

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

101 Database Exercises Text Workbook

Authors: McGraw-Hill

2nd Edition

0028007484, 978-0028007489

More Books

Students also viewed these Databases questions

Question

Find the limit. lim x9 (4x 1)

Answered: 1 week ago

Question

a sin(2x) x Let f(x)=2x+1 In(be)

Answered: 1 week ago