15-740 Fall '95
Notes on Assignments

In the following, the term HOME740 refers to the home directory for the course, namely /afs/cs.cmu.edu/academic/class/15740-f95/public.

The term LIB740 refers to the library file HOME740/lib/lib740.a, containing the object code for any runtime support routines supplied for your use. For your convenience, the sources for the library are available in subdirectory HOME740/src.

The following information is in reverse order of assignment, i.e., the most recent assignments appear first.

Assignment 6

Assignment 6 is issued on Nov. 28 and due on Mon, Dec. 11. The assignment is available in postscript form.

Platforms

The code will not run properly on DEC Alpha's. The problem is that the code assume pointers and int's require the same amount of storage, but in the case of the Alpha, pointers take 8 bytes and int's take 4.

Performance Issues

Although the models we're working with aren't big by SMV standards, they are big enough to consume a fair amount of CPU time and memory if you're not careful. Here are a few techniques to improve the performance

Task 1: Generating Interesting Behavior

Item 3 of this asks you to generate a case where a cache performs a ``write-back'' due to a write miss by some other processor. This is not really proper terminology, since, technically speaking, write-back refers to the case where a processor evicts a block from its cache to make room for another block. What is meant here is to demonstrate a case where one cache supplies the data needed to satisfy the write request for a different cache's processor. Note that you don't actually see this happening in the SMV model, since it doesn't model the data transfers on the bus. But, you can model the control aspects of this transfer.

Task 3: Implementing LL and SC

This is the hardest task of the assignment. You'll need to augment the SMV model significantly.

Here are some clarifications

Here is some advice:


Assignment 5

Assignment 5 is issued on Nov. 14 and due on Thu., Nov. 28. The assignment is available in postscript form. Now, the sample answer is available in postscript form.

Assignment 4

Assignment 4 is issued on Oct. 31 and due on Thurs., Nov. 9. The assignment is available in postscript form. Now, the sample answer is available in postscript form.

Assignment 3

Assignment 3 is issued on Oct. 17 and due on Thurs., Oct. 26. The assignment is available in postscript form. Now, the sample answer is available in postscript form. There are also some follow-up clarifications:

Assignment 2

Assignment 2 is issued on Oct. 3 and due on Thurs., Oct. 12. The assignment is available in postscript form. The class note about this assignment is available in postscript form. Now, the sample answer is available in postscript form. There are also some follow-up clarifications:

I've made changes in the files Makefile, mips.h, and mips_sim.c:

Assignment 1

Assignment 1 is issued on Sept. 19 and due on Thurs., Sept. 29. The assignment is available in postscript form. Now, the sample answer is available in postscript form. There are also some follow-up clarifications:

If you are using the machine which word size is 64 bits, e.g. Alpha, you can use m100_w64.test file under HOME740/asst/asst1 directory.