作者assassin88 (Ace)
看板Grad-ProbAsk
標題Re: [理工] [計組]-中山電機97
時間Tue Mar 23 22:45:38 2010
※ 引述《bigrat2 (MrEric)》之銘言:
: A 2.0 Ghz microprocessor runs a program of 1000 assembly instructions
: Give the following assumptions:
: (i)all the instructions are 32-bit long and they all use immediate addressing
: mode
: (ii)one memory location can accommodate one 32-bit instruction.
: (iii)an address or data bus cycle will take 2 CPU cycles
^^^^^^^^^^^^^^^^^傳送位址2cycle
: (iv)address bus and data bus are both 16-bit wide
^^^^^^^^^^^一次16bit,指令為32bit
故需兩次傳輸2*2=4cycle
: (v)after an instruction is fetched from memory to instruction register,
: it requires 1 cycle for storing the result to register.
^^^^^^^需要1cycle儲存
: (vi)no instruction pipelining is allowed
: (2)Compute CPI
: 答案是 cpi=4+1+2+2+1 =10
: 請問各位高手
: 是怎麼來的呢?
: 謝謝
感覺你題目有漏打,不然就是答案錯。
若題目沒漏打,正確答案應該是2+4+1=7 // 你再檢查看看吧
--
歡迎參觀 :)
我的露天拍賣: http://class.ruten.com.tw/user/index00.php?s=outdoorsell
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.57.78.231
推 bigrat2:確實是漏打 那就沒錯是10了 謝謝指教 ^^ 03/23 23:17
推 camado:可以問一下為什麼傳送位址只需要2cycle嗎 位址要用幾bit去 03/24 00:39
→ camado:算 03/24 00:39