1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
AleksAgata [21]
3 years ago
9

Consider two different implementations of the same instruction set architecture. The instructions can be divided into four class

es according to their CPI (class A, B, C, and D). P1 with a clock rate of 2.5 GHz and CPIs of 1, 2, 3, and 3, and P2 with a clock rate of 3 GHz and CPIs of 2, 2, 2, and 2. Given a program with a dynamic instruction count of 1.0E6 instructions divided into classes as follows: 10% class A, 20% class B, 50% class C, and 20% class D, which implementation is faster? a. What is the global CPI for each implementation? b. Find the clock cycles required in both cases.
Computers and Technology
1 answer:
patriot [66]3 years ago
4 0

Answer:

Processor P_2 is faster than P_1.

Part A:

For Processor P_1:

CPI=2.6

For Processor P_2:

CPI=2

Part B:

For Processor P_1:

CPU CLOCK CYClE=2.6*10^{6}

For Processor P_2:

CPU CLOCK CYClE=2*10^{6}

Explanation:

We will find the instructions executed of each class:

For Class A=1*10^{6} *10%=1*10^{5}

For Class B=1*10^{6} *20%=2*10^{5}

For Class C=1*10^{6} *50%=5*10^{5}

For Class D=1*10^{6} *20%=2*10^{5}

CPU CLOCK CYClE=\sum_{n=1}^{i}*CPI_i*C_i

Where:

C_i is the instructions of each class (Calculated above)

For Processor P_1:

CPU CLOCK CYClE=(1*1*10^{5})+ (2*2*10^{5})+ (3*5*10^{5})+ (3*2*10^{5})

CPU CLOCK CYClE=2.6*10^{6}

For Processor P_2:

CPU CLOCK CYClE=(2*1*10^{5})+ (2*2*10^{5})+ (2*5*10^{5})+ (2*2*10^{5})

CPU CLOCK CYClE=2*10^{6}

Now:

CPU TIME=CPU CLOCK CYClE/CYCLE RATE

For Processor P_1:

CPU TIME=\frac{2.6*10^{6} }{2.5*GHz} =1.04ms

For Processor P_2:

CPU TIME=\frac{2*10^{6} }{3*GHz} =666.67ms

Processor P_2 is faster than P_1.

Part A:

CPI=CPU CLOCK CYClE/Number of instructions

For Processor P_1:

CPI=\frac{2.6*10^{6}}{1*10^{6}}=2.6

For Processor P_2:

CPI=\frac{2*10^{6}}{1*10^{6}}=2

Part B:

For Processor P_1:

CPU CLOCK CYClE=(1*1*10^{5})+ (2*2*10^{5})+ (3*5*10^{5})+ (3*2*10^{5})

CPU CLOCK CYClE=2.6*10^{6}

For Processor P_2:

CPU CLOCK CYClE=(2*1*10^{5})+ (2*2*10^{5})+ (2*5*10^{5})+ (2*2*10^{5})

CPU CLOCK CYClE=2*10^{6}

You might be interested in
Help me with this please, it is for tech
Sonbull [250]
I believe it’s dsl.
5 0
4 years ago
What is the difference between keywords and identifiers in c++ ?
prohojiy [21]
Keywords are the reserved words of a language.Identifiers are the user defined names of variable, function and labels. Hope that this helped
3 0
3 years ago
Types of network model​
dexar [7]

Answer:

OSI Model and TCP/IP Model

Explanation:

4 0
3 years ago
Create a simple program of your own using a Loop that counts and displays numbers 1-10.
avanturin [10]

Answer:

I think

Explanation:

you....

8 0
3 years ago
What was the name of first computer?
viva [34]
The ENIAC (Electronic Numerical Integrator and Computer) was the first electronic programmable computer built in the U.S. Although the ENIAC was similar to the Colossus, it was much faster, more flexible, and it was Turing-complete.
7 0
3 years ago
Other questions:
  • You are going to buy a computer but first you want to do some research to help you select the best model everfi answer
    11·1 answer
  • Write a program that declares an array of size 1,230 and stores the first 1,230 prime numbers in this array. The program then us
    6·1 answer
  • Why would it be a bad idea for gateways to pass broadcast packets between networks? What would be the advantages of doing so
    12·1 answer
  • Question #2
    6·2 answers
  • Explain the difference between the legal protections a security officer enjoys and the legal protections a police officer receiv
    12·2 answers
  • Determine the distance between point (x1, y1) and point (x2, y2), and assign the result to points Distance. The calculation is:
    14·1 answer
  • Manuel owns a small business. He needs to calculate the amount each employee owes in Federal taxes. Manuel should
    11·2 answers
  • Rules used by a computer network<br> A network protocol <br> B hierchary protocal<br> C procedure
    7·1 answer
  • What is tha length of Mac address ?​
    15·1 answer
  • Databases containing the research, writing and studies conducted by Academic
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!