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...
Write a c++ program to load two column of numbers, do arithmetic operations to the data...
Write a c++ program to load two column of numbers, do arithmetic operations to the data points by following the steps below carefully. Also we need to capture the running time in microseconds for each of these and also the time taken for basic operation. Steps to complete. 0. Download the data file named Datafile1.data from the file area of the assignment. 1. Load two columns of data points, each column into a storage area, preferably a vector. 2. Initialize/start...
assume that the following pseudocode is executed in a program module main declare x = 1...
assume that the following pseudocode is executed in a program module main declare x = 1 declare sum = 0 declare max = 5 while ( x < max) Display "x is ", x set x = x + 1 set sum = s + x end while end module after the execution of this program the final value of x is_____ and the final value of sum is_____
Basic arithmetic calculation. Use instruction “li” to initialize register $t1 with a constant value 10. li...
Basic arithmetic calculation. Use instruction “li” to initialize register $t1 with a constant value 10. li $t1, 10   # [$t1] <- 10 finish the following calculation using MIPS assembly code. $t2 = $t1 + $t1 $t3 = $t1 << 2 (shift to left by 2 bits) $t4 = $t1 & 0x0000ffff (bitwise AND) $t5 = $t1 | 0x0000fffff (bitwise OR) $t6 = $t2 + $t3 + $t4 + $t5 Write MIPS assembly code to finish the above calculation and print...
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT