Question
Given a 2.5 GHz CPU, (a) Compute the duration of one clock cycle. (b) Assume that this CPU spends 4 seconds to finish a program
Given a 2.5 GHz CPU,
(a) Compute the duration of one clock cycle.
(b) Assume that this CPU spends 4 seconds to finish a program of 500 million instructions. How many clock cycles does it take on average to execute an instruction of the program?
(c) Assume that this CPU spends 8 clock cycles to execute data pro- cessing (arithmetic and logical) instructions and 13 clock cycles to execute data transfer (load and store) instructions. Given a pro- gram of one million instructions including 60% data processing instructions and 40% data transfer instructions, how long does it take to run this program to completion?
(d) Assume that this CPU spends 8 clock cycles to fetch the operands from the cache (with a hit ratio of 0.7), and 18 cycles to fetch the operands from main memory (cache miss). How many clock cycles are needed on average to execute the instruction?
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