Question: Please use the program in to answer the following questions: lw x5, 0(x29) lw x6, 4(x29) add x11, x6, x0 sw x11, 8(x29) beq x5,

Please use the program in to answer the following questions:

lw x5, 0(x29) lw x6, 4(x29) add x11, x6, x0 sw x11, 8(x29) beq x5, x0, Lab6 xor x11, x5, x6 ... Lab:

a)Suppose that register x29 has the initial values of 0x20000410. The values stored in 0x20000410 and 0x20000414 are 7 and 11 respectively. Please: (1) Complete the program in Exercise 1, and run it in Venus simulator. (2) Fill the following table by running the program step by step in Venus.

x5 x6 x11
lw x5, 0(x29) NULL NULL
lw x6, 4(x29) NULL
add x11, x6, x0
sw x11, 8(x29)
beq x5, x0, Lab6
xor x11, x5, x6

b)We can assume that the processor supports the 5-stage pipeline. Please identify all the hazards in the original program and explain what types of hazards they are. c)Please resolve all the hazards (if possible) through stalling. You can draw an execution table to explain your answer. d)Please resolve all the hazards (if possible) through forwarding. Can all the hazards be resolved through forwarding only? Please explain the reason. e)Please resolve the hazards (if possible) through instruction reordering. Can all the hazards be solved through instruction reordering only? Please explain the reason.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!