1. [10] Given an MIPS instruction: Label: beq $s0, $s1, Label. Assume the processor is the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. [10] Given an MIPS instruction: Label: beq $s0, $s1, Label. Assume the processor is the same as the one shown in Figure 4.24 in the textbook. a) What is the value of control bit "ALUSrc"? What operation is the ALU configured to perform? b) What value is the output of "Shift left2" module? PC Instruction [25-0] Add Read address Instruction [31-0] Instruction memory 26 Shift left 2, Instruction [31-26] Instruction [25-21] Instruction [20-16] Instruction [15-11] Instruction [15-0] Jump address [31-0] 28 Control PC +4 [31-28] RegDst Jump Branch MemRead MemtoReg ALUOP MemWrite ALUSrc RegWrite Read register 1 Read register 2 16 Read data 1 Write Read register data 2 Write data Registers Sign- extend 32 Instruction [5-0] Shift left 2 M u ALU Add result Zero ALU ALU result ALU control Address MUX Read data Write Data data memory MIX) FIGURE 4.24 The simple control and datapath are extended to handle the jump instruction. An additional multiplexor (at the upper right) is used to choose between the jump target and either the branch target or the sequential instruction following this one. This multiplexor is controlled by the jump control signal. The jump target address is obtained by shifting the lower 26 bits of the jump instruction left 2 bits, effectively adding 00 as the low-order bits, and then concatenating the upper 4 bits of PC + 4 as the high-order bits, thus yielding a 32-bit address. 1. [10] Given an MIPS instruction: Label: beq $s0, $s1, Label. Assume the processor is the same as the one shown in Figure 4.24 in the textbook. a) What is the value of control bit "ALUSrc"? What operation is the ALU configured to perform? b) What value is the output of "Shift left2" module? PC Instruction [25-0] Add Read address Instruction [31-0] Instruction memory 26 Shift left 2, Instruction [31-26] Instruction [25-21] Instruction [20-16] Instruction [15-11] Instruction [15-0] Jump address [31-0] 28 Control PC +4 [31-28] RegDst Jump Branch MemRead MemtoReg ALUOP MemWrite ALUSrc RegWrite Read register 1 Read register 2 16 Read data 1 Write Read register data 2 Write data Registers Sign- extend 32 Instruction [5-0] Shift left 2 M u ALU Add result Zero ALU ALU result ALU control Address MUX Read data Write Data data memory MIX) FIGURE 4.24 The simple control and datapath are extended to handle the jump instruction. An additional multiplexor (at the upper right) is used to choose between the jump target and either the branch target or the sequential instruction following this one. This multiplexor is controlled by the jump control signal. The jump target address is obtained by shifting the lower 26 bits of the jump instruction left 2 bits, effectively adding 00 as the low-order bits, and then concatenating the upper 4 bits of PC + 4 as the high-order bits, thus yielding a 32-bit address.
Expert Answer:
Answer rating: 100% (QA)
Lets address the issues and provide an accurate explanation for the MIPS instruction Instruction beq ... 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
-
Portray in words what transforms you would have to make to your execution to some degree (a) to accomplish this and remark on the benefits and detriments of this thought.You are approached to compose...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
Differentiate each trigonometric identity to obtain a new (or familiar) identity. sin x (a) tan x cos x (b) sec x= cos x I + cot x (c) sin x + cos x = cse x
-
Suppose a certain outlet chain selling appliances has found that for one brand of stereo system, the monthly demand is 240 when the price is $900. However, when the price is $850, the monthly demand...
-
Bank Reconciliation and Adjusting Entries the cash account of Aguilar Co. showed a ledger balance of $3,969.85 on June 30, 2010. The bank statement as of that date showed a balance of $4,150. Upon...
-
Show that the log-likelihood in equation (12.2) has a maximum at \(\widehat{\mu}=\bar{y}\). n L() Inf(y,) = (-+y; In - In y;!). i=1 i=1 (12.2)
-
Consider a two-stage rocket made up of two engine stages, each of inertia m when empty, and a payload of inertia m . Stages 1 and 2 each contain fuel of inertia m , so that the rocket's inertia...
-
Tucker Tutoring Service Company recorded the following cash transactions for the year: Paid $55,000 for salaries. Paid $7,000 to purchase office equipment. Paid $6,000 for utilities, advertising and...
-
The company "The Twilight Company" generates with its current assets flows of USD2,250,000 in perpetuity (You must calculate the perpetuity). In year zero (0) he is presented with the opportunity to...
-
The fund manager would like to reduce the market risk exposure by selling shares. Why is it impracticable to do so? Explain in details what hedging strategy you would recommend the hedge fund. Give...
-
Suppose your company, based in Sydney Australia, just received 10million USD. The account bank provides AUD/USD quotes as 0.7895-05. At what FX rate your company will complete the FX transaction?
-
Complete the table through 2002 to 2005 using the information below: Cash A/R Inventory Total Current Assets Land, Plant and Equipment net Other Assets Total Assets A/P Current Portion of LT Debt...
-
The BC security analyst group needs to make investment recommendation as of September 31, 2012 for Best Buy to its clients. To estimate a fundamental value of the company, the group has decided to...
-
What total amount was paid for expenses during the current year? What amount was reported as net income for the current year? What amount should be reported as total current assets at December 31,...
-
In a priority listing method to shut down a unit from the list, if the number of hours is less than minimum shut down time for the unit, then O Drop the unit from the list Drop the unit & find the...
-
The manager for retail customers, Katie White, wants to hear your opinion regarding one business offer she has received from an entrepreneur who is starting a mobile phone app called Easy Money. The...
-
A simple check for overfl ow during addition is to see if the CarryIn to the most significant bit is not the same as the CarryOut of the most significant bit. Prove that this check is the same as in...
-
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,...
-
Th e table below shows 32-bit values of an array stored in memory. Address .............Data 24 ..........................2 38 ..........................4 32 ..........................3 36...
-
Tesco plc is one of the worlds largest food retailers. Fiscal year 2014 (the year ended February 28, 2015) was a rocky year for the retailer. The companys sales and margins had come under pressure as...
-
Exhibit P2 displays a selected set of financial ratios for the years 20152017 of three fashion retailers: USbased Gap, UK-based Next, and Japan-based Uniqlo (Fast Retailing). Using this set of...
-
In 2009, following the worldwide credit crisis, several US-based car manufacturers, such as Chrysler and General Motors, approached bankruptcy and needed to be bailed out by the US government and...
Study smarter with the SolutionInn App