[理工] [計組] ALU-ALU forwarding
(a) (b)
lw $1, 40($6) lw $5, -16($5)
add $6, $2, $2 sw $5, -16($5)
sw $6, 50($1) add $5, $5, $5
Add nop instructions to this code to eliminate hazards if there is ALU-ALU
forwarding only (no forwarding from the MEM to the EX stage) ?
請問這題要怎麼解?
張凡下冊37頁第(5)小題
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 192.192.13.101
推
09/01 22:07, , 1F
09/01 22:07, 1F
→
09/01 22:08, , 2F
09/01 22:08, 2F
→
09/01 22:08, , 3F
09/01 22:08, 3F
推
09/01 22:10, , 4F
09/01 22:10, 4F
請問如果當成沒有forwarding去加nop
這樣是和第(2)小題問的一樣嗎?
這樣的話(a)就不一樣了..
※ 編輯: mqazz1 來自: 61.228.26.15 (09/01 23:04)
推
09/02 01:35, , 5F
09/02 01:35, 5F
→
09/02 01:36, , 6F
09/02 01:36, 6F
推
09/02 01:38, , 7F
09/02 01:38, 7F
推
09/02 02:37, , 8F
09/02 02:37, 8F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):