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
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
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...
-
Alan Meer inherits a hotel from his grandmother, Mary, on February 11 of the current year. Mary bought the hotel for $730,000 three years ago. Mary deducted $27,000 of cost recovery on the hotel...
-
The Royal Thai government maintains restrictions on imports of cigarettes. The Tobacco Act of 1966 prohibited the import of all forms of tobacco except by license of the director-general of the...
-
Following are data for four different audit populations to which variables sampling will be applied: Required: Calculate sample size for each population. Assume sampling without replacement and do...
-
PEMS Co. International, Inc., agreed to find a buyer for Rupp Industries, Inc., for a com-mission of 2 percent of the purchase price, which was to be paid by the buyer. Using PEMSs services, an...
-
Explain the difference between a balance sheet, cash flow statement and a budget? (4 marks) From the following items, please estimate the net worth and net cash flow for Ali. (6 marks) Item RM Cash...
-
(1 point) The histogram below gives the length of service of members of the Department of Mathematics and Statistics at a particular university. The classes, in years of service, are 0-4.9, 5-9.9,...
-
Complete your conflict management assessment here and then answer the following questions. What was your preferred Conflict Management Style? Do you have a clear preference or are you divided between...
-
Create one substantial response in which you answer both of the following questions: Is purpose necessary in a career? Include in your response: How you personally define purpose How you personally...
-
Write a comprehensive report between 1200-1500 words on Demand and Supply: Reference Article: https://www.frbsf.org/wp-content/uploads/sites/4/el2022-15.pdf This word count excludes figures,...
-
2. Assume the following is embedded in a complete and correct program. a) How to debug if the code below contains errors? b) What will the following code output after debugging? string s1 '1'; string...
-
Explain what is imagination age and how it relates to equality, diversity and inclusion?
-
Enron, one of the largest corporations to ever file for (Chapter 11) bankruptcy protection, was number 7 on the Fortune 500 list of the largest companies in America as ranked by revenues at the time...
-
The percentage of completion and completed contract methods are described in the FASB ASC. Search the codification to find the paragraphs covering these topics, cite them, and copy the results.
-
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 )?
-
A system has the differential equations \(\left[\begin{array}{lll}5 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 2\end{array} ight]\left[\begin{array}{c}\ddot{x}_{1} \\ \ddot{x}_{2} \\ \ddot{x}_{3}\end{array}...
-
Lagranges equations are used to derive the differential equations for a three degree-of-freedom system resulting in \(\left[\begin{array}{lll}m_{11} & m_{12} & m_{13} \\ m_{21} & m_{22} & m_{23} \\...
-
The following data relate to the manufacturing activities of MilTech company during November: 1. Sales $400,000 2. Purchases $60,700 3. Expenses include: Light and power for manufacturing: $2,700 ...
Study smarter with the SolutionInn App