subject

Or this problem you will calculate the accuracy and performance impacts of branch prediction techniques for a specific situation: consider our pipelined processor, assume branch outcome is determined in the reg stage, and assume branch prediction (and instruction cancelling, when appropriate) is used to resolve control hazards. also assume: branch instructions are 15% of the executed instructions in assembly language programs. the remainder are instructions that perform calculations (data instructions). data hazards affect both branch and data instruction performance. consider data instructions and branch instructions that do not have control hazard delays (correctly predicted branch instructions). assume these instructions have an average cpi of 1.25 (due to data hazards). control hazards also affect performance, but i'm not going to directly give you this number. instead, consider all instructions (including incorrectly predicted branches). assume overall average cpi for all instructions is 1.30. for this problem, don't worry about jump instructions. for control hazards, you will need to consider delays imposed by incorrectly predicted branches. (a) what is the accuracy of the branch predictor? hints: write the algebra formula for a weighted average using the information above. the number of cycles for branch instructions with failed predictions is: 1.2 + some stall penalties). you should have one unknown. (b) assume the branch predictor always predicted that branches are taken. for this situation, would it be better for the branch predictor to predict that branches are not taken? show the math that justifies your answer. (c) advanced: would performance improve if the branch predictor changed future predictions when it is wrong? (if it predicted 'not taken' but the branch was taken, it would predict 'taken' until it is wrong again.) either show the math that justifies your answer, or establish a sound argument for your answer.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr.nextdouble(); minutestraveled = scnr.nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system.out.println("miles: " + milestraveled); } }
Answers: 2
question
Computers and Technology, 23.06.2019 13:00
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Which of the following would not be considered a pc? a. mainframe b. desktop c. tablet pc d. laptop
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
The initial tableau of a linear programming problem is given. use the simplex method to solve it. x 1 x 2 x 3 s 1 s 2 z 1 2 4 1 0 0 8 3 4 1 0 1 0 10 minus3 minus12 1 0 0 1 0 the maximum is nothing when x 1equals nothing, x 2equals nothing, x 3equals nothing, s 1equals3, and s 2equals0. (be sure to simplify to lowest terms if necessary.)
Answers: 2
You know the right answer?
Or this problem you will calculate the accuracy and performance impacts of branch prediction techniq...
Questions
question
Health, 23.03.2021 23:00