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
A(n) ____ web site structure connects web pages in a treelike structure.
galben [10]
Is it a multiple choice question?

6 0
3 years ago
What is Fill handle?
vesna_86 [32]

Answer: I copied and pasted my answer if you need the website to cite information let me know

Explanation:

Fill Handle is a feature in Excel that enables you to auto-complete a list in a row/column by simply dragging it using your mouse. A basic understanding of fill handle in Excel could save you some time and make you more productive.

6 0
3 years ago
Day 1 of seeing if anyone will buy me a psn gift card (if u do u get brainliest and thanks + alot of points
gulaghasi [49]
Today is not the day keep trying
6 0
3 years ago
Here's another question!<br><br> What is some iterative programming structure uses?
inn [45]

Answer

Often in an algorithm, a group of statements needs to be executed again and again until a certain condition is met, this is where we find the need for iteration.

The repeated execution of some groups of code statements in a program is called iteration.

In iteration control structures, a statement or block is executed until the program reaches a certain state, or operations have been applied to every element of a collection. This is usually expressed with keywords such as while, repeat, for, or do..until.

The basic attribute of an iteration control structure is to be able to repeat some lines of code. The visual display of iteration creates a circular loop pattern when flowcharted, thus the word “loop” is associated with iteration control structures. Iteration can be accomplished with test before loops, test after loops, and counting loops. A question using Boolean concepts usually controls how often the loop will execute.

Applications of Iteration

Iteration methodology has various applications in the programming world

  • Problem-solving in arrays, vectors, lists, strings, etc.
  • Problem-solving using Stack, Queue and Priority Queue
  • Bottom-up implementation of Dynamic Programming
  • Implementation of greedy algorithms
  • BFS traversal of tree and graph
  • Problem-solving using Hash Table and BST
  • Iterative Implementation of recursive code using stack

Iteration (Repetition) Control Structures

pseudocode: While

count assigned zero

While count < 5

   Display "I love computers!"

   Increment count

End

pseudocode: Do While

count assigned five

Do

   Display "Blast off is soon!"

   Decrement count

While count > zero

pseudocode: Repeat Until

count assigned five

Repeat

   Display "Blast off is soon!"

   Decrement count

Until count < one

pseudocode: For

For x starts at 0, x < 5, increment x

   Display "Are we having fun?"

End

7 0
3 years ago
Please help What two Boolean operators can you use to narrow your search results?
daser333 [38]

Answer:

if and and not and or ans all

7 0
3 years ago
Other questions:
  • Which of the following is an encryption tool that allows users to encrypt files and folders by simply right-clicking a given obj
    8·1 answer
  • In 1928 what film was the first all talking feature
    12·1 answer
  • When a chart is selected, numerous customization options can be found on which Chart Tools tabs?
    11·2 answers
  • Write a program num2rome.cpp that converts a positive integer into the Roman number system. The Roman number system has digits I
    8·1 answer
  • Develop Swimlane Activity diagram for Assignment announcement and submission system.
    6·1 answer
  • SmartArt is especially useful for which types of objects? Check all that apply.
    10·2 answers
  • Which company introduce the first Minicomputer in 1960.​
    8·2 answers
  • What is the purpose of criteria and constraints? How do they shape design?
    10·1 answer
  • Que nombre reciben los procesadores en miniatura en que se subdividen un microprocesador para mejorar su desempeño
    11·1 answer
  • Please help! Python programming, use the factorial operation to evaluate 4!. Answers are in picture please pick one, thank you.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!