作者privatewind (傷神客)
看板Grad-ProbAsk
標題[理工] [計組] Speculation
時間Mon Feb 14 12:40:29 2011
大碩第二次模考有一題:
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
→ myplace:我記得speculation主要是針對指令相依性的 02/14 12:49
→ privatewind:不只用在data dependancy 也可用在branch上... 02/14 12:58
→ privatewind:上圖為白算盤課文內容 02/14 12:59
→ BenLinus:是可以的 答案應該有錯 02/14 13:07
→ BenLinus:hardware speculatoin 可以降低 data hazard跟 control 02/14 13:08
→ BenLinus:hazard 的 stalls 02/14 13:08