Answered step by step
Verified Expert Solution
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.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started