题目
数值题
Speedup of perfect predictor is
查看解析
标准答案
Please login to view
思路分析
The question presented is a numerical one: 'Speedup of perfect predictor is' with an answer of 2.33 provided. Since there are no multiple choices listed, we can still reason about how to determine the speedup in the context of a perfect branch predictor.
- First, recognize the core idea: a perfect predictor eliminates all misprediction penalties. The only remaining factor affecting performance is how much of the workload ......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Consider the code fragment shown below. We show source code, the actual instructions the compiler generates without using predication, and the instructions generated when using conditional-move predication. Note that lines that begin with "//" are comments. The predicated code is not complete - you need to complete the predicated code by entering register numbers for the last instruction before answering the rest of this question. Suppose that "cond" is true 75% of the time, i.e. out of 1000 times that this code is executes, R1 is zero 250 times and is non-zero 750 times. Recall that "BEQZ" stands for "branch on equal to zero" and that the "N" in MOVN stands for "non-zero". Also suppose that we have a processor with a CPI of exactly 1 when there are no branch mispredictions, and with a branch misprediction penalty of 10 cycles. Complete the following statements (your answers should be numbers):
A processor is executing a long-running program, in which the most frequently executed branch instruction is encountered 8 million times per second. This branch has the following sequence of outcomes (where N stands for not-taken and T stands for taken): N, N, N, T, N, N, N, T, N, N, N, T, etc. In other words, this branch has a repeating pattern where it is not taken three times then taken once. For the first five occurrences of this branch instruction, the following table shows the counter values for the one-bit counter predictor, along with its predictions, and the actual branch outcomes (see above). Note that the counter starts out with an initial value of 1. Fill out the missing entries in the table: Note that the pattern has four branch occurrences while this table has five, i.e. the 5th occurrence of the branch in the table belongs to the second "round" of the pattern. Now suppose that we are measuring the accuracy of this branch during the third second of execution, i.e. after the predictor has already been trained by the first 16 million occurrences of this branch. To simplify things, you should assume that the predictor entries that are used for predicting this branch are only used for this branch, i.e. no other branches are interfering with the prediction, and that the initial values of all bits in the predictor were zeroes - but note that these values have been updated during the first two seconds of execution. Based on this, complete the following statements (your answers should be numbers):
Is there a sequence of branch outcomes that result in never predicting correctly? Type Yes/No [Fill in the blank], If Yes, then type the sequence 1.[Fill in the blank], 2.[Fill in the blank], 3.[Fill in the blank], 4.[Fill in the blank], 5.[Fill in the blank],
Speedup of perfect predictor is
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!