Given the following assembly program for a CPU with 16 GPRS, 16-bit data and 8-bit address...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Given the following assembly program for a CPU with 16 GPRS, 16-bit data and 8-bit address busses. move #10, R1 move R1, R2 add R4, R2, R10 mul #2, R10, R8 move R8,M[100] ; load constant value 10 in R1 ; move (copy) content of R1 into R2 ; add R4 to R2 and puts result in R10 ; multiply R10 by 2 and put result in R8 ; move (copy) content of R8 into Memory at address 100 a) How many bits would each instruction require to be encoded in binary? b) For every instruction in the above program, provide a possible binary encoding. c) Calculate the total memory (in bytes) needed to store the program. d) For every instruction in the above program, draw in a flow chart the micro execution steps. e) Assuming an execution on a 3 GHz CPU, where every step requires a number of clock cycles (cc) as shown below, calculate the execution time (in ns) for every instruction, then for the whole program. Internal Register Transfers 1 cc PC Increment 2 cc Decoding 1 cc Memory Access 10 cc Addition 3 cc Activate Multiplication 5 cc Go to Setti Given the following assembly program for a CPU with 16 GPRS, 16-bit data and 8-bit address busses. move #10, R1 move R1, R2 add R4, R2, R10 mul #2, R10, R8 move R8,M[100] ; load constant value 10 in R1 ; move (copy) content of R1 into R2 ; add R4 to R2 and puts result in R10 ; multiply R10 by 2 and put result in R8 ; move (copy) content of R8 into Memory at address 100 a) How many bits would each instruction require to be encoded in binary? b) For every instruction in the above program, provide a possible binary encoding. c) Calculate the total memory (in bytes) needed to store the program. d) For every instruction in the above program, draw in a flow chart the micro execution steps. e) Assuming an execution on a 3 GHz CPU, where every step requires a number of clock cycles (cc) as shown below, calculate the execution time (in ns) for every instruction, then for the whole program. Internal Register Transfers 1 cc PC Increment 2 cc Decoding 1 cc Memory Access 10 cc Addition 3 cc Activate Multiplication 5 cc Go to Setti
Expert Answer:
Answer rating: 100% (QA)
a To determine the number of bits required to encode each instruction in binary we need to consider the instruction format for the CPU Since we have a ... View the full answer
Related Book For
Computer Organization and Design The Hardware Software Interface
ISBN: 978-0124077263
5th edition
Authors: David A. Patterson, John L. Hennessy
Posted Date:
Students also viewed these programming questions
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
Describe and justify an algorithm for finding the shortest distance between each pair of vertices in an undirected graph in which each edge has a given positive length. If there is no path between a...
-
Ice Cool produces two different models of air conditioners. The activities, costs, and cost drivers associated with the production processes follow. Budgeted Activity Usage 7,600 Activity Machining...
-
Lassen Corporation sold a machine to a machine dealer for $25,000. Lassen bought the machine for $55,000 and has claimed $15,000 of depreciation expense on the machine. What gain or loss does Lassen...
-
A travel agent wanted to know whether the price (in dollars) of Marriott, Hyatt, and Sheraton Hotels differed significantly. She knew that location of the hotel is a factor in determining price, so...
-
An investment is guaranteed to have a unique value of IRR if which of the following is true? a. Alternating positive and negative cash flows b. An initial negative cash flow followed by all positive...
-
Guld's Glass, Inc., has three divisions: Commercial, Nonprofit, and Residential. The segmented income statement for last year revealed the following: 1. How will Guld's Glass, Inc., be affected if...
-
Implement the Boolean function F(A.B.C.D) - (0,1,3,4,8,9,15) with a. a multiplexer b. a decoder Question 2 Draw the NAND gate representation of G A+ B'C' + DC. [10 marks] [5 marks] [5 marks]
-
What role do reference groups have in causing people to participate in the negative behavior? How could reference groups be used to change this negative behavior?
-
When quantity demanded is greater than quantity supplied, there ____. a) is a shortage b) is a surplus c) may be either a shortage or a surplus d) may be neither a shortage nor a surplus
-
Describe the difference between client-side and supply-side research. What other terms are used to refer to companies that are involved in supply-side research?
-
What effects do relative inflation rates have on relative interest rates?
-
Explain how to calculate depreciation using the reducing balance method.
-
Who first introduced focus groups? What type of research are they considered to be?
-
[4 points] Consider that you are writing a program in a hypothetical programming language. The following statement use integers a and res, and an integer retur ning function fun that takes aninteger...
-
Sue Deliveau opened a software consulting firm that immediately paid $2,000 for a computer. Was this event a transaction for the business?
-
A friend would like you to build an electronic eye for use as a fake security device. Th e device consists of three lights lined up in a row, controlled by the outputs Left , Middle, and Right,...
-
The Hewlett-Packard 2114, 2115, and 2116 used a format with the left most 16 bits being the fraction stored in twos complement format, followed by another 16-bit fi eld which had the left most 8 bits...
-
Based on your answers to 3.32 and 3.33, does (3.984375 10 -1 + 3.4375 10 -1 ) + 1.771 10 3 = 3.984375 10 -1 + (3.4375 10 -1 + 1.771 10 3 )?
-
If 25 women are randomly selected, find the probability that the mean of their red blood cell counts is less than 4.444. Assume that red blood cell counts of women are normally distributed with a...
-
Find the probability of an IQ less than 85.
-
What percentage of women have red blood cell counts in the normal range from 4.2 to 5.4? Assume that red blood cell counts of women are normally distributed with a mean of 4.577 and a standard...
Study smarter with the SolutionInn App