作者bernachom (Terry)
看板Grad-ProbAsk
標題[理工] 計組-問一些題目...
時間Thu Jun 4 23:33:47 2009
請教一下...最近看到的一些題目.
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
1F:推 nickboy0211:第一題應該是因為在mem stage就把mem的資料讀到 06/04 23:45
2F:→ nickboy0211:MEM/WB之Pipeline register中, 06/04 23:45
3F:→ nickboy0211:而Write Back stage只是將已存在MEM/WB register 06/04 23:47
4F:→ nickboy0211:的資料寫回到Register裡,這個stage應該是沒有ma的。 06/04 23:47
5F:→ nickboy0211:小弟的想法是這樣,若有錯希望能幫忙修正。謝謝。 06/04 23:48
6F:推 TCUMI:WB只有在R-type跟LW會使用到,皆是將data寫入暫存器,故沒 06/05 00:48
7F:→ TCUMI:使用到memory,小弟一點見解,歡迎討論! ^^ 06/05 00:48
8F:→ bernachom:請教一下,是不是存取到MEM的只有兩種週期,一個是IF另 06/05 00:54
9F:→ bernachom:一個是MEM?,然後不會經過REGISTER的是WB,因為他只是負 06/05 00:55
10F:→ bernachom:責寫回REGISTER而已?! 06/05 00:56
11F:推 ymsmart:IF stage 要擷取指令會去 instruction mem.抓指令 06/05 02:11
12F:推 ymsmart:而WB只是把資料寫回暫存器中所以不會access mem. 06/05 02:24
13F:→ bernachom:謝謝各位^^ 06/05 09:15