看板 Grad-ProbAsk 關於我們 聯絡資訊
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
HolyXie:感覺CPI=8 可以請問為什麼是10嗎? 03/23 19:09
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)
s987692:send address為什麼是2 03/23 19:51
rednim:這是解答上的答案@@ 03/23 20:03
s987692:這是資工所的嗎? 還是電機? 03/23 22:55
rednim:這電機的 03/23 23:00