Question

In: Electrical Engineering

Assume that for a given program 70% of the executed instruction are arithmetic, 10% are load/store,...

Assume that for a given program 70% of the executed instruction are arithmetic, 10% are load/store, and 20% are branch.
i. Given the instruction mix and the assumption that an arithmetic instruction requires 2 cycles, a load/store instruction takes 6 cycles, and a branch instruction takes 3 cycles, ?nd the average CPI.
ii. For a 25% improvement in performance, how many cycles, on average, may an arithmetic instruction take if load/store and branch instructions are not improved at all.

Solutions

Expert Solution


Related Solutions

Assume for arithmetic, load/store, and branch instructions, a processor has CPIs of 1, 12, and 5,...
Assume for arithmetic, load/store, and branch instructions, a processor has CPIs of 1, 12, and 5, respectively. Also assume that on a single processor a program requires the execution of 2.56E9 arithmetic instructions, 1.28E9 load/store instructions, and 256 million branch instructions. Assume that each processor has a 2 GHz clock frequency. Assume that, as the program is parallelized to run over multiple cores, the number of arithmetic and load/store instructions per processor is divided by 0.7 x p (where p...
Question: A robot is given 1 random instruction every second for 10 seconds. Each instruction will...
Question: A robot is given 1 random instruction every second for 10 seconds. Each instruction will be either a command to move 1 inch to the left, or 1 inch to the right. The likelihoods of the instruction being a command to move to the left and right are 'p' and '1-p', respectively. Find: a) What is the expectation of the robot's final position with respect to its starting position. b) What is the variance we might expect for observations...
Write a program (preferably in Java) that, given an arithmetic expression, first transforms it to a...
Write a program (preferably in Java) that, given an arithmetic expression, first transforms it to a postfix form, and then computes its value (by using stack-based algorithms). Assume that all the numbers in the arithmetic expression are one-digit numbers, i.e., each of these numbers is either 0, or 1, or 2, ..., or 9. For example, your program should correctly process expressions like 2+3*4, but there is no need to process expressions like 11+22.
In C++ Write a program that will conduct a quiz consists of 10 arithmetic questions and...
In C++ Write a program that will conduct a quiz consists of 10 arithmetic questions and display the final score as ‘Your score in the quiz is X’ with a response message in the next line. A response message will be as follows based on the student’s performance: a. Number of correct answers >= 9: Excellent, your are passed with ‘A’ grade! b. Number of correct answers >= 7, but less than 9: Very Good, you are passed with ‘B’...
---------------------------------------------------------------------------------------------------------------- C++ //code a program for the following the given Instruction. Geometry Calculator 1. Calculate the...
---------------------------------------------------------------------------------------------------------------- C++ //code a program for the following the given Instruction. Geometry Calculator 1. Calculate the Area of a Circle 2. Calculate the Area of a Rectangle 3. Calculate the Area of a Triangle 4. Quit Enter your choice (1-4): If the user enters 1, the program should ask for the radius of the circle and then display its area. Use 3.14159 for pi. #03   If the user enters 2, the program should ask for the length and width of...
1). Assume that, for a program Pro, compiler A and B both generate 1.0E9 instructions (instruction...
1). Assume that, for a program Pro, compiler A and B both generate 1.0E9 instructions (instruction count=1.0E9). CPI_A= 1 and CPI_B=2 The processor A has a clock cycle time of 1 ns. And the processor B has a clock cycle time 2 ns. A).To execute the same program Pro, which processor is faster and by how much? B). To improve the slower processor in problem 1a, what can you do? (list all possible solutions)
Assume that Company A acquires 70% of Company for a cash price of $10 million when...
Assume that Company A acquires 70% of Company for a cash price of $10 million when the share capital and reserves of Company B are: Share capital $8 million Retained earnings $2 million $10 million (a) What amount will be shown in the consolidated statement of financial position for goodwill pursuant to AASB 3 assuming that any non-controlling interest in the acquired is measured at fair value? (b) What amount will be shown in the consolidated statement of financial position...
1a). A 70 kg male is given an injection of 10 mg of morphine the peak...
1a). A 70 kg male is given an injection of 10 mg of morphine the peak plasma concentration of morphine immediately after the injection is 4.5 mcg / dL. What is the volume of distribution of morphine? Express your answer in L/kg. 1b). 70 kg male takes two 325 mg aspirin tablets, given that the bioavailability of aspirin is 68% and volume of distribution of aspirin is 0.15 L/kg, what would the plasma concentration of aspirin 10 minutes after the...
1a). A 70 kg male is given an injection of 10 mg of morphine the peak...
1a). A 70 kg male is given an injection of 10 mg of morphine the peak plasma concentration of morphine immediately after the injection is 4.5 mcg / dL. What is the volume of distribution of morphine? Express your answer in L/kg. 1b). 70 kg male takes two 325 mg aspirin tablets, given that the bioavailability of aspirin is 68% and volume of distribution of aspirin is 0.15 L/kg, what would the plasma concentration of aspirin 10 minutes after the...
Write a program to add 10 bytes of data and store the result in registers R30...
Write a program to add 10 bytes of data and store the result in registers R30 and R31. The bytes are stored in the Program memory starting at $200. The data would look as follows: MYDATA: .DB 92,34,84,129,... ;pick your own data.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT