作者rednim (纯吃茶)
看板Grad-ProbAsk
标题[问题] 计组(中山97)
时间Mon Mar 23 17:24:45 2009
A 2.0 GHz microprocessor runs a program of 1000 assembly instructions.
Given the following assumptions:
(a)all the instructions are 32-bit long and they all use immediate addressing
mode.
(b)one memory location can accommedate one 32-bit instruction.
(c)an address or data bus cycle will take 2 CPU cycles.
(d)address bus and data bus are both 16-bit wide.
(e)after an instruction is fetched from memory to instruction register,it
requires 1 cycle for instruction decoding,2 cycles for instruction
execution,and 1cycle for storing the result to register.
(f)no instruciont pipelining allowed.
问CPI是多少?
看解答有些疑惑,想问一下。
解答是CPI=10
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.198.3.4
1F:推 HolyXie:感觉CPI=8 可以请问为什麽是10吗? 03/23 19:09
2F:推 s987692:跟楼上感觉一样,凑不出十.. 03/23 19:12
instruction fetch需 2 + 2*2 = 6
(send address) (32-bits需传两次)
=>CPI=6+1+2+1=10
这样有对吗?
各位的算法是怎麽样勒??
※ 编辑: rednim 来自: 60.198.3.4 (03/23 19:42)
3F:推 s987692:send address为什麽是2 03/23 19:51
4F:→ rednim:这是解答上的答案@@ 03/23 20:03
5F:推 s987692:这是资工所的吗? 还是电机? 03/23 22:55
6F:→ rednim:这电机的 03/23 23:00