Syllabus for MCS-284: Computer Organization (Fall 2012)

Overview

MCS-284 will cover the architecture and organization of computer hardware. We will look at the MIPS architecture as a representative modern RISC architecture and do some assembly language programming for that architecture. We'll see how numbers are represented within a computer and how arithmetic operations are performed. With a high-level overview of digital logic design to support us, we'll look at how the datapaths and control circuits of processors are designed. We'll study pipelining and instruction-level parallelism, the key organizational principles at work in present-day processor cores. We'll examine the use of memory hierarchy (cache memory and virtual memory) to provide the illusion of a large fast memory from the reality of limited fast memory plus a larger but slower memory. We'll see how multiple processor cores are joined in Central Processing Units and Graphics Processing Units and how multiple computers are joined in networks. Throughout the course there will be an emphasis on the quantitative performance characteristics of computer systems; we'll look at the influence of architecture and organization on performance and take an introductory look at the empirical and analytical tools appropriate to the study of performance. Performance measurement will be one of the main themes reinforced through the lab assignments; the other will be assembly language programming.

Office hours

I will be available in my office (OHS 306) 10:30-11:20 on Tuesdays and Thursdays and 1:30-3:20 on Wednesdays, as well as by appointment. Or try your luck: just stop by and see whether my door is open. You may send me electronic mail at max@gustavus.edu. I won't hold office hours on 9/5, 10/2, 10/3, 10/23, 11/6, 11/14, 11/21, or 11/22. I'll try to put any updates to my office hours on my web page, so check there if in doubt.

World Wide Web

All course materials will be available through my World Wide Web page. The URL for this course is https://gustavus.edu/+max/courses/F2012/MCS-284/. After this syllabus I will give hardcopy handouts only to those students who want them.

Text

Our text will be the revised fourth edition of Computer Organization and Design: The Hardware/Software Interface by David A. Patterson and John L. Hennessy, published by Morgan Kaufmann. Note that the revised fourth edition is not quite the same as the original fourth edition.

Homework assignment policy

I will assign a collection of homework problems for each chapter. You may turn in by email or hardcopy any individual homework problem whenever you think you have it solved. I will return it to you as quickly as I can, but normally with only an indication of whether it is acceptable or needs more work. The reason why I won't write much on the work I turn back to you is because I would like to talk with you face-to-face. If a problem needs more work, you should treat that as an invitation to come talk with me about it. Once you've done the additional work, you may turn the problem in again, attached to (or clearly marked on) the original. In fact, you may turn each problem in as many times as you like, until it is marked as acceptable. Your grade for the homework portion of the course will be based on the fraction of homework problems that you eventually did acceptably.

The final deadline for rewrites of homework problems is at the start of class on October 4th for Chapters 1-3, November 15th for Appendix C and Chapters 4-5, and December 13th for Chapter 6-7 and Appendix A.

Unless I indicate that a particular problem must be done individually, you may work on any problem in a group of two or three students. One copy of the solution produced by the team should be turned in, with all team members' names on it. Write “we all contributed fairly to this solution” and have all team members sign under that statement.

You must show your work; a numerical answer is not an acceptable solution to a homework problem.

Tests

There will be two intra-term take-home tests as shown on the schedule below and a final exam as scheduled by the registrar. If you have a conflict with a testing time, please contact me as soon as possible to make an alternative arrangement.

My default assumption is that students will take the final together. Therefore, I would ask you to please be respectful and quiet, even after completing your exam, so that your fellow students have a good test-taking environment. However, if you prefer to take the exam in a separate room, please contact me in advance and I will try to arrange it.

Tests will be closed-book and mostly closed-notes. You may, however, use a single 8 1/2 by 11 sheet of paper with hand-written notes for reference. (Both sides of the sheet are OK.)

Honor

Students are encouraged to discuss the course, including issues raised by the assignments. However, the solutions to assignments should be individual original work unless otherwise specified. If an assignment makes you realize you don't understand the material, ask a fellow student a question designed to improve your understanding, not one designed to get the assignment done. To do otherwise is to cheat yourself out of understanding as well as to be intolerably dishonorable.

Any substantive contribution to your solution by another person or taken from a publication should be properly acknowledged in writing. Failure to do so is plagiarism and will necessitate disciplinary action.

The same standards regarding plagiarism apply to team projects as to the work of individuals, except that the author is now the entire team rather than an individual. Anything taken from a source outside the team should be be properly cited.

One additional issue that arises from the team authorship of project reports is that all team members must stand behind all reports bearing their names. All team members have quality assurance responsibility for the entire project. If there is irreconcilable disagreement within the team it is necessary to indicate as much in the report.

You are expected to be familiar with the college academic honesty honor code policy and to comply with that policy. If you have any questions about it, please ask.

Late lab assignments

