Question: 5. a. Translate the high-level assignment statement, x = x + y; for the example CPU as per its Instruction Set (consisting of 7 machine

5. a. Translate the high-level assignment statement, x = x + y; for the example CPU as per its Instruction Set (consisting of 7 machine instructions). Assume that x and y are 12 bit integer variables available in system RAM at locations F0 and F1 respectively.

b. How many machine instructions your above-translated program has? Calculate the total number of clocks that the program will take to execute (including fetching action). Can you suggest an instruction which if added to the IS of the CPU will help in reducing the total instruction count of the translated program.

c. Relate answer of b to the performance of a CPU. Recall that the execution time for a CPU is given by (IPP x CPI)/Clock rate, where IPP = number of instructions in a program; CPI = average number of clocks required per instruction.

d. For part b, develop the microcode for the additional instructions suggested by you. Note that some additional/modified control signals may be required. Explain the same.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!