Question

9/ Alternative compiled code sequences using instructions in classes A, B, C. Calculate the average CPI...

9/

Alternative compiled code sequences using instructions in classes A, B, C. Calculate the average CPI for sequence 1 and sequence2. Steps are required.

Class

A

B

C

CPI for class

1

3

5

IC in Sequence 1

2

4

1

IC in Sequence 2

3

1

3

10/ List the Symbols of five stages of pipelines in order.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

Formula for average weighted CPI = Σ i = 1 to n ( CPI * Instruction count)

Now IC in sequence 1 IC1 :

Add all sequences = 2 + 4 + 1 = 7

We know that the clock cycles = IC1 sequence * CPI for class sequences = 2*1 + 4*3 + 5 *1 = 2 + 12 + 5 = 19

Now average CPI for sequence 1 = clock cycles / IC1 = 19 / 7 = 2.7

Similarly for sequecen 2:

Add all sequence = 3 + 1 + 3 = 7

clock cycles = IC1 sequence * CPI for class sequences = 3*1 + 1*3 + 3*5 = 3 + 3 + 15 = 21

CPI for sequence 1 = clock cycles / IC2 = 21/7 = 3

Therefore average CPI for sequence 2 = 3

Add a comment
Know the answer?
Add Answer to:
9/ Alternative compiled code sequences using instructions in classes A, B, C. Calculate the average CPI...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider two different implementations of the same instruction set architecture. There are 5 classes of instructions,...

    Consider two different implementations of the same instruction set architecture. There are 5 classes of instructions, A, B, C, D, and E. The clock rate and CPI of each class is given in the following table. Machine Clock Rate CPI class A CPI class B CPI class C CPI class D CPI class E P1 1.0 GHz 1 1 2 3 2 P2 1.5 GHz 1 2 3 4 3 What are the performances of P1 and P2 expressed in...

  • Consider two different implementations of the same ISA. The four classes of instructions are A,B,C and...

    Consider two different implementations of the same ISA. The four classes of instructions are A,B,C and D. Refer to following table for the data required. Clock Rate CPI A CPI B CPI C CPI D P1 3 GHz 1 3 4 2 P2 4 GHz 4 5 6 2 Given a program with 10% of A instructions, 20% of B instructions, 30% of C instructions and 40% of D instructions a. Which implementation of P1 and P2 is faster? b....

  • I need help with the following Computer Architecture question: Consider two different implementations, M1 and M2,...

    I need help with the following Computer Architecture question: Consider two different implementations, M1 and M2, of the same instruction set. There are three classes of instructions (A, B, and C) in the instruction set. M1 has a clock rate of 90 MHz and M2 has a clock rate of 80 MHz. The average number of cycles for each instruction class and their frequencies (for a typical program) are as follows: Instruction Class Machine M1 – Cycles/Instruction Class Machine M2...

  • Question 1: Consider two different implementations, M1 and M2, of the same instruction set. There are...

    Question 1: Consider two different implementations, M1 and M2, of the same instruction set. There are four classes of instructions (A, B, C, and D) in the instruction set. M1 has a clock rate of 500 MHz while M2’s clock rate is 750 MHz. The average number of cycles for each instruction class of M1 and M2 are shown in the following table: Class CPI for this class on M1 CPI for this class on M2 A 1 2 B...

  • INSTRUCTIONS You may print out this assignment and fill it in by hand. We suggest using...

    INSTRUCTIONS You may print out this assignment and fill it in by hand. We suggest using pencil in case you make mistakes!! Submit your Assignment as a single doc on Canvas. ASSIGNMENT 1) For the DNA sequence given below, write the complementary DNA sequence that would complete the double-strand. DNA 3P-A TIGOTTACTTGCA T-5° DNA 5'- 2) Does it matter which strand is the 'code strand"? The following two sequences look identical, except one runs 3'-5' and the other 5'-3'. For...

  • Problem: The code I have below compiled/debugged using C#, however I need to measure the time...

    Problem: The code I have below compiled/debugged using C#, however I need to measure the time it takes to do the 10,000,000 searches for each of the eight arrays. Could you compare the timings to the theoretical timings the algorithm binary search provides. Instructions prior to this: Implement a binary search function in C#. In this program we are to carry out the same 10,000,000 unsuccessful searches for eight different-sized arays, namely arrays of sizes 128, 512, 2,048, 8,192, 32,768,...

  • NB: All C programs should be compiled using C Compiler application. The code should be shown...

    NB: All C programs should be compiled using C Compiler application. The code should be shown on the document. A screen shot of the running program given as output on the assignment. a). Describe the types of arrays and operations that can be performed of them. [10] b). Write a program to print the multiplication table from 1*1 to 12*10. [10] Example MULTIPLICATION TABLE 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12...

  • All solutions must have both code and data segments Write a sequence of assembly language instructions...

    All solutions must have both code and data segments Write a sequence of assembly language instructions to subtract each entry of an array B of five two’s complement 16-bit binary integers from the corresponding entry of an array A of five two’s complement 16-bit binary integers and construct a third array C of two’s complement 16-bit binary integers. i.e. C[i] = A[i] - B[i]. Use the following data for the arrays A and B.             A: 10, -15, 20, 4,...

  • INSTRUCTIONS You may print out this assignment and fill it in by hand. We suggest using...

    INSTRUCTIONS You may print out this assignment and fill it in by hand. We suggest using pencil in case you make mistakes!! Submit your Assignment as a single doc on Canvas. ASSIGNMENT 1) For the DNA sequence given below, write the complementary DNA sequence that would complete the double-strand. DNA 3-A TTGCT TACTTGCA T-5° DNA 5 2) Does it matter which strand is the 'code strand'? The following two sequences look identical, except one runs 3-5' and the other 5'-3'....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT