Computer Organization and Design: The Hardware/Software Interface

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 1 CS152 Computer Architecture and Engineering Spring 2004, Prof John Kubiatowicz Homework 1 due Monday 2/2 in class. Please include the TIME or TA NAME of the DISCUSSION section that you attend as well as your NAME and STUDENT ID. Homeworks and labs will be handed back in discussion sections. There will be a exam on the day that this is due. Homework Policy: Homework assignments are due in class. No late homeworks will be accepted. There will be a short quiz in lecture the day the assignment is due; the quiz will be based on the homework. Study groups are encouraged, but what you turn in must be your own work. Lab 1 is due Wednesday 2/4 . Be prepared to explain your debugging techniques to your TA during section. Your lab report must be submitted by 11:59pm (Wednesday night) using the submit program (see below). This lab is to be done individually. It is rather long, so get started early!!! Lab Policy: Labs (including final reports) must be submitted by 11:59pm on the day that the lab is due. . To Submit your lab report, run m:\bin\submit.exe or at command prompt, type "submit" then follow the instructions. Make sure you input the correct section number, group name (for lab 3 ~5, and final project), and directory to submit. Otherwise your lab/project grade will NOT be correctly recorded. The required format for lab reports is shown on the handouts page. Homework #1: Please do the following problems from P&H: 1.51-1.53, 2.3, 2.15, 2.16, 2.18, 2.24, 2.32, 2.41, 2.44, B.15, B.21, B.22 Lab #1: This is a demanding assignment - get started early! The software for this assignment is located in m:\bin and m:\lab1 . The broken version of spim is called file:///C|/Documents%20and%20Settings/Linda%20Grauer. ..es/Berkeley-Harvest/CS%20152/Sp04/homeworklab_1.html (1 of 5) [1/29/2008 3:02:23 PM]
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lab 1 spim_broken . The good version is called spim . Problem 1: Introduction to SPIM This problem will give you a chance to get familiar with SPIM, a MIPS simulator, the MIPS instruction set, and the calling convention. You will learn SPIM's basic functionalities by simulating a MIPS assembly program at calculates the factorial of 5. You should read chapter 3 and appendix A of P&H to prepare for this assignment. An on-line manual for SPIM can be found off the handouts web-page. Copy m:\ lab1\fact.s to your home directory for this assignment. This program uses recursion to evaluate the factorial of 5 (f(N) = N * f (N - 1), f (0) = 1). Type spim (or m:\bin\spim ) to start the windows version of the SPIM program. Load the assembly program fact.s by pressing the open button, typing the file name in the dialogue box, and clicking on 'open'. Observe that the instructions for your main program now appear in the Text Segments pane (Hint: you can go to the "Windows" drop down menu to select which pane you want to display). You are
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

homeworklab_1 - Lab 1 CS152 Computer Architecture and...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online