Question

In: Electrical Engineering

Directions: Let’s look at how pipelined execute can be affected by resource hazards, control hazards and...

Directions: Let’s look at how pipelined execute can be affected by resource hazards, control hazards and instruction set architecture. Looking at the following fragment of code:
ADD X5, X2, x1
LDUR X3, [X5, #4]
LDUR X2, [X2, #0]
ORR X3, X5, X3
STUR X3 [X5, #0]

Assume that all of the branches are perfectly predicted as this eliminates all potential control hazards and that no delay slots will be needed. If we only have one memory for both the instructions and data, there is a structural hazard every time that we need to fetch an instruction in the same cycle which another instruction accesses data. To guarantee that we have forward progress, this structural hazard has to be resolved by giving the favor to the instruction that accesses data.

What would be the total execution time of the sequence in the 5-stage pipeline that only has one memory? Explain your answer.

Assume now that all the branches are perfectly predicted as this eliminates all potential control hazards and that no delay slots will be needed. If we change the load/store instructions to use a register without an offset as the addresses, the instructions would no longer need to use the ALU. As a result, the MEM and EX stages can be overlapped and the pipeline would only now have 4 stages.

Change the code to accommodate the changed ISA. What is the speedup achieved in this instruction sequence? Explain your answer.

Show a pipeline execution diagram for these series of instructions (both initial and end) result.

Please answer the questions accordingly there are three of them.

Please make copy paste available

Solutions

Expert Solution


Related Solutions

Discuss the hazards that can effect from control valve failure
Discuss the hazards that can effect from control valve failure
Describe for each category below an example of a test of control you can execute to...
Describe for each category below an example of a test of control you can execute to assess internal controls in the sales cycle. [4 points] Method of testing internal control Example of test of control for sales cycle Inquiry Inspecting documents Observation Re-performance
Describe for each category below an example of a test of control you can execute to...
Describe for each category below an example of a test of control you can execute to assess internal controls in the sales cycle. [4 points] Method of testing internal control Example of test of control for sales cycle Inquiry Inspecting documents Observation Re-performance
Utilization Review and Quality Management Directions As employers look to control health care costs, MCOs have...
Utilization Review and Quality Management Directions As employers look to control health care costs, MCOs have implemented utilization review protocols to ensure the right care is provided to patients at the right time. At the same time, employers, regulatory agencies and accreditation organizations have increased their expectations that the quality of care increases for patients receiving care through the MCO. In no less than 4 and no more than 6 pages, write a paper that addresses the following: • Define...
Let’s look at some gravitational potentials and the density profiles that can generate them. i) For...
Let’s look at some gravitational potentials and the density profiles that can generate them. i) For ρ(r) = ρ◦r ◦^2/r^2 , what is the corresponding gravitational potential? ii) For Φ(r) = −GM/[b + √ (b ^2 + r ^2)], what is the corresponding density profile? iii) For Φ(R, z) = Φ◦ln[ (R ◦^2+R ^2+(z ^2/q^2))/R◦^2 ], what is the corresponding density profile ρ(R, z)? In this expression, the constant q controls the axis ratio of the potential, where q =...
What is an NX (no-execute) bit, and how can it be used to counter buffer overflow...
What is an NX (no-execute) bit, and how can it be used to counter buffer overflow attacks?
Class, let’s brainstorm here. Can you think of one solid internal control and also think of...
Class, let’s brainstorm here. Can you think of one solid internal control and also think of a way that a crafty employee might be able to work around this control?
How has the rise of social media affected the ability of party leaders to control their parties?
How has the rise of social media affected the ability of party leaders to control their parties? In what ways has this new media made it easier to communicate with their partisans? On balance, has the new media been advantageous or disadvantageous to political parties?
How has the COVID-19 pandemic affected the operations/performance of specific financial institutions? Look for articles that...
How has the COVID-19 pandemic affected the operations/performance of specific financial institutions? Look for articles that discuss this issue and summarize your findings. Approximately 200 words.
How can you execute your strategic plan in a way that every member of your organization...
How can you execute your strategic plan in a way that every member of your organization feels like they understand, own, and have a stake in this plan?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT