[問題] 計組(中山97)

看板Grad-ProbAsk作者 (純喫茶)時間15年前 (2009/03/23 17:24), 編輯推噓4(402)
留言6則, 3人參與, 最新討論串1/1
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

03/23 19:09, , 1F
感覺CPI=8 可以請問為什麼是10嗎?
03/23 19:09, 1F

03/23 19:12, , 2F
跟樓上感覺一樣,湊不出十..
03/23 19:12, 2F
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)

03/23 19:51, , 3F
send address為什麼是2
03/23 19:51, 3F

03/23 20:03, , 4F
這是解答上的答案@@
03/23 20:03, 4F

03/23 22:55, , 5F
這是資工所的嗎? 還是電機?
03/23 22:55, 5F

03/23 23:00, , 6F
這電機的
03/23 23:00, 6F
文章代碼(AID): #19nrLUVi (Grad-ProbAsk)