Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

=+With whom does the firm have to negotiate?

Answered: 1 week ago

Question

=+Are there shop stewards?

Answered: 1 week ago