看板 Grad-ProbAsk 關於我們 聯絡資訊
題目如下: Suppose that 20% of the instruction are loads, and half of the time the instruction following a load instruction depends on the result of the load, If this hazard creates a single-cycle delay CPI without stall是2 其中CPI with stall=2 + 20%*50%*1 = 2.1 不過我在另一個地方看到的算式 CPI with stall=0.2*0.5*3 + 0.9*2 = 2.1 想請教一下這兩種算法該怎麼分別去解釋? 以及題目中的"half of the time"是指所有load指令有一半會發生危障嗎? 還是另有所指呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.26.22.96 ※ 編輯: Croast 來自: 114.26.22.96 (11/14 23:56)