看板 Grad-ProbAsk 關於我們 聯絡資訊
※ 引述《bobsonlin (billy)》之銘言: : 書籍:張凡計組第二版(上) : 題目與解答: : https://i.imgur.com/3LZjgyu.jpg : https://i.imgur.com/Ms4k6ZD.jpg : 想問此題的(4)小題的a部分(其實a, b都不會XD,更別說(5),(6)QQ),我看不 : 詳解的作法,題目是要問 "percentage of all cycles are entirely spent fetching w : rong-path instructions", 答案的分子6我猜是因為 branches execute in stage = 7 , : 但分母就看不懂了.... : 我想我問題的癥結點在於不懂 Instructions between branch mispredictions、stall c : ycles 在算什麼,跪求解釋 orz : 謝謝!! 不好意思 幾分鐘前看了22038文章的下方推文時,感覺是懂了,但現在的我仍然有一點小疑問... 就是最後答案是寫 6/(16.7+6.4),但我覺得應該是 6.4/(16.7+6.4),因為若遇到 b ranch misprediction 時,stage 7 當下的其餘三個指令也可能被洗掉,也算是 cycles spent fetching wrong-path instructions吧?因此我認為分子應該是 6.4 不知我這想法是否有不對的地方,盼各位大大指點 謝謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 49.215.224.208 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1507636991.A.56F.html ※ 編輯: bobsonlin (49.215.224.208), 10/10/2017 20:03:41 ※ 編輯: bobsonlin (49.215.224.208), 10/10/2017 20:04:28 ※ 編輯: bobsonlin (49.215.224.208), 10/10/2017 20:18:28
clonsey1314: 當初我也有這樣的疑問,個人猜測可能是因為題目問"e10/10 20:42
clonsey1314: ntirely" spent fetching wrong path, 所以分子擺的10/10 20:42
clonsey1314: 要是"整個cycle都要被flush掉的",不知道是不是這樣10/10 20:42
好像有點道理~ 看來又被題目的文字遊戲擺了一道... ※ 編輯: bobsonlin (49.215.224.208), 10/10/2017 21:16:02 謝謝你!! ※ 編輯: bobsonlin (49.215.224.208), 10/10/2017 21:16:28