All lab assignments are due at the beginning of class on the day indicated. Late assignments will be penalized by one “grade notch” (such as A to A- or A- to B+) for each weekday late or fraction thereof.

If you are too sick to complete an assignment on time, you will not be penalized. Simply write “late due to illness” at the top of the assignment, sign your name and hand it in. Other circumstances will be evaluated on a case-by-case basis.

Grade changes

Please point out any arithmetic or clerical error I make in grading, and I will gladly fix it. You may also request reconsideration if I have been especially unjust.

Grading

The course components will contribute to your grade in the following proportion: However, I reserve the right to subjectively adjust your final grade. Please see me if you have any question how you stand. Class participation is not graded; however, it allows you to find and repair the gaps in your understanding before doing the assignments and thus can dramatically improve your grade. You are responsible for all course material, whether or not you are present when it was covered or distributed.

Style guidelines

All assignments should be readily readable, and should not presuppose that I already know what you are trying to say. Use full English sentences and clear diagrams, programs, etc. Remember that your goal is to communicate clearly, and that the appearance of these technical items plays a role in this communication process. Be sure your assignments are always stapled together and that your name is always on them.

Accessibility

Gustavus Adolphus College is committed to ensuring the full participation of all students in its programs. If you have a documented disability (or you think you may have a disability of any nature) and, as a result, need reasonable academic accommodation to participate in class, take tests or benefit from the College's services, then you should speak with the Disability Services Coordinator, for a confidential discussion of your needs and appropriate plans. Course requirements cannot be waived, but reasonable accommodations may be provided based on disability documentation and course outcomes. Accommodations cannot be made retroactively; therefore, to maximize your academic success at Gustavus, please contact Disability Services as early as possible. Disability Services (https://gustavus.edu/advising/disability/) is located in the Advising and Counseling Center.

Support for English Language Learners (ELL) and multilingual students is available via the College's ELL Support staff person, Andrew Grace (agrace@gustavus.edu or x7395). He can meet individually with students to consult about academic tasks and to help students seek other means of support. In addition, ELL and multilingual students can seek help from peer tutors in the Writing Center. Please let me know if there is any accommodation in the course that would enable you to more fully show your abilities; for example, I would consider allowing extra time on tests, as well as allowing a dictionary in an otherwise closed-book test.

Schedule

The two topics or activities shown for each date correspond approximately to the two halves of the class period with a brief stretching break in between. However, we will divide the time to meet our needs rather than necessarily at the halfway point.

Sections shown in italics are on the CD-ROM accompanying the textbook. The CD-ROM files are also available for download.

DateReadingTopicDue
9/4Introduction
1.1-1.3Computer abstractions and technology

9/61.4-1.9Performance
2.1-2.4Instructions, especially arithmetic

9/112.5-2.7More instructions
2.8-2.9Procedures and strings in assembly

9/132.10-2.12More on assembly programming
B.1-B.6,B.9Assembly programming tools

9/182.13-2.14Assembly programming examples
Lab 1: Elementary assembly programming

9/202.16-2.19Yet more on assembly language
Lab 1 (continued)

9/253.1-3.3Arithmetic
Lab 1 (continued)

9/273.5-3.6Floating point arithmeticLab 1
Lab 2: More advanced assembly programming

10/2No class (attend Nobel Conference)

10/4Review; catch-up; take-home 1 outHW rewrites (1-3)
Lab 2 (continued)

10/9C.1-C.3Combinational logicTake-home test 1
Lab 2 (continued)

10/11C.7-C.11Sequential logic
Lab 2 (continued)

10/164.1-4.3A simple datapath
Lab 2 (continued)

10/184.4A single-cycle processorLab 2
4.5Pipelining

10/254.6Pipelined datapath and control
4.10-4.11Advanced instruction-level parallelism

10/305.1-5.2Caches
5.3Cache performance

11/17.10Roofline performance model
Pre-lab activity for Lab 3

11/6No class (go vote)

11/85.4Virtual memory
Lab 3: Memory system performance

11/135.5-5.6Memory hierarchies and virtual machines
Lab 3 (continued)

11/155.10-5.12Review; catch-up; take-home 2 outHW rewrites (C,4-5)
Lab 3 (continued)

11/205.8Cache coherenceTake-home test 2
Lab 3 (continued)

11/277.1-7.5Multiprocessors and multithreading
Class discussion of lab 4

11/297.6-7.7,7.12-7.13SIMD, vector, and graphics processorsLab 3
Lab 4: Multiprocessor performance

12/4A.1-A.7Graphics processing units
Lab 4 (continued)

12/6Lab 4 (continued)
Lab 4 (continued)

12/11A.8-A.10Programming GPUsLab 4
6.11Networks

12/13More on networks
Review; catch-up; evaluationHW rewrites (6-7,A)

Course web site: http://gustavus.edu/+max/courses/F2012/MCS-284/
Instructor: Max Hailperin <max@gustavus.edu>