[理工] [計組]尋找hazard

看板Grad-ProbAsk作者 (DaiJouBu)時間13年前 (2012/12/27 13:14), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
題目: 1 sll $t1,$s1,2 (1) if this mips cpu has no forwarding 2 add $t1,$s2,$t1 capacity , please indicate all harard 3 lw $s3,100($t1) and add nop instructions to eliminate 4 addi $s3,$s3,1 them. 5 add $zero,$s4,$s3 6 slt $t2,$s3,zero 7 bne $t2,zero,L2 題問: 解答在bne後面插了一個nop why? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.118.254.72

12/27 23:05, , 1F
因為假設 bne 後面還有指令
12/27 23:05, 1F

12/29 00:05, , 2F
SOGA 謝謝
12/29 00:05, 2F
文章代碼(AID): #1Gszahjl (Grad-ProbAsk)