CPE 315
Winter 2008
Professor Stearns
Laboratory Exercise #1
Due by the end of lab, 1/8/08
Notes:
- You may do this lab with one partner (one submission for both).
- You must use SIM for this lab.
- Your Linux login user/password is identical to your falcon account
Objectives:
- To learn how to run SIM.
- To help you make the SIM or Xilinx decision.
- To practice your computer addition skills.
Description:
- Boot a computer into Linux.
- Start the terminal window
Menu path: Applications/System Tools/Terminal
- Run the 8 bit adder with the following command.
/home/dstearns/simbin/add8
Add each the following using the adder:
FF 70 02 A0
+ FF + 60 + 02 + B0
Use a program called Take Screenshot to capture one of your additions.
Menu path: Applications/Accessories/Take Screenshot
- Assume the addends are two's complement numbers.
Discuss the results by doing the additions manually and explaining
Show your work clearly; include the overflow and carry calculation.
- The values of Overflow and Carry
- Whether the answer is correct or not?
- Anything else of interest
- Now assume the addends are unsigned numbers.
How are your results different?
- In the additions?
- In the discussion of results?
- (trick question)
Explain clearly the difference between the two's complement and
unsigned additions.
Deliverable
A professional report (see syllabus) containing screenshot output and manual calculations.
Last updated on 1/5/08