[理工] [計組] Speculation

看板Grad-ProbAsk作者 (傷神客)時間15年前 (2011/02/14 12:40), 編輯推噓0(007)
留言7則, 3人參與, 最新討論串1/2 (看更多)
大碩第二次模考有一題: Which of the following techniques can solve or reduce the penalty of a branch hazard? Speculation ---> False branch prediction --> true 想請問一下 speculation 為什麼不行呢? speculation 在遇到branch時,不是也會去猜branch的結果嗎? 其實我覺得branch prediction 算是一種speculation 0.0 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.38.162.55

02/14 12:49, , 1F
我記得speculation主要是針對指令相依性的
02/14 12:49, 1F

02/14 12:58, , 2F
不只用在data dependancy 也可用在branch上...
02/14 12:58, 2F

02/14 12:58, , 3F
02/14 12:58, 3F

02/14 12:59, , 4F
上圖為白算盤課文內容
02/14 12:59, 4F

02/14 13:07, , 5F
是可以的 答案應該有錯
02/14 13:07, 5F

02/14 13:08, , 6F
hardware speculatoin 可以降低 data hazard跟 control
02/14 13:08, 6F

02/14 13:08, , 7F
hazard 的 stalls
02/14 13:08, 7F
文章代碼(AID): #1DMB8_f6 (Grad-ProbAsk)
文章代碼(AID): #1DMB8_f6 (Grad-ProbAsk)