作者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