Consider the single-cycle 8-bit data path shown below. The A/B-buses carry operand data from internal registers,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the single-cycle 8-bit data path shown below. The A/B-buses carry operand data from internal registers, and the R-bus carries result data to be stored into internal registers. The control unit drives 3-bit register select lines for each bus, sets the ALU function, and so on. A-bus Register file RO-R7 Shifter ALU R-bus snq-g Adjust Control unit A-b (20) Op4(2:0) Op(1:0) Carryin OpAlu(10) R-ban(2:0) CarryFlag OpA 0 6+ (2+3) * 4-3 1 to 6 7 OpB 00 01 10 11 Operand adjust 01 10 11 OpAlu 00 Function Operand adjust Write a short program using a general-purpose register architecture to: (a) Evaluate the expression: No change Shift left N All zeros Function All zeroes B NOT B All ones ALU operation Function B A AND B A XOR B SUM A+B+Cin (b) Encrypt and decrypt a value stored in a register using a simple XOR based symmetric encryption algorithm. For both (a) and (b), indicate the control signals needed to perform each instruction in your program and clearly explain your rationale including the registers (RO, R1, R2 etc.) you intend using. Consider the single-cycle 8-bit data path shown below. The A/B-buses carry operand data from internal registers, and the R-bus carries result data to be stored into internal registers. The control unit drives 3-bit register select lines for each bus, sets the ALU function, and so on. A-bus Register file RO-R7 Shifter ALU R-bus snq-g Adjust Control unit A-b (20) Op4(2:0) Op(1:0) Carryin OpAlu(10) R-ban(2:0) CarryFlag OpA 0 6+ (2+3) * 4-3 1 to 6 7 OpB 00 01 10 11 Operand adjust 01 10 11 OpAlu 00 Function Operand adjust Write a short program using a general-purpose register architecture to: (a) Evaluate the expression: No change Shift left N All zeros Function All zeroes B NOT B All ones ALU operation Function B A AND B A XOR B SUM A+B+Cin (b) Encrypt and decrypt a value stored in a register using a simple XOR based symmetric encryption algorithm. For both (a) and (b), indicate the control signals needed to perform each instruction in your program and clearly explain your rationale including the registers (RO, R1, R2 etc.) you intend using.
Expert Answer:
Related Book For
Computer Architecture Fundamentals And Principles Of Computer Design
ISBN: 9781032097336
2nd Edition
Authors: Joseph D. Dumas II
Posted Date:
Students also viewed these programming questions
-
You need to mark real-time media traffic in Teams meetings so that network administrators can prioritize these packets on the network. What should you do? Select only one answer. From Live events...
-
Repeat question 20 using the vertical control word depicted in Figure 3.42. Question 20 Given the horizontal control word depicted in Figure 3.41 for our simple example machine, develop the micro...
-
Given the horizontal control word depicted in Figure 3.41 for our simple example machine, develop the micro routines required to fetch and execute the ANDM instruction using the steps you outlined in...
-
Use a calculator to approximate the value. Round your answer to two decimal places. arccos(0.051)
-
Several years ago, Brian formed Sigma Corporation, a retail company ineligible for the U.S. production activities deduction. Sigma uses the accrual method of accounting. In 2013, the corporation...
-
(a) Assuming that the cord does not slip as it passes around the pulley, what is the relationship between the angular acceleration of the pulley () and the magnitude of the linear acceleration of the...
-
Assume HPC, Inc., began December with 60 units of inventory that cost a total of $720. During December, HPC, Inc., purchased and sold goods as follows: HPC, Inc., uses perpetual inventory. Under the...
-
J.C. Penney, a retail merchandiser, has its principal place of business in Plano, Texas. It operates retail stores in all 50 states, including 10 stores in Massachusetts, and a direct mail catalog...
-
Additional Information: The difference of Rp140.000.000 between the book value and fair value for notes payable by PT SK refers to the notes payable retired in 2027. The total amount of notes payable...
-
Glenn Foreman, president of Oceanview Development Corporation, is considering submitting a bid to purchase property that will be sold by sealed bid at a county tax foreclosure. Glenns initial...
-
Consider the all-units quantity discount schedule below. Quantity Ordered Price Per Unit $300 $280 $260 $230 $200 1-499 500-999 1000-1499 1500-1999 2000 and over EOQ at that Price 952 986 1023 1087...
-
You are asked to assist in a cost estimate for the production of new shipping containers. Based on the details of the contract, you know that the containers will all be based on a consistent...
-
What is the present value of $183,733 received 20 years from today when the interest rate is 6% per year? $ (Round to the nearest dollar.)
-
4.16 Diva Manufacturing Inc. produces two products: Product A and Product B Product A is a standard product with many competitors. Product B is a new product with few competitors. Sales of Product B...
-
Recall that, in terms of total derivatives, the chain rule says roughly that [D(fog)] = [Df] [Dg] D(fog) = Dfo D or, as matrices Or, to be more precise, using matrices, it says the following:...
-
Your placement mentor advised you that one week prior a court order had issued against the above client of the firm. The said court order was issued by Judge Brownstone of the Superior Court of...
-
What kind of culture does India have?
-
As you rewrite these sentences, replace the cliches and buzzwords with plain language (if you don't recognize any of these terms, you can find definitions online): a. Being a jack-of-all-trades, Dave...
-
What is the most significant difference between computers of the past 10 to 15 years versus those of previous generations?
-
Given the need for user programs to access operating system services, why are traps a better solution than conventional subprogram call instructions?
-
A simple RISC CPU is implemented with a single scalar instruction processing pipeline. Instructions are always executed sequentially except in the case of branch instructions. Given that p b is the...
-
Why is the thermodynamic process also called cyclic process? Explain with suitable example.
-
A mercury manometer reads \(40 \mathrm{~cm}\) at \(30^{\circ} \mathrm{C}\) and \(1 \mathrm{~atm}\). Determine the absolute pressure, given that \(ho_{\mathrm{Hg}}=14.02 \mathrm{~g} /...
-
Define isothermal, isochoric and isobaric processes with suitable examples.
Study smarter with the SolutionInn App