10. (10 pts) Consider an ISA made up of only the following 12 similar-to-LEGV8 instructions. ADD...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
10. (10 pts) Consider an ISA made up of only the following 12 similar-to-LEGV8 instructions. ADD R1, R2, R3 SUB R1, R2, R3 AND R1, R2, R3 OR R1, R2, R3 ADDI R1, R2, #5 ORI R1, R2, #5 LDUR R1, [R2, #4] STUR R1, [R2, #4] MUL R1, R2, R3 CBZ R1, label CBNZ R2, label B label // add contents of R3 to R2 and put in R1 //sub contents of R3 to R2 and put in R1 // and contents of R3 to R2 and put in R1 // or contents of R3 to R2 and put in R1 // add contents of R2 and 5 and put in R1 // or the contents of R2 and 5 and put in R1 // load contents of memory addressed by R2 and put in R1 // store contents of R1 to memory addressed by R2 // multiply contents of R3 with R2 and put in R1 // if contents of R1 does not equal R2, goto label // if contents of R1 equals R2, goto label // goto label a) How many bits for opcode are needed in order to encode the above instructions? Rd b) If the ISA has only 7 general-purpose registers (R0 thru R6) and it uses 16 bits to represent each of the above instructions. It could have several encoding formats. How many bits are needed for each register? What is the largest immediate value that can appear in the instruction? How far can you branch (i.e., can jump how many instructions)? Why? c) If all registers are 16-bit, what is the approximate size of the data memory? Why? 10. (10 pts) Consider an ISA made up of only the following 12 similar-to-LEGV8 instructions. ADD R1, R2, R3 SUB R1, R2, R3 AND R1, R2, R3 OR R1, R2, R3 ADDI R1, R2, #5 ORI R1, R2, #5 LDUR R1, [R2, #4] STUR R1, [R2, #4] MUL R1, R2, R3 CBZ R1, label CBNZ R2, label B label // add contents of R3 to R2 and put in R1 //sub contents of R3 to R2 and put in R1 // and contents of R3 to R2 and put in R1 // or contents of R3 to R2 and put in R1 // add contents of R2 and 5 and put in R1 // or the contents of R2 and 5 and put in R1 // load contents of memory addressed by R2 and put in R1 // store contents of R1 to memory addressed by R2 // multiply contents of R3 with R2 and put in R1 // if contents of R1 does not equal R2, goto label // if contents of R1 equals R2, goto label // goto label a) How many bits for opcode are needed in order to encode the above instructions? Rd b) If the ISA has only 7 general-purpose registers (R0 thru R6) and it uses 16 bits to represent each of the above instructions. It could have several encoding formats. How many bits are needed for each register? What is the largest immediate value that can appear in the instruction? How far can you branch (i.e., can jump how many instructions)? Why? c) If all registers are 16-bit, what is the approximate size of the data memory? Why?
Expert Answer:
Related Book For
Computer organization and architecture designing for performance
ISBN: 978-0136073734
8th edition
Authors: william stallings
Posted Date:
Students also viewed these algorithms questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family. The Incisors own a rental beach house in Hawaii. The beach house was rented for the full year during 2012...
-
In Problems 6374, perform the indicated operations and simplify the result. Leave your answer in factored form. 3x x - 1 x - 4 18 x - 2x + 1 2
-
Assume that Naperville Co. will use equity to finance a project in Switzerland, while Lombard Co. will rely on a dollar-denominated loan to finance a project in Switzerland, and that Addison Co. will...
-
Automatic fiscal policy ________ A. Requires an action of the government B. Is weak unless the government cuts its outlays to reduce the deficit C. Operates as the economy moves along its business...
-
What factors should companies consider when they are choosing a risk management strategy?
-
Timberly Construction negotiates a lump- sum purchase of several assets from a company that is going out of business. The purchase is completed on January 1, 2013, at a total cash price of $ 900,000...
-
Oriole Inc. sells prepaid telephone cards to customers in its convenience stores. When Oriole sells cards, it then pays the telecommunications company, Sheridan, for the value of the cards less a 20%...
-
Under current standards of the FASB, liabilities include a. only legal obligations b. both legal and illegal obligations c. both legal and nonlegal obligations d. legal, nonlegal, and illegal...
-
Suppose that all capital gains are taxed at a 24% rate, and that the dividend tax rate is 38%. Arbuckle Corp. is currently trading for $32 and is about to pay a $4 special dividend. a. Absent any...
-
Your firm needs to raise $97.7 million in funds. You can borrow short term at a spread of 1% over LIBOR. Alternatively, you can issue 10-year, fixed-rate bonds at a spread of 2.57% over 10-year...
-
Bond types and valuation A zero-coupon bond pays $1,000, 10 years from today, but it pays no interest between now and then. a. If you require a 5% return on such a bond, what would you be willing to...
-
Maryland Light, a U.S. light fixtures manufacturer, is considering an investment in Japan. The dollar cost of equity for Maryland Light is 13.34%. You are in the corporate treasury department, and...
-
Que Corporation pays a regular dividend of $1 per share. Typically, the stock price drops by $0.84 per share when the stock goes ex-dividend. Suppose the capital gains tax rate is 18%, but investors...
-
Explain the basis behind workers compensation. What was the historical background that generated this line of insurance? How does workers compensation work in terms of coverage, rating and premium...
-
A business had revenues of $280,000 and operating expenses of $315,000. Did the business (a) Incur a net loss (b) Realize net income?
-
A common unit of measure for failure rates of electronic components is the Failure unIT (FIT), expressed as a rate of failures per billion device hours. Another well known but less used measure is...
-
Suppose we wished to apply the x86 CMP instruction to 32-bit operands that contained numbers in a floating-point format. For correct results, what requirements have to be met in the following areas?...
-
Suppose the program statement for (i = 1; i
-
One of the models used for predicting the severity of head injury is shown in Fig. 5.68 where \(f(t)\) denotes the force of blow to the head, \(m_{1}\) is the mass of that part of the head which lies...
-
Write the equations of motion of a multidegree-of-freedom system in matrix form using a. the flexibility matrix, and b. the stiffness matrix.
-
What is a generalized mass matrix?
Study smarter with the SolutionInn App