[理工] [計組]-效能

看板Grad-ProbAsk作者 (123)時間14年前 (2009/09/18 22:22), 編輯推噓2(206)
留言8則, 2人參與, 最新討論串1/9 (看更多)
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

09/18 22:30, , 1F
10ns是clock cycle time嗎?一個週期的時間長度?
09/18 22:30, 1F

09/18 22:39, , 2F
對阿 是clock cycle time沒錯
09/18 22:39, 2F

09/18 22:40, , 3F
那clock = 10ns又是怎回事 不是求cpi嗎?
09/18 22:40, 3F

09/18 22:42, , 4F
這題我有看過 這只是其中一個問題而已
09/18 22:42, 4F

09/18 22:43, , 5F
下面會接著求Eexcution time
09/18 22:43, 5F

09/18 22:44, , 6F
阿 我懂了..沒事了呵呵..
09/18 22:44, 6F

09/18 22:53, , 7F
對阿 這是呆大電機考題
09/18 22:53, 7F

09/18 22:53, , 8F
計組沒補習 超難看的懂= ="
09/18 22:53, 8F
文章代碼(AID): #1AivUAwz (Grad-ProbAsk)
討論串 (同標題文章)
文章代碼(AID): #1AivUAwz (Grad-ProbAsk)