Question

CPU A runs at 1GHz and has average CPI of 3. CPU B runs at 2GHz...

CPU A runs at 1GHz and has average CPI of 3. CPU B runs at 2GHz and has average CPI of 4. When a benchmark program is compiled for CPU A it generates 500 instructions. When same program is compiled for CPU B, it generates 800 instructions. Which CPU is better. Why?

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

Let's calulate the execution time for both A and B.

Execution time = CPI * Clock Time * Instruction Count

_____________________________________

For A :

CPI = 3, Clock time = 1 / Clock rate = 1 / 109 = 1 ns

Instruction Count = 500

Execution time = 3 * 1 * 500 = 1500 ns

______________________________________

For B :

CPI = 4, Clock time = 1 / Clock rate = 1 / 2 * 109 = 0.5 ns

Instruction Count = 800

Execution time = 4 * 0.5 * 800 = 1600 ns

_______________________________________

So, CPU A has less execution time so it means CPU A is faster.

Thus, CPU A is better.


answered by: ANURANJAN SARSAM
Add a comment
Answer #2

Let's calulate the execution time for both A and B.

Execution time = CPI * Clock Time * Instruction Count

_____________________________________

For A :

CPI = 3, Clock time = 1 / Clock rate = 1 / 109 = 1 ns

Instruction Count = 500

Execution time = 3 * 1 * 500 = 1500 ns

______________________________________

For B :

CPI = 4, Clock time = 1 / Clock rate = 1 / 2 * 109 = 0.5 ns

Instruction Count = 800

Execution time = 4 * 0.5 * 800 = 1600 ns

_______________________________________

So, CPU A has less execution time so it means CPU A is faster.

Thus, CPU A is better.

_________________________________________

Let me know if you have any doubts in the comments. Please upvote if the answer helped you.

Add a comment
Know the answer?
Add Answer to:
CPU A runs at 1GHz and has average CPI of 3. CPU B runs at 2GHz...
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 the following problem: You are the chief designer for the next generation smart gadget. In...

    Consider the following problem: You are the chief designer for the next generation smart gadget. In order to work optimally, you need the fastest processor possible. Processor A has a clock rate of 2GHz and an average CPI of 2.0 Processor B has a clock rate of 8GHz, but the average CPI is 7. What is the cycle time of Processor A? Assume a program has 100 instructions, what is the CPU time for Processor A? What is the cycle...

  • 02 A CISC (Complex Instructions set Computer) machine has CPls of 4 for loadstore, 3 for...

    02 A CISC (Complex Instructions set Computer) machine has CPls of 4 for loadstore, 3 for ALU/branch, 10 for call/return and CPU clock rate of 1.75 GHz. RISC (Reduced Instructions set Computer) machine has a CPI of 1.2 (as it is pipelined) and CPU clock rate of 1 GHz. CISC machine uses complex instructions so the CISC version of the benchmark is 40% less than the same benchmark on the RISC machine (that is, CISC IC is 40% less than...

  • 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...

  • 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.

  • About computer architecture and organization. Please solve those questions Thank you 2. A certain program has...

    About computer architecture and organization. Please solve those questions Thank you 2. A certain program has the following instruction classes, CPIs, and mixtures: Instruction Type CPI ratio 1.5 .40 2.1 .35 3 a. What is the average CPI for this processor? b. You have the following options: • Option 1: Reduce the CPI of instruction type B to 1.8 • Option 2: Reduce the CPI of instruction type C to 2.5 Which option would you choose and why? 3. Consider...

  • Compller A Compler B Execution Ti Execution Time No. Instructions meNo. Instructions b. 1.9 s 1.60E+09 1.30E+09 2.1 s 1...

    Compller A Compler B Execution Ti Execution Time No. Instructions meNo. Instructions b. 1.9 s 1.60E+09 1.30E+09 2.1 s 1.71 [5] <1.4> For the same program, two different compilers are used. The table above shows the execution time of the two different compiled programs. Find the average CPI for each program given that the processor has a clock cycle time of 1 ns. 1.7.2 [5] <1.4> Assume the compiled programs run on two different processors If the execution times on...

  • (6 pts) A program P2 is executed on computer system B, which has a 2.8571429 GHz...

    (6 pts) A program P2 is executed on computer system B, which has a 2.8571429 GHz clock frequency. A programmer writes code to read processor performance monitoring registers after the program completes (Intel refers to the part of the CPU that can be used to collect run-time information as the Performance Monitoring Unit or PMU). The performance monitoring unit indicates that 23,118,471,971 user instructions were executed (just the instructions of P2 excluding OS and overhead instructions) in 53,866,039,692 clock cycles....

  • Topics 1. MIPS instruction set architecture (ISA). 2. Performance. 3. MIPS datapath and control. Exercise 1...

    Topics 1. MIPS instruction set architecture (ISA). 2. Performance. 3. MIPS datapath and control. Exercise 1 Consider the memory and register contents shown below. Registers Ox0100 FFF8 13 ($t 5) 14 ($t6) 0x0100 FFFC 0x0101 0000 Memory 0x0000 0000 0x0001 1100 0x0A00 со00 0x1234 4321 OxBAOO OOBB 15 OXAAAA 0000 0x1111 1010 0x7FFF FFFD 0x0100 FFFO 0x0101 0008 (St7) Ox0101 0004 16 ($80) 0x0101 0008 17 ($sl) Show what changes and give the new values in hexadecimal after the following...

  • Suppose a computer M3 has an average CPI of 2.7 and a clock rate of 3.7...

    Suppose a computer M3 has an average CPI of 2.7 and a clock rate of 3.7 GHz. Please answer the following: (a) Calculate the runtime for a program P with 22,933 instructions, which uses an accelerating co-processor 45 percent of the time, and (b) determine how much faster (or slower) the accelerator needs to run for P to run 1.5 times as fast on M3 with the faster (resp. slower) accelerator.

  • Computer A executes the MIPS ISA and computer B executes the x86 ISA. On average, programs...

    Computer A executes the MIPS ISA and computer B executes the x86 ISA. On average, programs execute 1.5 times as many MIPS instructions as x86 instructions. Computer A has an average CPI of 1.5 and computer B an average CPI of 3. If computer B runs at a 3GHz clock frequency, what speed does computer A have to run at to be at least as fast as computer B?

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