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
(iv)address bus and data bus are both 16-bit wide
(v)after an instruction is fetched from memory to instruction register,
it requires 1 cycle for storing the result to register.
(vi)no instruction pipelining is allowed
(2)Compute CPI
答案是 cpi=4+1+2+2+1 =10
請問各位高手
是怎麼來的呢?
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.33.6.216