CSE 378: Machine Organization & Assembly Language

Winter 1999

[home]


Getting Started with SPIM and XSPIM

  1. Login to your account on sanjuan or orcas.

  2. Edit your .cshrc (or your .mycshrc, if you have one) file to include the following line at the end of the file:
    source /cse/courses/cse378/1999wi/bin/spim-setup
    
    You need to make the above changes only once. By including the above line, you will have easy access to spim and xspim, as well as the (scant) man page documentation.

  3. Logout and login again so that the changes take effect.

  4. Find out the name of the X-terminal (or workstation) on which you are working (the name should be taped to the terminal). Then type the following at the prompt:
    setenv DISPLAY machine-name:0.0
    
    where machine-name is the name of the terminal you are using. You will need to set this environment variable each time you log in. Doing so allows sanjuan or orcas to send display information to your terminal. Note: this may not be necessary on all X-terms, as some of them are directly connected to the instructional machines. (To find out if the DISPLAY environment variable is set correctly, you can check its value by typing: setenv | grep DISPLAY.)

  5. You are now ready to run xspim which you do by entering:
    xspim &
    
    at the prompt. The & character tells UNIX to run xspim in the background. This allows you to continue using the terminal window from which you started xspim to do other work, read mail, etc...

  6. After starting xspim, you should see a window like this:

  7. Notice the 5 distinct segments:

  8. Use the "load" button to load your assembly file.

  9. There are several options to run the program:


Original by brd@cs.washington.edu, Spring 1997.
Modified by wolman@cs.washington.edu, Autumn 1997.
Modified by dougz@cs.washington.edu, Winter 1999.