Computers and Technology
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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:30, ghazanfarwaheed7967
Auniversity wants to install a client-server network. which feature do you think is important for them as they set up the network? sending email blocking multiple people to use the same file low security low set up cost limited access to files
Answers: 1
image
Computers and Technology, 22.06.2019 15:10, passions3534ovf6dt
Which activity should be part of a long-term plan to positively affect yourhealth? oa. wearing regular clothing when handling toxinsob. not worrying about secondhand smokeoc. avoiding excessive exposure to sunlightod. drinking only well water
Answers: 1
image
Computers and Technology, 22.06.2019 16:30, buky0910p6db44
Corey set up his presentation for delivery to his team. the information he had to convey was critical to their job performance. he knew he would need a lot of time to explain each point
Answers: 3
image
Computers and Technology, 24.06.2019 11:30, smann211
Convert 11001110(acdd notation) into decimal
Answers: 2
Do you know the correct answer?
Consider the following sequence o instructions, and assume that it is executed on a 5-stage pipeline...

Questions in other subjects: