作者gn00618777 (123)
看板Grad-ProbAsk
標題[理工] [計組]-效能
時間Fri Sep 18 22:22:01 2009
A certain machine with a 10ns(10*10^9s) clock period can
perform jump(1 cycle),branches(3 cycles),arithmetic intruction(2 cycles)
multiply intructions(5 cycles),and memory intruction(4 cycles).
A certain program has 10% jumps, 10% branches,50% arithmetic,10%
multiply. and 20% memory intructions.
What is the CPI of this program on this machine?
解答是說 clock=10ns
不是求CPI嗎?
題木我只看的懂說指令 jump CPI=1
branches CPI=3
arithmetic CPI=2
multiply CPI=5
memory CPI=4 (其實也不知道我這樣對不對)..
至於10ns是啥我不瞭捏
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.168.61.95
→ gn00618777:10ns是clock cycle time嗎?一個週期的時間長度? 09/18 22:30
推 ianwuzack:對阿 是clock cycle time沒錯 09/18 22:39
→ gn00618777:那clock = 10ns又是怎回事 不是求cpi嗎? 09/18 22:40
推 ianwuzack:這題我有看過 這只是其中一個問題而已 09/18 22:42
→ ianwuzack:下面會接著求Eexcution time 09/18 22:43
→ gn00618777:阿 我懂了..沒事了呵呵.. 09/18 22:44
→ gn00618777:對阿 這是呆大電機考題 09/18 22:53
→ gn00618777:計組沒補習 超難看的懂= =" 09/18 22:53