Question
3. Assume the following latencies: 1 clock cycle for arithmetic/logic operations, 5 clock cycles for control flow operations, 100 clock cycles for memory operations. Assume
3. Assume the following latencies: 1 clock cycle for arithmetic/logic operations, 5 clock cycles for control flow operations, 100 clock cycles for memory operations. Assume that the data path is unpipelined. a. Assume that array a is sorted in descending order. Compute the CPI of your program (say CPID) and briefly explain your approach.
b. Assume that array a is sorted in ascending order. Compute the CPI of your program (say CPIA).
c. Assume now a memory system enabling each memory instruction to be executed in 25 clock cycles. What is now the CPI (say CPIX) of your program, assuming that array a is sorted in descending order? Show how you compute the CPIX. Explain.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started