看板 Grad-ProbAsk 關於我們 聯絡資訊
請教一下...最近看到的一些題目. 1.Which of the following stage will access the memory? a)instruction fetch b)instruction decode and register file read c)execute and address calculation d)write back 答:a 我的問題是d)沒有access嗎? 2.Which of the following stage will NOT access the register? a)instruction fetch b)instruction decod and register file reead c)execute and address calculation d)write back 答:a 和上題想法差不多...d)不是在memory嗎? 謝謝幫忙 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.112.232.74
nickboy0211:第一題應該是因為在mem stage就把mem的資料讀到 06/04 23:45
nickboy0211:MEM/WB之Pipeline register中, 06/04 23:45
nickboy0211:而Write Back stage只是將已存在MEM/WB register 06/04 23:47
nickboy0211:的資料寫回到Register裡,這個stage應該是沒有ma的。 06/04 23:47
nickboy0211:小弟的想法是這樣,若有錯希望能幫忙修正。謝謝。 06/04 23:48
TCUMI:WB只有在R-type跟LW會使用到,皆是將data寫入暫存器,故沒 06/05 00:48
TCUMI:使用到memory,小弟一點見解,歡迎討論! ^^ 06/05 00:48
bernachom:請教一下,是不是存取到MEM的只有兩種週期,一個是IF另 06/05 00:54
bernachom:一個是MEM?,然後不會經過REGISTER的是WB,因為他只是負 06/05 00:55
bernachom:責寫回REGISTER而已?! 06/05 00:56
ymsmart:IF stage 要擷取指令會去 instruction mem.抓指令 06/05 02:11
ymsmart:而WB只是把資料寫回暫存器中所以不會access mem. 06/05 02:24
bernachom:謝謝各位^^ 06/05 09:15