EE 360N Lab Assignments
Fall 2005
- Lab Assignment 6 - due December 9, 5.00pm
- Submission Instructions
- lc3bsim6.c
- Control store sheet (Excel spreadsheet)
- Clarifications (Updated: 12/8/05)
- Sample simulator runs to help you in debugging your simulator
(Each of the hex files were simulated cycle by cycle using the "run 1"
command and an "idump" was performed after each cycle. *.dump files
show the cycle by cycle output of idump. *.state files summarize the
contents of the pipeline latches. *.timeline shows a timeline of the
execution of the program in the pipeline):
Note that these test cases are not meant to be exhaustive. You should
write your own test cases to make sure that your simulator is working
for every instruction and program.
- Lab Assignment 5 - due November 29, 11.59pm
- Submission Instructions
- lc3bsim5.c
- You can use the following xfig files to show the changes you made to the datapath, state diagram and microsequencer. You can
modify these files using the xfig drawing program installed on LRC UNIX/Linux machines.
Please note that you can submit hand drawn diagrams if you are not comfortable using xfig.
- Lab Assignment 4 - due October 30, 11.59pm
- Automated testing for LAB 3 (Updated: 10/29/05)
- Submission Instructions
- lc3bsim4.c
- FAQs (Updated: 10/29/05)
- You can use the following xfig files to show the changes you made to the datapath, state diagram and microsequencer. You can
modify these files using the xfig drawing program installed on LRC UNIX/Linux machines.
Please note that you can submit hand drawn diagrams if you are not comfortable using xfig.
- Lab Assignment 3 - due October 11, 11.59pm
- Submission Instructions
- lc3bsim3.c
- Control store sheet
- Control store sheet (Excel spreadsheet) (Added 10/07/05)
- Windows machine: Once you have filled in the control store spreadsheet, select only the cells
that contain the 0s and 1s that form the microinstructions (rows 2-65, columns B-AJ). Choose "copy"
from the Edit menu. Open up a new Word document and choose "paste special" from the Edit menu. Then,
choose "unformatted text" and click on OK. Finally, select "replace" from the Edit menu. In the
"Find what" box, type "^t" (without the quotes); leave the "Replace with" box empty. Click on the
"Replace All" button. Save your file as a plain text file with filename "ucode." To use this file
on a linux machine with the simulator, you will need to change the filename from "ucode.txt" to
"ucode". You will also need to run dos2unix on this file (see #7 on
How to port code from Windows to sunfire).
- Linux machine: Use the OpenOffice spreadsheet program (oocalc) to open and fill in the spreadsheet.
Select the cells that contain the 0s and 1s that form the microinstructions (rows 2-65, columns B-AJ).
Choose "copy" from the Edit menu. Open up a text editor (eg. gedit, gvim, oowriter) and choose "paste"
from the Edit menu (with OpenOffice oowriter, select "paste special" and choose "unformatted text"). Do
a search and replace, searching for "\t" (without the quotes), and leaving the replace field empty. Save
your file as "ucode".
- LC-3b assembler for Linux
- Clarifications (Updated: 10/07/05)
- Example (Updated: 10/04/05)