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, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
You know the right answer?
Consider the following sequence o instructions, and assume that it is executed on a 5-stage pipeline...
Questions
question
Mathematics, 23.06.2021 22:00
question
Mathematics, 23.06.2021 22:00
question
Mathematics, 23.06.2021 22:00
question
Mathematics, 23.06.2021 22:00
question
Mathematics, 23.06.2021 22:00
Questions on the website: 13722367