Re: [理工] [計組]-CPI計算
這裡throughput明顯是要求mips..
『1』.single-cycle processor:
CPI=1
cycle time為最長指令時間=2ns+1ns+2ns+2ns+1ns =8ns
8ns在single-cycle中代表每個指令需時
throughput=1秒/8ns= 125MIPS
『2』.multi-cycle processor:
CPI=25%*5+10%*4+45%*4+20%*3=4.05
cycle time為最長stage時間=2ns
throughput=1秒/(4.05*2ns)= 123.5MIPS
『3』.5-stage pipelined processor:
CPI=1
cycle time為最長stage時間=2ns
throughput=1秒/(2ns)= 500MIPS
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.43.229.56
討論串 (同標題文章)