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 10:00
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
Annie is creating a corporate report for a company’s annual meeting. in the report, she wants to add the signature of various department heads. which device can annie use to capture signatures to include in the report? a. printer b. monitor c. e-reader d. digitizing tablet
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Working on this program in python 3.7: a year in the modern gregorian calendar consists of 365 days. in reality, the earth takes longer to rotate around the sun. to account for the difference in time, every 4 years, a leap year takes place. a leap year is when a year has 366 days: an extra day, february 29th. the requirements for a given year to be a leap year are: 1) the year must be divisible by 42) if the year is a century year (1700, 1800, the year must be evenly divisible by 400some example leap years are 1600, 1712, and 2016.write a program that takes in a year and determines whether that year is a leap year.ex: if the input is 1712, the output is: 1712 is a leap year. ex: if the input is 1913, the output is: 1913 is not a leap year. your program must define and call the function isleapyear(useryear). the function should return true if the input year is a leap year and false otherwise.
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
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, 25.12.2020 23:20
question
SAT, 25.12.2020 23:20
question
Mathematics, 25.12.2020 23:20
question
Mathematics, 25.12.2020 23:20
question
Biology, 25.12.2020 23:20
Questions on the website: 13722363