[理工] 計組 -計算CPI

看板Grad-ProbAsk作者 (古月小楓)時間14年前 (2011/11/03 11:38), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/2 (看更多)
for a pipeline impelementation,assume that one-quarter of the load instructions are immediately followed by an instruction that uses the result , that the branch delay on misprediction is 1 clock cycle, and that half of the branches are mispredicted. Assume that jumps always pay 1 full clock cycle of delay, so their average time is 2 clock cycles. If the instruction mix is 25% loads,10% stories,52% ALU instructions,11% branches,2% jumps. Calculate the average CPI. (95元智 資工) ---張凡-p.136 ------------------------------------ Answer: CPI = 1 + (0.25 * 0.25 * 1 + 0.11 * 0.5 + 0.2 * 1) = 1.1375 以上 不太懂題目的意思 跟 解答說明 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.134.193.60

11/03 13:27, , 1F
0.2 * 1 -> 0.02 * 1 這樣吧@@
11/03 13:27, 1F
文章代碼(AID): #1EiWov67 (Grad-ProbAsk)
討論串 (同標題文章)
文章代碼(AID): #1EiWov67 (Grad-ProbAsk)