11: 12: 13: 14: 15: 16: Question 2: MIPS 5-stage Pipeline (35 pts) For this question,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
11: 12: 13: 14: 15: 16: Question 2: MIPS 5-stage Pipeline (35 pts) For this question, your first task is to write the MIPS instructions based on the provided machine codes. You may assume the first line of the code is stored at the memory location 1000. You might want to use the table to remember the Operation and Function code of different instructions. Please also remember the St0 is accessed with Register 8, St1 is accessed with Register 9, etc. 0x014B4820 0x014B6022 0x018D7020 0x018D7822 0x112E03E8 0x112E03F0 Instructions Add Subtract Add Immediate Load Word Store Word Jump Branch on Equal Branch on Not Equal Op. Code 0 0 8 35 43 2 45 Fcn. Code 32 34 N.A. N.A. N.A. N.A. N.A. N.A. (a) Please use the above space next to the machine code to write down the MIPS code. No partial credit! (b) Assume you run the code, and discuss what could go wrong by assigning non-negative integers to the registers as a test case. (c) Calculate how many clock cycles will take the execution of this segment on the simple pipeline without forwarding when the result of the branch instruction (new PC content) is available after the WB stage. Show the timing of one loop cycle in the Figure below. No partial credit! 1 2 3 4 5 678 9 10 11 12 13 14 15 16 17 18 19 20 (d) Discuss what would be different from part (c) if we enable forwarding. 11: 12: 13: 14: 15: 16: Question 2: MIPS 5-stage Pipeline (35 pts) For this question, your first task is to write the MIPS instructions based on the provided machine codes. You may assume the first line of the code is stored at the memory location 1000. You might want to use the table to remember the Operation and Function code of different instructions. Please also remember the St0 is accessed with Register 8, St1 is accessed with Register 9, etc. 0x014B4820 0x014B6022 0x018D7020 0x018D7822 0x112E03E8 0x112E03F0 Instructions Add Subtract Add Immediate Load Word Store Word Jump Branch on Equal Branch on Not Equal Op. Code 0 0 8 35 43 2 45 Fcn. Code 32 34 N.A. N.A. N.A. N.A. N.A. N.A. (a) Please use the above space next to the machine code to write down the MIPS code. No partial credit! (b) Assume you run the code, and discuss what could go wrong by assigning non-negative integers to the registers as a test case. (c) Calculate how many clock cycles will take the execution of this segment on the simple pipeline without forwarding when the result of the branch instruction (new PC content) is available after the WB stage. Show the timing of one loop cycle in the Figure below. No partial credit! 1 2 3 4 5 678 9 10 11 12 13 14 15 16 17 18 19 20 (d) Discuss what would be different from part (c) if we enable forwarding. 11: 12: 13: 14: 15: 16: Question 2: MIPS 5-stage Pipeline (35 pts) For this question, your first task is to write the MIPS instructions based on the provided machine codes. You may assume the first line of the code is stored at the memory location 1000. You might want to use the table to remember the Operation and Function code of different instructions. Please also remember the St0 is accessed with Register 8, St1 is accessed with Register 9, etc. 0x014B4820 0x014B6022 0x018D7020 0x018D7822 0x112E03E8 0x112E03F0 Instructions Add Subtract Add Immediate Load Word Store Word Jump Branch on Equal Branch on Not Equal Op. Code 0 0 8 35 43 2 45 Fcn. Code 32 34 N.A. N.A. N.A. N.A. N.A. N.A. (a) Please use the above space next to the machine code to write down the MIPS code. No partial credit! (b) Assume you run the code, and discuss what could go wrong by assigning non-negative integers to the registers as a test case. (c) Calculate how many clock cycles will take the execution of this segment on the simple pipeline without forwarding when the result of the branch instruction (new PC content) is available after the WB stage. Show the timing of one loop cycle in the Figure below. No partial credit! 1 2 3 4 5 678 9 10 11 12 13 14 15 16 17 18 19 20 (d) Discuss what would be different from part (c) if we enable forwarding. 11: 12: 13: 14: 15: 16: Question 2: MIPS 5-stage Pipeline (35 pts) For this question, your first task is to write the MIPS instructions based on the provided machine codes. You may assume the first line of the code is stored at the memory location 1000. You might want to use the table to remember the Operation and Function code of different instructions. Please also remember the St0 is accessed with Register 8, St1 is accessed with Register 9, etc. 0x014B4820 0x014B6022 0x018D7020 0x018D7822 0x112E03E8 0x112E03F0 Instructions Add Subtract Add Immediate Load Word Store Word Jump Branch on Equal Branch on Not Equal Op. Code 0 0 8 35 43 2 45 Fcn. Code 32 34 N.A. N.A. N.A. N.A. N.A. N.A. (a) Please use the above space next to the machine code to write down the MIPS code. No partial credit! (b) Assume you run the code, and discuss what could go wrong by assigning non-negative integers to the registers as a test case. (c) Calculate how many clock cycles will take the execution of this segment on the simple pipeline without forwarding when the result of the branch instruction (new PC content) is available after the WB stage. Show the timing of one loop cycle in the Figure below. No partial credit! 1 2 3 4 5 678 9 10 11 12 13 14 15 16 17 18 19 20 (d) Discuss what would be different from part (c) if we enable forwarding.
Expert Answer:
Answer rating: 100% (QA)
a Here is the MIPS code corresponding to the provided machine code 0x014B4820 add t0 t1 t2 0x014B6022 sub t0 t0 t3 0x018D7020 add t6 t4 t5 0x018D7822 ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Define a data warehouse. 2. Describe the differences between a database and a data warehouse. 3. List four different databases that can be used to build a data warehouse. What are the features of...
-
A new product is being considered for market. An outlay of $16M is required for equipment and $4M for additional net working capital. Management expects the project to have a 4-year useful life and...
-
A researcher wanted to find out if there was difference between older movie goers and younger movie goers with respect to their estimates of a successful actors income. The researcher first...
-
An impure sample (0.70 g) of potassium carbonate (K2CO3) is dissolved in enough water to make 200.0 mL of solution A. A 20.00 mL aliquot of solution A is taken and put into an Erlenmeyer flask. To...
-
The board can be adjusted vertically by tilting it up and sliding the smooth pin A along the vertical guide G. When placed horizontally, the bottom C then bears along the edge of the guide, where the...
-
A car trip lasts 3h 36 min at 86 km/h, including a half-hour break for lunch. How much time would we save by driving at 100 km/h without taking a break? (When the automobile is moving, we assume that...
-
A rotary plug valve needs to be replaced to repair a machine, and the probabilities that the replacement will be a flange style (low pressure), flange style (high pressure), wafer style, or lug style...
-
When baseball players throw the ball in from the outfield, they usually allow it to take one bounce before it reaches the infield, on the theory that the ball arrives sooner that way. Suppose that...
-
Given the following coding: read (x); read (y); while x #y loop if x > y then x=x-y; else y=y-x; end if; end loop; gcd := x; a) Draw the flow graph. b) Calculate the cyclomatic complexity using THREE...
-
On January 1, 2019, a U.S. company purchased 100% of the outstanding stock of Ventana Grains, a company located in Latz City, New Zealand. Ventana Grains was organized on January 1, 2000. All the...
-
5. Calculate the equilibrium point given the following algebraic expression of demand and supply. a. If the equation for a market demand curve is Qa= 100- 0,5P and the equation for a market supply...
-
How is the three-month contract on SOFR settled?
-
What overnight rates are expected to replace LIBOR?
-
What is the purpose of applying a convexity adjustment to the rates obtained from futures quotes?
-
It is May 5, 2021. The quoted price of a government bond with a 12% coupon that matures on July 27, 2034, is 110-17. What is the cash price?
-
What is the formula for the minimum variance hedge ratio when daily settlement is ignored?
-
E Consider the following code: public void test (int x) { int y; if (x % 2 == 0) y = 3; else if (x>9) y = 5; else y = 1; System.out.println("y"+y); } Which of the following test data sets would test...
-
A fuel pump sends gasoline from a car's fuel tank to the engine at a rate of 5.88 10-2 kg/s. The density of the gasoline is 735 kg/m3, and the radius of the fuel line is 3.18 10-3 m. What is the...
-
Skyler is covered by his company's health insurance plan. The health insurance costs his company $3,500 a year. During the year, Skyler is diagnosed with a serious illness and the health insurance...
-
John Williams (age 42) is a single taxpayer, and he lives at 1324 Forest Dr., Reno, NV 89501. His Social Security number is 555-94-9358. John's earnings and withholdings as the manager of a local...
-
Janie graduates from high school in 2012 and enrolls in college in the fall. Her parents pay $4,000 for her tuition and fees. a. Assuming Janie's parents have AGI of $170,000, what is the American...
-
Normal (nonmutant) tumor-suppressor genes often function a. as negative regulators of cell division. b. in the maintenance of genome integrity. c. in the stimulation of cell division. d. as both a...
-
The underlying cause(s) of epigenetic changes associated with cancer may be a. mutations in genes that encode chromatin-modifying proteins. b. environmental agents that alter the function of...
-
Most forms of cancer involve a. the activation of a single oncogene. b. the inactivation of a single tumor-suppressor gene. c. the activation of multiple oncogenes. d. the activation of multiple...
Study smarter with the SolutionInn App