看板 Grad-ProbAsk 關於我們 聯絡資訊
1. MIPS is not a unfair metric to compare the performance of two computers because MIPS metric only counts the number of executed instructions but does not consider the CPU idle time for stalling CPU requested by cache miss 2. programming language and compilers heavily influence the number of executed machine instructions per operation 3. Algorithms determine the number of executed operations 知道這三段敘述是錯的,可是不太懂他錯在哪邊 4.the number with all bits in exponent and fraction field being 1 is referred to as infinity in IEEE standard 754. 這個敘述是對的,但無限大不是exponent 欄位是1 然後 Fraction 全0? Fraction 非0的話是用來表示NaN 應該是這樣吧?! 5. Consider the code sequence below, where we predict beq as taken, but actually it is not taken For pipelined MIPS CPU which has data forwarding mechanism and the branch outcome is determined in MEM stage it takes 10 cycles to complete the execution of the above code sequence 解答給的算式是 (5-1)+4+1+1=10 但Beq在Mem階段決定猜錯的話,懲罰是3個cycle吧 我算出(5-1)+4+1+3=12cycles 不知道哪裡出錯了 謝謝大家了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.164.17.252
A4P8T6X9:1.不是miss的idle,而是沒考慮到CPI。 01/03 17:22
ss800725:1錯在MIPS是指instruction rate 而不公平是因為沒考慮到 01/03 17:30
ss800725:到各個執行指令的能力 有些指令能力強 01/03 17:30
ss800725:2.programming language只影響PC和CPI 01/03 17:31
ss800725:不會影響ins.per operation 只有computer orgnization會 01/03 17:31
ss800725: 像pipeline 5 stage 和 single cycle machine 01/03 17:31
ss800725:一次operation中能執行的指令各數有差 01/03 17:31
ss800725:張凡老師上題庫班的時候是說他覺得這選項是對 因為algo 01/03 17:32
justbearcry:所以MIPS有考慮到miss 的idle?還是説跟這句敘述沒關? 01/03 17:32
ss800725:的好壞會影響執行運算的量(不過交大答案說這選項錯) 01/03 17:32
ss800725:miss idle 要idle大家會一起idle 所以沒什麼影響 01/03 17:33
ss800725:我想法跟你一樣 exponent全1 Fraction全0是無限大 01/03 17:33
ss800725:nonzero是NaN 張凡老師上課也說這選項是錯的 他的答案de 01/03 17:33
kiki86151:123是同一題吧選錯的交大答案是1我也認為MIPS是不公平 01/03 17:40
kiki86151:的除非要相同的ISA(同電腦) 跟idle沒怎太大關係 01/03 17:40
ss800725:相同ISA 可是run不同program MIPS也會不同吧 01/03 17:44
kiki86151:4有人講 然後5是12 算法沒錯 01/03 17:45
kiki86151:跑不同程式用的指令自然不一樣 MIPS當然不同 01/03 17:48
A4P8T6X9:一個operator是什麼意思? 01/03 17:50
justbearcry:感謝各位! 01/04 09:31
gn123:5是11吧 (5-1+4)+2(含lw-use跟beq等lw送去ID)+1(flush) 01/09 17:47