Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CCCN221-Assignment 1 Question 1: Consider two computers, Pl and P2. Computer Pl has a clock rate of 2 Ghz and Computer P2 has a clock
CCCN221-Assignment 1 Question 1: Consider two computers, Pl and P2. Computer Pl has a clock rate of 2 Ghz and Computer P2 has a clock rate of 800 Mhz. There are three classes of instructions (A, B and C) in the instruction set. The average number of cycles for each instruction class and their frequencies (for a typical program) are as follows: Instruction category P2- frequency Computer cycles/instruction class 3 2 4 P1- Computer cycles/instruction class 1 3 2 A B C 55% 20% 35% a) Calculate the average CPI for each machine Pl and P2 b) Find the clock cycles for each machine P1 and P2 c) Consider One alternative to time is MIPS (million instructions per second). For a given program, MIPS is simply Instruction count MIPS = Execution time x 10 Calculate the average MIPS rating for each computer A and B Question 2: Consider three different processors P1, P2, and P3 executing the same instruction set. Pl has a 3 GHz clock rate and a CPI of 1.5. P2 has a 2.5 GHz clock rate and a CPI of 1.0. P3 has a 4.0 GHz clock rate and has a CPI of 2.2. a) Which processor has the highest performance expressed in instructions per second? b) If the processors each execute a program in 10 seconds, find the number of cycles and the number of instructions. c) We are trying to reduce the execution time by 30% but this leads to an increase of 20% in the CPI. What clock rate should we have to get this time reduction? Question 3: Consider the following fragment of C Code For (i=0; i
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