1. [7%] Determine whether each of the following statements is true (T) or false (F).
(1) [1%] Program execution time reduces when the clock rate increases.
(2) [1%] Program execution time reduces when the CPI increases.
(3) [1%] Program execution time reduces when the instruction count (IC) increases.
(4) [2%] Suppose the floating point instructions are enhanced and can run 10 times faster. If the execution time before the floating point enhancement is 80 seconds and three-fourth of the execution time is spent executing floating-point instructions, the overall speed up is at least 3.
(5) [2%] Suppose the floating point instructions are enhanced and can run 20 times faster. If the execution time before the floating point enhancement is 80 seconds and one-half of the execution time is spent executing floating-point instruction, the overall speed up is at least 2.
\(\text{Time}=\dfrac{IC\times CPI}{\text{clock rate}}\)
(1) clock rate 變大,時間變小 → T
(2) CPI 變大,時間變大 → F
(3) IC 變大,時間變大 → F
(4) 浮點部分 \(80\times\tfrac34=60\) s,其餘 20 s;加速後 \(60/10+20=26\) s,speedup \(=80/26\approx3.08\ge3\) → T
(5) 浮點部分 40 s,其餘 40 s;加速後 \(40/20+40=42\) s,speedup \(=80/42\approx1.90\lt2\) → F
(5) 就算浮點部分時間降到 0,最多也只能 \(80/40=2\)(Amdahl 定律),實際一定小於 2
(1) T (2) F (3) F (4) T (5) F