Difference between revisions of "CSC103 Homework 3 2012"

From dftwiki3
Jump to: navigation, search
(Problem 1: Wiki page with Report on Demolition Lab)
(Problem 1: Wiki page with Report on Demolition Lab)
Line 12: Line 12:
  
 
* Create a wiki page on our [http://cs.smith.edu/classwiki/index.php/CSC103_Page_2012  student wiki system.]
 
* Create a wiki page on our [http://cs.smith.edu/classwiki/index.php/CSC103_Page_2012  student wiki system.]
** You'll have to '''login''' with the account that was given to you in class
+
*# Go to the class Wiki page at http://cs.smith.edu/classwiki/index.php/CSC103_Page_2012
 +
*# Click on the words '''Log in''' at the top right of the page (see figure below)
 +
*# Use the Login and password account info you were given in class
 +
*# Then find your account on the page (it should appear in red font before your page is created)
 +
*# Click on it
 +
*# You should be faced with a new page with an edit window in the center.
 +
*# Start typing text.
 +
*# When you are done, go to the bottom of the page and click on the '''Save Page''' button.
 +
*# Click on the '''Edit''' menu at the top of the page to continue editing your page, and repeat the process as many times as necessary.
 
<br/><center>[[Image:CSC103LoginHere.png|400px]]</center><br />
 
<br/><center>[[Image:CSC103LoginHere.png|400px]]</center><br />
** You may want to edit the page with the Wiki-Wiki bus on it and add your name next to your account.  This is up to you.
 
 
* Your page should be an illustrated report of the lab on Monday when you took apart the computer.   
 
* Your page should be an illustrated report of the lab on Monday when you took apart the computer.   
 
* Each of the parts you found should be presented and documented.
 
* Each of the parts you found should be presented and documented.

Revision as of 18:50, 16 February 2012

--D. Thiebaut 16:33, 15 February 2012 (EST)



This assignment is due on Wednesday, 2/22/12 at 9:00 a.m. The wiki page has to be done individually. You can work on Problem 2 in pairs, on the condition that all the work is done by two people working together. If you do the second part in pairs, make sure you put both names on the sheet(s) you will hand in.



Problem 1: Wiki page with Report on Demolition Lab

  • Create a wiki page on our student wiki system.
    1. Go to the class Wiki page at http://cs.smith.edu/classwiki/index.php/CSC103_Page_2012
    2. Click on the words Log in at the top right of the page (see figure below)
    3. Use the Login and password account info you were given in class
    4. Then find your account on the page (it should appear in red font before your page is created)
    5. Click on it
    6. You should be faced with a new page with an edit window in the center.
    7. Start typing text.
    8. When you are done, go to the bottom of the page and click on the Save Page button.
    9. Click on the Edit menu at the top of the page to continue editing your page, and repeat the process as many times as necessary.

CSC103LoginHere.png

  • Your page should be an illustrated report of the lab on Monday when you took apart the computer.
  • Each of the parts you found should be presented and documented.
    • You should have a photo of the part. The photo should be a photo you took on Monday.
    • You should write down what the part is (a processor, memory, the motherboard, etc...)
    • The part number, or marker for the part (e.g. Pentium 4), if you found one.
    • A quantity associated with the part (e.g. 512 MByte, or 2.8 GHz)
    • A short description of what the purpose of this part is in a computer. What it's for. You can use the Web to find such information, which you should reference on your page, and you should create a link to that page. For example, if you use Wikipedia to describe what the processor is used for, you could do this as follows:



  • Processor
    • Motorola 68010
    • 3.1 GHz
    • According to Wikipedia, a processor "incorporates the functions of a computer's central processing unit (CPU) on a single integrated circuit, (IC) or at most a few integrated circuits. It is a multipurpose, programmable device that accepts digital data as input, processes it according to instructions stored in its memory, and provides results as output. It is an example of sequential digital logic, as it has internal memory." (in Wikipedia. Retrieved Feb. 15 2012, from http://en.wikipedia.org/wiki/Microprocessor).



  • Make sure you describe in this fashion all the different parts that were listed on the handout for Monday's lab. Make sure your page contains the answers to all the questions on the handout.


Requirements

  • To make you good wiki editors, you will need to make sure your wiki page contains several important wiki constructs:


Submission

You do not have to submit your page. I will find it on the Web, print it, annotate and grade it directly, without needing anything from you.

Warning!

The wiki system keeps track of the time you last edit a page. If your page has been edited after class on Wednesday 2/22, it will be considered late and not graded!

Problem #2: Assembly Language

Programming Part

  • We haven't programmed much yet, just a tiny bit in class, so this problem is just to get you to play with the simulator and get a sense for how the processor works and what the instructions do. You'll do a bit more programming on Monday 2/20/12 during class.
  • Start the simulator
  • Write an assembly language program that uses 10 variables stored in memory.
  • When the program starts, all 10 variables contain 0.
  • When the program stops, the first variable in memory will contain 1, the next variable will contain 3, the next one 5, the next one 7, and so on, until the last one which will contain 19. The image below illustrates what your memory should look like at the end of your program.


CSC103SimulComputerHomework3.png


  • Extra points will be given if you use different methods to initialize the different variables in your program.

Analysis Part

  • If your processor operates at 3 GHz, how long would it take it (not the simulator) to run from beginning to end? Express your answer in seconds (or milliseconds, or microseconds, or nanoseconds, which ever is best suited for your answer)

Submission

  • To submit the program, simply save the program to file in the simulator, and print the file to a printer of your choice. Add the answer for the analysis part on your listing (either by hand, or type it as a comment in your program). Submit the listing in class on Wednesday.