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
What kind of command can you access from the mini toolbar in Microsoft Word?
qaws [65]
Paint,calculator,camera,snipping tool,file,store,and photis

5 0
3 years ago
Which loan type requires you to make loan payments while you’re attending school?
LUCKY_DIMON [66]
The answer is student loans
3 0
4 years ago
Read 2 more answers
When using the Common Internet File System (CIFS), which security model will require network users to have a user name and passw
hjlf

Answer:

User-level Security

Explanation:

User-level security allows the user to access resources on a network using a username and password. User-level security offers higher and greater security than share-level security, which does not require a password to access files.

User-level security allows the database user access and permission to resources.

4 0
3 years ago
What term describes the process of transferring information from one computer to another
Flauer [41]

Syncing or maybe FTP or connection

5 0
3 years ago
Is number 1 correct​
Nutka1998 [239]

Answer:

Yes, number 1 is correct

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • What encryption method is used by WPA for wireless networks?
    7·1 answer
  • Which of these statements makes the most sense? a folder is contained within a file. a file is contained within a folder. a driv
    9·2 answers
  • . Each ____ on a menu performs a specific action.
    14·1 answer
  • How can the use of new technology in industry benefit the us government
    8·2 answers
  • the term that is used to describe how many bits are used in each pixel to show the number of colours used
    11·1 answer
  • for java ?(Business: check ISBN-13)ISBN-13 is a new standard for identifying books. It uses 13 digits d1d2d3d4d5d6d7d8d9d10d11d1
    9·1 answer
  • Which of the following statements is true regarding a user account? Once a user account has been created, it cannot be completel
    8·1 answer
  • What is the full form of RPM in computer ​
    10·2 answers
  • Does anyone know what this logo is??
    11·2 answers
  • Active directory and 389 directory server are both compatible with which directory access protocol?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!