subject

In this question we examine how resource hazards, control hazards, and instruction set architecture (isa) design can affect pipelined execution. problems in this exercise refer to the following fragment of mips
code
sw r16,12(r6)
lw r16,8(r6)
beq r5,r4,label #assume r4=! 4
add r5,r1,r4
slt r5,r15,r4

pipeline latencies:
if id ex mem wb
200 120 150 190 100ps

for this problem, assume that all branches are perfectly predicted (this eliminates all control hazards) and that no delay slots are used. if we only have one memory (for both instructions and data), there is a structural hazard every time we need to fetch an instruction in the same cycle in which another instruction accesses data. to guarantee forward progress, this hazard must always be resolved in favor ofthe instruction that accesses data. what is the total execution time of this instruction sequence in the 5- stage pipeline that only has one memory? we have seen that data hazards can be eliminated by adding nops to the code. can you do the same with this structural hazard? why?

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:30, jcazares3558
Awell-diversified portfolio needs about 20-25 stocks from different categories.
Answers: 2
image
Computers and Technology, 22.06.2019 16:30, aryal191
Primary tech skills are skills that are necessary for success in online education
Answers: 3
image
Computers and Technology, 22.06.2019 19:50, rosyposy43
Write a car class having two private member variables called tank and speed. write public methods called pumpgas and gofast. the method pumpgas gets an integer for gas that must be pumped. that value needs to be added to tank (no more than 20 gallons). it must return the amount of gas that is purchased ($4 per gallon). the method gofast should increase the speed by 5 each time it is called. write a constructor for the above class that initialized both variables to zero. write a tostring to display both the tank and speed when the car is printed. modify the car class to implement the interface comparable and an interface called carinter having the public methods in carinter. write the main program to create an array of size 5 of type car. create 5 car objects having each location of the array to refer to one of the cars. test the pumpgas, gofast, equals method on the array items. write an enhanced loop to print all the car values (using a tostring written last time).write a generic method to find the minimum of four items. pass int, double, char, string and car objects to test this method.
Answers: 1
image
Computers and Technology, 22.06.2019 22:00, mrnotsosmart744
Discuss the ways in which electronic information associated with payments is addressed in terms of security. include encryption, secure sockets layers, and secure electronic transactions in your discussion. are there any other ways that consumers and businesses can keep their payment information secure in an electronic commerce environment? do you feel that your information is safe when conducting electronic business? why or why not?
Answers: 1
You know the right answer?
In this question we examine how resource hazards, control hazards, and instruction set architecture...

Questions in other subjects:

Konu
Mathematics, 17.01.2021 20:40
Konu
Mathematics, 17.01.2021 20:40