CS 429: Fall, 2016
Computer Organization and Architecture
Instructor: Dr. Bill YoungUnique numbers: 51375, 51380, 51385; Class time: MW 2:00-3:45pm; Location: CAL 100
Unique numbers: 51390, 51395, 51400; Class time: MW 4:00-5:45pm; Location: MEZ 1.306
Instructor Office: GDC 7.810; Phone: 471-9782; Email: byoung at cs.utexas.edu
Instructor Office Hours: Tuesdays 9:30am-11:30am and by appointment
TA: Michael Feilbach; Email: mfeilbach at utexas.edu; TA Office Hours: Wed. 9-10:30am, GDC 1.302, Desk 1
TA: Adrian Trejo; Email: atrejo at cs.utexas.edu; TA Office Hours: Mon. 3-4:30pm, Wed. 2-5pm, GDC 4.408
TA: Zhao Song; Email: zhaos at utexas.edu; TA Office Hours: TBA
Proctor: Ian Davis; Email: ian.davis at utexas.edu; Proctor Office Hours: by appointment
This website: www.cs.utexas.edu/users/byoung/cs429/syllabus429.html
Important Class Announcements:Breaking news important to the class will be posted here. Consult this spot often.
The grades for Exam1 are now available on Canvas. Stats are here: Test1 stats.
Adrian was holding the Wed. afternoon discussion section in his office, but it was bothering his office mates. He's decided to move it to GDC 1.302, Desk 4. Please go there instead.
There's not going to be a weekly homework this week. Spend the time studying for the first exam.
Weekly homework 3 is here: Homework 3: due 9/19.
Weekly homework 4 is here: Homework 4: due 10/3.
Some problems on ints and floats: problems.
The TAs have moved the Wed. discussion sections from SZB to GDC permanently. The earlier session is from 9-10:30am in GDC 1.302, Desk 1. If you need to come from 10:30-11am, please email Mike Feilbach.
Dr. Young's office is in the south wing. You have to take the south elevator, because the two wings don't connect on the 7th floor.
Feel free to email me (Send me an email message), but please put "CS429" in the header.
Course Description:CS429 is the first course in the systems core sequence required of all UT CS majors. It describes how computers operate at a fairly low level of abstraction. For example, we'll consider:
Understanding these fundamentals thoroughly is absolutely essential to your future success in computer science. The material of this course is quite detailed and requires careful and diligent study. If you are not willing to put in the time and effort required to master this material, you probably should reconsider your decision to major in Computer Science.
- What are the components of a computer and how do they fit together?
- How do computers do arithmetic?
- How does the code you write actually execute?
- How does a program in a high level language like C get translated into a form the machine can execute?
- How can you write code likely to execute efficiently?
- How is information stored and accessed?
- How does your program access existing "libraries"?
The UT College of Natural Sciences recently published Vision and Recommendations for 21st Century Undergraduate Education (June, 2016). It contains these words:"Research on learning shows that transformative education requires teaching methods that engage students in productive intellectual struggles. Students must personally grapple with scientific and mathematical concepts to develop a deep understanding of core principles. They must be given opportunities to overcome obstacles and failure to develop an acceptance of ambiguity and a willingness to persevere."In this class, you won't succeed unless you do some grappling and persevering, and accept ambiguity! Not everything will be spelled out for you and there are a number of skills you'll have to acquire on your own. You will be asked to complete some very challenging assignments. In some cases you will be expected to use tools and techniques that are not discussed in class. That is not to say that help is not available; just that we expect you to be proactive about learning. This is a skill you must acquire now, because you'll need it for your entire academic and professional career. Toto, I don't think we're in high school anymore!
The students that do well in this class are survivors. This class is a lot of work, and it is important to keep current. The material in this class is cumulative; it can be quite difficult to catch up if one falls behind. It is important to keep turning in homework and coming to class. Here are some general hints for succeeding in this and other classes: Hints for Success.
We will be discussing several different programming languages in this course: C, x86 assembly language, and Y86 assembly language. You will be writing programs in at least C and x86.
If you want to know what this course is like, I suggest you watch this short video: An Apt Metaphor for CS429.
Weekly Discussion Sections:Students are encouraged to attend a weekly discussion section, but it's not terribly important which you attend. They will mainly be help sessions. Note that the Friday sections are all in Burdine 224. You are welcome to drop in at any time during the day (except 1-2pm).
Unique # Time Location TA 51390 W 9-10:30am GDC 1.302, desk 1 TBA 51400 W 2-4pm GDC 1.302, Desk 4 TBA 51395 F 9-11am BUR 224 TBA 51375 F 9-11am BUR 224 TBA 51380 F 11am-1pm BUR 224 TBA 51385 F 2-4pm BUR 224 TBA
Using Piazza: We will be using Piazza for class communication. The Piazza system is highly catered to getting you help fast and efficiently from classmates, the TAs, and myself. Rather than emailing questions to the teaching staff, I encourage you to post your questions on Piazza. If you turn off the notifications and miss an important posting, you are responsible. If you have any problems or feedback for the developers, email team at piazza.com. Because of some issues in past semesters, posts may be anonymous to the class, but not to me. I expect that posts will be pertinent and respectful. Don't use Piazza as a place to vent or trash anyone.
Prerequisites:You are expected to have taken and passed the following courses (or equivalent) with a grade of at least C-: Computer Science 311, 311H, 313H, or 313K; Computer Science 314, 314H, 315, or 315H. If you don't have the prerequisites, be sure to clear it with the CS department or risk being dropped from the class.
Text:The required text book for this class is Computer Systems, A Programmer's Perspective by Randal E. Bryant and David O'Hallaron, Prentice Hall, 2016 (Third Edition). You need to get the 3rd edition, which is substantially different from the 2nd edition. Note that this book is also used in CS439, so don't sell it back at the end of the semester if you plan on continuing in CS.
Since we will be programming some in C, I recommend that you have access to The C Programming Language, second edition, by Brian Kernighan and Dennis Ritchie, Prentice Hall Software Series. This is available on-line. There are also many Web pages devoted to C-language programming. A nice tutorial intro to C is here: C Tutorial. Java programmers should have no problem with the subset of C that we will use.
Class Schedule and Slides:The class schedule is here: schedule. This schedule is approximate; some dates may change. Rely on the assignment handouts, not on this schedule for assignment due dates.
All of the class slides will be made available via links below as we cover new material. You are welcome to print them out or view them on-line. Slides are in PDF form. They are derived from slides originally developed for the course by Bryant and O'Hallaron and modified by me and other professors. They are used with permission.
Slides on C: PDF
The following is a tutorial on C generated by a UT grad student: C Tutorial
Slideset 1: Introduction to Computer Systems PDF
Slideset 2: Bits and Bytes PDF
Slideset 3: Integers PDF
Slideset 4: Floating Point PDF
Slideset 5: Digital Logic PDF
In-class Exam 1 covers through slideset 5.
Slideset 6: ISA I PDF
Slideset 7: ISA II PDF
No Laptops:If you want to use laptops, cell phones, or other electronic devices, please step out of the class. Last semester, I had several complaints from students that use of laptops was distracting to other students.
Videos:Last semester I made some videos that you might find helpful. Generally, they cover small snippets of class material that some students find confusing. I'll make them available over the course of the semester as we address the related topics.
Big Endian vs. Little Endian
Representing Unsigned Integers
Representing Signed Integers
Representing Normalized FP Numbers
Tests:There will be three in-class exams of approximately one and one half hour each. See the schedule for dates. There will be no makeups on in-class exams, but I will drop the lowest of these three scores.
We will very likely have a combined final exam, meaning that both classes will take it at the same time. The final exam is optional for anyone who has taken all three in-class exams and is willing to take the (normalized) average of all three exams as their final exam score.
This works as follows: If you take all three in-class exams and are happy with the average (of all three), you can substitute that for the final exam score. For example, suppose you receive (normalized) scores of 100, 90, and 80 on the three exams. Your average for the in-class exams is 95 (dropping the lowest score of 80), which counts 30% of your grade. If you choose not to take the final exam, your score on that is 90 (the average of all three), which counts 20% of your grade. If you skip any of the in-class exams, you must take the final.
We may also have a few pop quizzes over the course of the semester. They will be counted along with the 15% of your grade from weekly homeworks. There will be no makeup for quizzes, but they individually count very little, so don't freak out if you miss one. Quizzes can cover any material we've covered previously in the class, but will usually only cover recent material.
Assignments:Written homework will be assigned each week. Answers must be submitted on Canvas and will not be accepted late. You may discuss written assignments with classmates and get help from the instructors; but submit your own work. This is an easy 15% of your grade so make the most of it.
You will have around 5-6 labs over the course of the semester. You must work alone on all labs. The due dates will be clearly marked. For labs, you will have 3 total grace days available which you can use over the course of the semester. You'd be advised to save them as long as possible to deal with illnesses and personal emergencies.
Labs are generally posted on Canvas and Piazza.
Homework 1: due 9/6
Homework 2: due 9/12
Homework 3: due 9/19.
Homework 4: due 10/3.
Attendance:You are strongly encouraged to come to class. Attendance will not be checked, but my experience indicates that students who regularly miss class do poorly.
Computation of Your Grade:The weighting of the grades for the various aspects of the course are as follows:
Component Percent In class exams (one dropped) 30% Final Exam 20% Homework and Quizzes 15% Labs 35%
Canvas attempts to compute a running average course grade as individual scores are entered. You should totally ignore that. I'm not making any effort to get Canvas to weight things appropriately, drop low scores, etc. If you want to know how you're doing in the class, compute the score yourself.
Grades for the entire course tentatively will be averaged using the weighting below:
Course score Grade [90...100] A [87... 90) A- [85... 87) B+ [80... 85) B [77... 80) B- [75... 77) C+ [70... 75) C [67... 70) C- [65... 67) D+ [60... 65) D [ 0... 60) F
This is tentative. The grades may be curved and may be a bit more generous than this. They will certainly not be less generous. That is, if you have a 90 you are guaranteed an A; but somone who gets an 89 may also get an A, depending on the final distribution of grades in the class.
A course grade of at least C- is required for this course to count toward a UT CS degree.
Scholastic Dishonesty:Academic dishonesty will not be tolerated. See http://www.cs.utexas.edu/academics/conduct for an excellent summary of expectations of a student in a CS class.
All work must be the student's own effort. Work by students in previous semesters is not your own effort. Don't even think about turning in such work as your own, or even using it as a basis for your work. We have very sophisticated tools to find such cheating and we use them routinely. It's far better to get a 0 on an assignment than to cheat.
Also, don't post your work on any publicly available site, such as GitHub. It's understandable that you're proud of your work, but this just invites copying for students this semester and in subsequent semesters. If someone copies your work, even without your knowledge, you will both be liable to punishment. Here's what Mike Scott said when I mentioned this issue to him:I have submitted cases to SJS for past students who have posted code from CS314 and CS312 to public repos and current students used it to cheat. Not much SJS can do grade wise, but it is recorded and they often have to write an essay about the matter.I plan to follow Mike's lead here. There are other services such as BitBucket that have private repositories; you can grant access to instructors and to potential employers.
No deviation from the standards of scholastic honesty or professional integrity will be tolerated. Scholastic dishonesty is a serious violation of UT policy; and will likely result in an automatic F in the course and may result in further penalties imposed by the department or by the university. Don't do it! If you are caught, you will regret it. And even if you're not caught, you're still a cheater.
Students with Disabilities:Students with disabilities may request appropriate academic accommodations from the Division of Diversity and Community Engagement, Services for Students with Disabilities, 471-6259, http://www.utexas.edu/diversity/ddce/ssd.
Typically, students allowed extra time or a quiet testing environment will take exams in a conference room on GDC 7S at the same time as the regular exam. One of the TAs will proctor. If you have arranged such accommodations, get me your SSD letter well in advance of the test since this requires arranging. Please be flexible with respect to time, etc.
Grad Students Clearing Architecture Background RequirementIf you're a grad student who needs to complete your background requirement in Architecture by exam, I'm happy to help you with that. You can do as little as take the final exam for CS429 with a grade of at least 80%. But be aware that the exams for this class (or any class) are idiosyncratic and assume that the person taking the test is also taking the class. For example, there are questions about x86 syntax and calling conventions. You could be a world-class expert on MIPS or ARM architecture and not do well on the exam. My suggestions is to study the appropriate sections of the Bryant and O'Hallaron book, review the class slides, and take the three in-class exams. (BTW: this semester, I've made the final optional for students who take all three in-class exams. I'll give you the same option. If you get 80% average on the three in-class exams, I'll count that as clearing your background requirement.)
Some Interesting Links:x86 Instruction Manual
Comparing signed and unsigned
Resources on processors and optimization
Blog on x86 coding
How a CPU Works
Which Engineers Make the Most
Replace Hard Drives with DRAM
CS students in demand
Layout of a Program in Memory
Disk drive at work
Cache Associativity Cartoon
Ender's Game a Reality
Status of Moore's Law
Good PDP-8 reference
Nice intro to GDB
Thoughts on Endianess
x86 cheat sheet
Primer on Y86
Decimal to FP guide
x86 Assembly Guide
Moore's Law Dead?
Unix, C Hoaxes?
5 Things to Know
Indiana U. Career Overview
Top 10 Jobs for CS Majors
Jobs with High Pay
Cities with Most CS Jobs