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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:30
Data for which there is temporarily no room in ram is diverted to where on your computer? question 9 options: a) the paging file on the hard drive b) the system file on the hard drive c) the memory file on the hard drive d) the cpu cache
Answers: 2
question
Computers and Technology, 22.06.2019 13:30
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
You know the right answer?
In this question we examine how resource hazards, control hazards, and instruction set architecture...
Questions
question
Mathematics, 19.02.2020 19:01
question
Chemistry, 19.02.2020 19:01
question
Biology, 19.02.2020 19:02
Questions on the website: 13722367