Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Suppose a processor has a clock speed of 2

Suppose a processor has a clock speed of 2

Computer Science

Suppose a processor has a clock speed of 2.2 GHz. Suppose also that an arithmetic instruction takes 2 cycles, a load or store instructions takes 4 cycles and a branch instruction takes 5 cycles. Assume a given program executes 4.5 x 1010 instructions, wtih 50% of the instructions being arithmetic, 40% being loads or stores, and 10% being branches.
a. What is the average cycles per instruction (CPI) for execution of the program? (3 points)


b. How much CPU time does the program take to execute, assuming there are no stall cycles? (Please give your answer to the nearest tenth of a second). (2 points)


c. Suppose a new design of the processor increases the clock speed to 2.5 GHz but causes the cycles to execute a load or store instruction to increase to 5 and the cycles to execute a branch instruction to increase to 6. What is the new CPU time for the same program, again assuming no stall cycles? (Please give your answer to the nearest tenth of a second). (2 points)


d. Suppose that in addition to increasing the number of cycles to execute load, store, and branch instructions, the new processor design results in an additional 10% increase in overall cycles to execute the same program, due to stall cycles. What is the resulting CPU time? (Please give your answer to the nearest tenth of a second). (3 points)

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE