Question

Suppose this program is executed in a computer in which the clock rate for the processor is 1.6 MHz

image.png

Figure 1: each block gives the number of different types of instructions

Consider a program with the execution flow shown in Figure 1. There are in total 3 types of instructions used in this program: 

  • Type 1 (in-processor calculation): execution rate as 1 per clock cycle; 

  • Type 2 (memory access): each instruction takes 2 clock cycles for execution; 

  • Type 3 (loop control): each instruction takes 2 clock cycles for jump into the loop block or 3 clock cycles for jump to the block after loop. 


In statistics, for this program, the actual rounds of loop follows the probability distribution below 

Number of loopsProbability
010%
120%
230%
320%
410%
510%

Suppose this program is executed in a computer in which the clock rate for the processor is 1.6 MHz. In average, how long is the time (in μs) needed for executing the whole program by this computer? 

2 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Suppose this program is executed in a computer in which the clock rate for the processor is 1.6 MHz
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
  • A program (or a program task) takes 150 million instructions to execute on a processor running...

    A program (or a program task) takes 150 million instructions to execute on a processor running at 2.7 GHz. Suppose that 50% of the instructions execute in 3 clock cycles, 30% execute in 4 clock cycles, and 20% execute in 5 clock cycles. What is the execution time for the program or task? Suppose the processor in the previous question part is redesigned so that all instructions that initially executed in 5 cycles and all instructions executed in 4 cycles...

  • Suppose a program (or a program task) takes 1 billion instructions to execute on a processor...

    Suppose a program (or a program task) takes 1 billion instructions to execute on a processor running at 2 GHz. Suppose also that 50% of the instructions execute in 3 clock cycles, 30% execute in 4 clock cycles, and 20% execute in 5 clock cycles. What is the execution time for the program or task?

  • Consider a processor with a 1.2GHz clock rate and a CPI of 1.7. If a program...

    Consider a processor with a 1.2GHz clock rate and a CPI of 1.7. If a program runs in 10 seconds, how many clock cycles were required? How many instructions executed?

  • Q.4 [10 points] A processor is designed such that the clock of the processor runs at...

    Q.4 [10 points] A processor is designed such that the clock of the processor runs at 2.0 GHz. The following table gives the instruction frequencies for the benchmark and how many cycles each instruction takes. Instruction Type Frequency Cycles Load & Stores 25% 8 cycles Arithmetic Instructions 60% 6 cycles Branch instructions 15% 4 cycles (a) (2 points) Calculate the CPI for the above benchmark. (b) (4 points) Suppose the amount of registers are doubled, such that clock cycle time...

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

  • c. Performance: Company A's processor and Company B's processor are benchmarked on the same program. The...

    c. Performance: Company A's processor and Company B's processor are benchmarked on the same program. The CPI of the component instructions that are executed in the program are shown above for each processor. Additionally, the number of instructions of each type is provided. Company A 5 Branch CPI Load/Store CPI Arithmetic CPI 7 1 Company B 4 Branch CPI Load/Store CPI Arithmetic CPI 9 1 Program Instruction Count Branch Load/Store Arithmetic CPL 1.2x109 1.67x1010 1.5x1011 i. Assume Company A has...

  • A processor is designed such that the clock of the processor runs at 1 GHz. The following table gives the instruction frequencies for the benchmark and how many cycles each instruction takes. Inst...

    A processor is designed such that the clock of the processor runs at 1 GHz. The following table gives the instruction frequencies for the benchmark and how many cycles each instruction takes. Instruction Type Frequency Cycles Load & Stores 25% 10 cycles Arithmetic Instructions 65% 6 cycles Branch instructions 10% 4 cycles (a) Calculate the CPI for the above benchmark. (b) Suppose the amount of registers are doubled, such that clock cycle time increases by 40%. What is the new...

  • 5. If a processor clock ticks 4 billion times in a second and has a frequency...

    5. If a processor clock ticks 4 billion times in a second and has a frequency of 1.5 GHz, with each clock tick, one or more instructions may complete, if a program runs on 3 GHz processor for 7 seconds, how many clock cycles did it run for? (10 points) If a program runs for 2 billion clock cycles on a 1.5 GHz processor, what is the execution time in seconds? (10 points)

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

  • A program that executes 12.3x107 instructions is run on a pipelined processor. The table below provides...

    A program that executes 12.3x107 instructions is run on a pipelined processor. The table below provides the percentage of executed instructions for each type of instruction. Instruction Executed P ipeline CPU type instructions (%) w/o hazards ALU 29.4 Load 29.7 Store 14.7 Branch 26.2 2 (w/o prediction) 27% of the load instructions are followed by instructions that need the data being loaded, 47% of the branches are actually.not taken, please assume not taken prediction. a) Please determine the overall cycles...

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