The purpose of this project is to increase your understanding of data, address, memory contents, and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The purpose of this project is to increase your understanding of data, address, memory contents, and strings. You will be expected to apply selected MIPS assembly language instructions, assembler directives and system calls sufficient enough to handle string manipulation tasks. Your task is to make changes to the Project 2 Part A code in order to optimize it for energy consumption using the below assumptions, to achieve appreciably less energy consumption(>=5% energy savings of the unoptimized version for 5 user input sentences: Description and Grading Rubric The MIPS P5600 CPU is based on the MIPS32 ISA architecture, supporting up to six cores achieving the industry's leading CoreMark/MHz score per core. It supports high-performance data parallel operations such as DSP, imaging and media. Dynamic Instruction Count and CPI: 20 points] Dynamic Instruction Count will be evaluated by the MARS4.4-Tools-Instruction Counter To calculate the Dynamic Instruction Count of part A: Dynamic Instruction Count is calculated from the first instruction execution until the completion of a proper exit using syscall, as calculated in the "Instructions so far:" dialog box. Plot a graph of Dynamic Instructions for different sentences with different lengths. (5 points for graph including at least 5 different sentences with different lengths, including screenshots) Calculate the CPI of your program for the above input, assuming all R-type instructions require 7 clocks, all l-type instructions require 5 clocks and all J-type instructions require 3 clock. (10 points for detailed solution and calculations of at least 5 different sentences with different lengths) Plot a graph of CPI for different sentences with different lengths (5 points for graph including at least 5 different sentences with different lengths) Energy Consumption: [60 points] Using the dynamic instruction count MARS4.4-Tools-Instruction Statistics you should be able to calculate the energy consumed by your code using the below assumptions: To calculate the Energy Consumption of part A: Consider the following are the energy consumption per instruction: 1) ALU: 6 nj 2) Jump: 4 nj 3) Branch: 8 nj 4) Memory: 100 nj 5) Other: 9 nj Plot a graph of Energy consumption for different sentences with different lengths before optimization of the code. (10 points for detailed calculation+5 points for graph including at least 5 different sentences with different lengths, include screenshots) Optimize your code to consume appreciably less energy (minimum of 5% energy savings over the unoptimized version on an average for the input sentences chosen) based on the assumptions above. (15 points for code implementations achieving target energy reduction, 5 points for correct outputs and code output formatting, 5 points for code comments, 5 points for energy calculations and energy change percentages achieved over un-optimized code for the 5 different sentences) Explain in detail what was your strategy in terms of changes made in the MIPS code, instructions, algorithm etc. that you applied to reduce the energy consumption? And mention what was the reasoning behind choosing that strategy. (10 points for details and clarity of the explanation.) Plot a graph of Energy consumption for different sentences with different lengths after optimization of the code. (5 points for graph including at least 5 different sentences with different lengths) MIPS/mW: [10 points] Use the information of the two previous sections to determine MIPS/mW for the optimized code as illustrated in Module 8 (Device Technology)-Slide 30 (assume Clock Cycle is 400ps). (10 points for detailed solution and calculations of at least 5 different sentences with different lengths) The purpose of this project is to increase your understanding of data, address, memory contents, and strings. You will be expected to apply selected MIPS assembly language instructions, assembler directives and system calls sufficient enough to handle string manipulation tasks. Your task is to make changes to the Project 2 Part A code in order to optimize it for energy consumption using the below assumptions, to achieve appreciably less energy consumption(>=5% energy savings of the unoptimized version for 5 user input sentences: Description and Grading Rubric The MIPS P5600 CPU is based on the MIPS32 ISA architecture, supporting up to six cores achieving the industry's leading CoreMark/MHz score per core. It supports high-performance data parallel operations such as DSP, imaging and media. Dynamic Instruction Count and CPI: 20 points] Dynamic Instruction Count will be evaluated by the MARS4.4-Tools-Instruction Counter To calculate the Dynamic Instruction Count of part A: Dynamic Instruction Count is calculated from the first instruction execution until the completion of a proper exit using syscall, as calculated in the "Instructions so far:" dialog box. Plot a graph of Dynamic Instructions for different sentences with different lengths. (5 points for graph including at least 5 different sentences with different lengths, including screenshots) Calculate the CPI of your program for the above input, assuming all R-type instructions require 7 clocks, all l-type instructions require 5 clocks and all J-type instructions require 3 clock. (10 points for detailed solution and calculations of at least 5 different sentences with different lengths) Plot a graph of CPI for different sentences with different lengths (5 points for graph including at least 5 different sentences with different lengths) Energy Consumption: [60 points] Using the dynamic instruction count MARS4.4-Tools-Instruction Statistics you should be able to calculate the energy consumed by your code using the below assumptions: To calculate the Energy Consumption of part A: Consider the following are the energy consumption per instruction: 1) ALU: 6 nj 2) Jump: 4 nj 3) Branch: 8 nj 4) Memory: 100 nj 5) Other: 9 nj Plot a graph of Energy consumption for different sentences with different lengths before optimization of the code. (10 points for detailed calculation+5 points for graph including at least 5 different sentences with different lengths, include screenshots) Optimize your code to consume appreciably less energy (minimum of 5% energy savings over the unoptimized version on an average for the input sentences chosen) based on the assumptions above. (15 points for code implementations achieving target energy reduction, 5 points for correct outputs and code output formatting, 5 points for code comments, 5 points for energy calculations and energy change percentages achieved over un-optimized code for the 5 different sentences) Explain in detail what was your strategy in terms of changes made in the MIPS code, instructions, algorithm etc. that you applied to reduce the energy consumption? And mention what was the reasoning behind choosing that strategy. (10 points for details and clarity of the explanation.) Plot a graph of Energy consumption for different sentences with different lengths after optimization of the code. (5 points for graph including at least 5 different sentences with different lengths) MIPS/mW: [10 points] Use the information of the two previous sections to determine MIPS/mW for the optimized code as illustrated in Module 8 (Device Technology)-Slide 30 (assume Clock Cycle is 400ps). (10 points for detailed solution and calculations of at least 5 different sentences with different lengths)
Expert Answer:
Related Book For
Data Modeling and Database Design
ISBN: 978-1285085258
2nd edition
Authors: Narayan S. Umanath, Richard W. Scammel
Posted Date:
Students also viewed these databases questions
-
Write a project management plan. we have a template and project description. we need to edit the template(table of contents) with our own ideas. CPSC 8820-01 Project Management Plan Your Unique...
-
(i) Write down the linear program relaxation for the vertex cover problem and solve the linear program. [6 marks] (ii) Based on the solution of the linear program in (b)(i), derive an integer...
-
Rosa's employer has instituted a flexible benefits program. Rosa will use the plan to pay for her daughter's dental expenses and other medical expenses that are not covered by health insurance. Rosa...
-
Repeat Exercise 15 using n = m = p = 4 and n = m = p = 5. In Exercise 15 0 1 0 y dz dy dx z dz dy dx r-y sin y d: dy da Jo Jo Jo )
-
https://youtu.be/rlBk0CH1rYY Review the budget in the document on the next slide. Using your knowledge that you have gained so far, answer the questions in your journal. Provide as much detail as...
-
The distribution of the ages of the winners of the Tour de France from 1903 to 2016 is approximately bell-shaped. The mean age is 27.9 years, with a standard deviation of 3.3 years. Use the...
-
McNeil Company, a medium-sized manufacturer of microwave ovens, has been an audit client for the past five years. McNeil Co. has been steadily growing and recently hired a new CEO who has decided to...
-
Two resistors are connected in parallel with an 99 volt battery. The resistors have values of R 1 = 7 ohms and R 2 = 55 ohms. What is the current (in amps) in this circuit? Round your answer to two...
-
Prepare a statement of Cash Flows using Direct Method WHISPERING LTD. Comparative Statement of Financial Position Dec. 31, 2024 $68,000 125,000 Cash Accounts receivable Inventory Property, plant, and...
-
In an "Analysis of Alleged Auditor Deficiencies in SEC Fraud Investigations: 1998-2010" why were auditors unable to detect fraud?
-
What do tax evasion, tax avoidance and Tax planning have in common?
-
How are revenues typically recorded with debits and credits?
-
What is the gross profit for October for Jax Company?
-
You are putting together a visualization for your company's financial performance over the year. Why is a waterfall chart ideal for this task?
-
Write a paper on Butler Lumber Company, analyze in detail the Butler Lumber Companys financial statements in terms of ratio analysis, financing operations as well as current asset management in order...
-
d) For die casting processes: 1. What are the most common metals processed using die casting and discuss why other metals are not commonly die casted? 2. Which die casting machines usually have a...
-
Why is it important to test a theory? Why not simply accept a theory if it sounds right?
-
What is the intuition behind the geometric growth in interest?
-
You have $100,000 to donate to your college. You want to endow a perpetual scholarship that makes its first payment in 1 year. If the colleges discount rate is 4%, how large will the annual...
Study smarter with the SolutionInn App