Homework 2
ECE 533
Spring 2010

Tarek M. Taha
February 17, 2010


Follow the steps below and submit your answers through Isidore by February 22 (step 10 below).

1. Install Ubuntu Linux using the steps outlined here.

After installing Ubuntu Linux, login to Linux and follow these steps for the lab assignment:

2. Within the Linux window, start the web browser from the main menu as shown below.


3. Login to Isidore and download the dlx.zip file for lab 2. It will be placed in the ~/Download directory by default.


4. Open a terminal from the main menu as shown below.


5. Create a directory for your lab assignment by typing: mkdir lab2


6. Change into the new directory: cd lab2
Copy the dlx.zip file into this directory: cp ../Download/dlx.zip .
Unzip the files: unzip dlx.zip


7. Look at the directory contents: ls
Change to the dlx directory: cd dlx
Look at the directory contents: ls


8. Compile the simulator: make
Look at the directory contents: ls


9. Run the prog1 in the simulator: ./sim prog1


10. Run prog2 through prog5 through the simulator.

IMPORTANT: Write down the cycles required for these four programs and submit these numbers in a text file through Isidore.


Look at the files in the directory using the gedit editor (see screen shots below). The files fall under the following categories:

Simulator: sim.c, assemble.c, and globals.h
Simulator inputs: prog1 through prog5
Make file: Makefile
Documentation: README and README.gdb