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
-
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)
-
Bandaleria Company's projected profit for the coming year is as follows: Required: 1. Compute the break-even point in units. 2. How many units must be sold to earn a profit of $1,600,000? 3. Compute...
-
The following are independent situations. Situation 1: Conchita Cosmetics acquired 10% of the 200,000 shares of common stock of Martinez Fashion at a total cost of $13 per share on March 18, 2020. On...
-
Extreme Machine manufactures machines and parts for various industries; they have an office in Youngstown, Ohio. Avery Dennison manufactures and sells labels from a plant in Mentor, Ohio. They use...
-
Jackplum Vineyards, whose fiscal year begins on November 1, has just completed a record-breaking year producing and selling wine. Its inventory account balances on October 31 of this year were...
-
Direct Labor Budgeted $14,200, Actual $14,200, Indirect Labor Budgeted 5,800, Actual 5,400, Utilities Budgeted 1,900, Actual 2,200, Rent Budgeted 3500, Actual 3500, Marketing Budgeted 150, Actual...
-
Entity A hires out motor trucks to its part-time drivers to generate revenue. The draft accounts at the end of the reporting period of 31 December 2017 included the motor trucks which were bought on...
-
What molecular mechanisms underlie the regulation of mitochondrial dynamics, including fission, fusion, and mitophagy, and how do disruptions in these processes contribute to cellular dysfunction and...
-
In an expert tone, explain the following: What is the product mix? How does it relate to the strategy of an organization? Why is it important to understand the product mix? Molson Coors' Product Mix...
-
What are the implications of imbalanced class distributions on classification performance, and what advanced techniques can be employed to mitigate bias and improve model generalization?
-
Firm A is interested in acquiring Firm B. According to Firm A's CEO, the merger is expected to result in pre-tax cost savings of $400 million by the end of the first year, and then grow at 2% per...
-
The Board of Directors is delighted that marketing is now a key function in the business and there is a marketing expert of your calibre, who can advise them on how marketing could revolutionise the...
-
6.2-2 Acompact disc (CD) records audio signals digitally by using PCM. Assume that the audio signal bandwidth equals 15 kHz. (a) Ifthe Nyquist samples are uniformly quantized into L = 65,536levels...
-
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...
-
Mexico has labor laws that specify a daily (rather than hourly) minimum wage. In 2018, the daily minimum wage in Mexico was about 103 pesos per day, and the exchange rate between Mexican pesos and...
-
In 2017, an estimated 7.7 million Mexican-born immigrants were employed in the United States. a. If 60 percent of the Mexican-born immigrants remitted money to family members in Mexico in 2017, and...
-
A mathematical approximation called the rule of 70 tells us how long it will take for something to double in size if it grows at a constant rate. The doubling time is approximately equal to the...
Study smarter with the SolutionInn App