Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee

Human-written only.

24/7 Support

Anytime, anywhere.

Plagiarism Free

100% Original.

Expert Tutors

Masters & PhDs.

100% Confidential

Your privacy matters.

On-Time Delivery

Never miss a deadline.

Suppose a processor has a clock speed of 2

Computer Science Nov 26, 2020

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)

Expert Solution

For detailed step-by-step solution, place custom order now.
Need this Answer?

This solution is not in the archive yet. Hire an expert to solve it for you.

Get a Quote
Secure Payment