Homework-01

pdf

School

George Mason University *

*We aren’t endorsed by this school

Course

755

Subject

Computer Science

Date

Jan 9, 2024

Type

pdf

Pages

4

Uploaded by CountInternetChimpanzee22

Report
1 Homework 01 Fall 2020 (The year of pandemic that we all are storming through!) Your Name: ____________________________ Homework assignment from Appendix A of Computer Architecture: A Quantitative approach by Hennessy and Patterson (6 th Edition) Submit all your solutions electronically to Canvas in a PDF format. TOTAL POINTS = 100 Question 1 (10 points) Consider a C struct that includes the following members: Note that for C, the compiler must keep the elements of the struct in the same order as given in the struct definition. For a 32-bit machine, what is the size of the foo struct? What is the minimum size required for this struct, assuming you may arrange the order of the struct members as you wish? Use padding where need be. Read Appendix A.3 (in the 5 th or the 6 th edition) and lecture notes to work through your answers. Question 2 (10 points) The design of MIPS (or RISC V) provides for 32 general-purpose registers and 32 floating-point registers. If registers are good, are more registers better? List and discuss as many trade-offs as you can that should be considered by instruction set architecture designers examining whether to, and how much to, increase the number of MIPS registers. struct foo { char a; bool b; int c; double d; short e; float f; double g; char * cptr; float * fptr; int x; };
2 Refer to Appendix A.2 (in the 5 th or the 6 th edition) and/or Class notes. Question 3 (5 points) Translate the following hexadecimal to decimal 0xabcdef12 Question 4 (30 points {each question carries 10 points} ) One challenge for architects is that the design created today will require several years of implementation, verification, and testing before appearing on the market. This means that the architect must project what the technology will be like several years in advance. Sometimes, this is difficult to do. Refer to the figure below (taken from the 6 th edition) Figure 1.11 Read Section 1.5 in the 5 th or the 6 th edition to better understand the question and give your answers. For each of the questions, write the steps and not just the final answer. a) The increase in clock rates once mirrored this trend. Had clock rates continued to 1 10 100 1000 10,000 1978 1980 1982 1984 1986 1988 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 2012 2014 2016 2018 Clock rate (MHz) Intel Pentium4 Xeon 3200 MHz in 2003 Intel Skylake Core i7 4200 MHz in 2017 Intel Pentium III 1000 MHz in 2000 Digital Alpha 21164A 500 MHz in 1996 Digital Alpha 21064 150 MHz in 1992 MIPS M2000 25 MHz in 1989 Digital VAX-11/780 5 MHz in 1978 Sun-4 SPARC 16.7 MHz in 1986 15%/year 40%/year 2%/year Figure 1.11 Growth in clock rate of microprocessors in Figure 1.1 . Between 1978 and 1986, the clock rate improved less than 15% per year while performance improved by 22% per year. During the renaissance period of 52% per- formance improvement per year between 1986 and 2003, clock rates shot up almost 40% per year. Since then, the clock rate has been nearly flat, growing at less than 2% per year, while single processor performance improved recently at just 3.5% per year.
3 climb at the same rate as in the 1990s, approximately how fast would clock rates be in 2025? b) At the current rate of increase, what are the clock rates now projected to be in 2025? c) What has limited the rate of growth of the clock rate, and what are architects doing with the extra transistors now to increase performance? For (a) and (b) Hint: Use compound interest formula New Clock rate (in GHz or MHz) F= Given clock rate * (1+r) n r: rate of growth and n: number of years Question 5 (35 points) Compare and contrast two different laptops. One that is current (time frame 2019-2020, could be yours) and the other one from the 2010-2013 time frame. Introduce each of the architectures individually. Include a bibliography of resources used. You can definitely use online resources for references, but no sentence must be copied and pasted from the online resources. Rephrase them in your own words. Submit a minimum of two-pages single-spaced write-up. Analyze the following components to each architecture: 1. Price 2. Graphic Card (Intel, AMD, NVIDIA) or no graphic card? 3. CPU Architecture e.g. Intel’s? AMD’s? or ? 4. Memory hierarchy/structure and capacity 5. Hard drive – HDD/SSD and capacity 6. Cooling system (fan,?) 7. Battery life (capacity)? 8. Frequency? 9. Vendor (Intel, Dell, Sony, Apple, IBM, Acer….) ? 10. Performance? Recommended Resources Pcworld, pcmag, cnet and any other site you think is legit GRADING You will be graded on your analysis of the architectures you decide to compare and contrast. 3 points allocated for your findings on the above 10 points, totaling to 30 points. 5 points allocated for your summary and assessment on which laptop is superior, in your opinion and why (hint: assessment could be based on what are ‘your’ needs for such a laptop). Note: There is no “right” answer J ! So your opinion is what matters for this question.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
4 Question 6 (10 points) Listen to Prof. David Patterson’s talk from the Virtual Heidelberg Forum 2020 and list 3 of your “oh my goodness or aha” moments from the talk! In other words, 3 new things that you learnt. If you learnt more than just 3, do list them as well, I will be happy to read them! J https://www.youtube.com/watch?v=DlVJzJD4fqM&feature=emb_rel_pause