作者worldxxi (林小弟)
看板Grad-ProbAsk
標題[理工] [計組] 99 台聯大電機 datapath效能
時間Wed Feb 8 00:53:23 2012
http://www.lib.nthu.edu.tw/library/department/ref/exam/eecs/ee/99/500A.pdf
四.(2)
張凡的答案寫
Increasing clock cycle在 L>3 的時候比較好,但我算是要 L<-3,也就是
不能用這個方法,而Changing the actions within each cycle在 L<3 的時候比較好,
但我算是 L>-3 即可,也就是說這個方法才可行。
和我想的不同很疑惑,有人算過這題嗎?
五.(4)
張凡的答案有一句話:
No. The last step of lw instruction will now include read data from
memory and write the data to the register file. This would lengthen the
cycle time and may increase execution time when the occurring frequency of
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lw instruction is high.
~~~~~~~~~~~~~~~~~~~~~~
我不懂的是,增加了cycle time不就等於所有指令的時間都被拉長,跟lw的使用頻率
有什麼關係?
拜託大家幫幫忙,感謝。
------------------------------------------------------
題外問:
交大有一年問說JR指令用在哪裡?
switch-case我知道,可是他還說用在function,可是function不是都是用jal嗎?
不然怎麼啟動相關的參數儲存與傳遞。
請大家解惑。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.160.87.172
※ 編輯: worldxxi 來自: 118.160.87.172 (02/08 00:57)
1F:→ Jerrynet:題外:跳到function用jal然後會存return addr到$ra 02/08 01:14
2F:→ Jerrynet: function結束會用jr $ra回到原本program下一個位址 02/08 01:15
3F:→ worldxxi:這個我知道啊 難道結束也算喔=ˇ= 02/08 08:37
4F:→ doublewhi:執行function會用到jr就算阿 02/08 08:53