subject
Computers and Technology, 28.05.2021 16:40 Geo777

Consider the following sequence o instructions, and assume that it is executed on a 5-stage pipelined data path: Add r5,r2,r1 #l1
lw r3, 4(r5) #l2
Or r3,r5,r3 #l3
lw r2 0(r2) #l4
Sw r3, 0(r5) #l5

a. List the read-after-write (current instruction is reading certain registers which haven't been written back yet) data dependencies. As an example, 2 on 1 (r5) shows instruction 2 has data dependency on instruction 1 since it is reading register År5.
b. Assume the 5-stage MIPS pipeline with no forwarding, and each stage takes 1 cycle. Instead of inserting NOPs, you let the processor stall on hazards. How many times does the processor stall? What is the total number of stall cycles?
c. What is the execution time (in cycles) for the whole program? Sketch a diagram to explain your answer.
d. Assume the 5-stage MIPS pipeline with full forwarding. Insert NOPs to eliminate the hazards.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
You know the right answer?
Consider the following sequence o instructions, and assume that it is executed on a 5-stage pipeline...
Questions
question
Chemistry, 30.11.2020 22:00
question
Mathematics, 30.11.2020 22:00
question
Mathematics, 30.11.2020 22:00
question
Chemistry, 30.11.2020 22:00
Questions on the website: 13722359