Re: [理工] [計組]-中山電機97
※ 引述《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
推
03/23 23:17, , 1F
03/23 23:17, 1F
推
03/24 00:39, , 2F
03/24 00:39, 2F
→
03/24 00:39, , 3F
03/24 00:39, 3F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):