[理工] 計組-問一些題目...

看板Grad-ProbAsk作者 (Terry)時間16年前 (2009/06/04 23:33), 編輯推噓4(409)
留言13則, 4人參與, 最新討論串1/1
請教一下...最近看到的一些題目. 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

06/04 23:45, , 1F
第一題應該是因為在mem stage就把mem的資料讀到
06/04 23:45, 1F

06/04 23:45, , 2F
MEM/WB之Pipeline register中,
06/04 23:45, 2F

06/04 23:47, , 3F
而Write Back stage只是將已存在MEM/WB register
06/04 23:47, 3F

06/04 23:47, , 4F
的資料寫回到Register裡,這個stage應該是沒有ma的。
06/04 23:47, 4F

06/04 23:48, , 5F
小弟的想法是這樣,若有錯希望能幫忙修正。謝謝。
06/04 23:48, 5F

06/05 00:48, , 6F
WB只有在R-type跟LW會使用到,皆是將data寫入暫存器,故沒
06/05 00:48, 6F

06/05 00:48, , 7F
使用到memory,小弟一點見解,歡迎討論! ^^
06/05 00:48, 7F

06/05 00:54, , 8F
請教一下,是不是存取到MEM的只有兩種週期,一個是IF另
06/05 00:54, 8F

06/05 00:55, , 9F
一個是MEM?,然後不會經過REGISTER的是WB,因為他只是負
06/05 00:55, 9F

06/05 00:56, , 10F
責寫回REGISTER而已?!
06/05 00:56, 10F

06/05 02:11, , 11F
IF stage 要擷取指令會去 instruction mem.抓指令
06/05 02:11, 11F

06/05 02:24, , 12F
而WB只是把資料寫回暫存器中所以不會access mem.
06/05 02:24, 12F

06/05 09:15, , 13F
謝謝各位^^
06/05 09:15, 13F
文章代碼(AID): #1A9-bSkt (Grad-ProbAsk)