hi!
i need help in solving following questions
35. Program A executed in machine M, there was a record during the execute. 20% of all instruction was branch, 20% of branch was unconditional branch. Half of conditional branch was executed, another half was not. What is the average cycles per instruction(CPI) during the execute? Instructions were taken during 1 cycle per instruction (i.e.,CPI=1), except for pipeline stall make instruction taken longer, branch executed need 3 cycle stalls, branch did not executed need 1 cycle stall.
(A) 1.24
(B) 1.36
© 1.40
(D) 1.44
(E) 2.20
48. In a pipelined computer where all arithmetic instructions have the same cycles per instruction, which of the following would improve the execution time of a typical program?
I. Increasing the clock cycle rate.
II. Doubling the size of instruction cache without changing the clock cycle time.
III. Doubling the size of data cache without changing the clock cycle time.
(A) I only (B) II only © III only (D) II and III only (E) I, II and III