{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


midterm_sp0304_rev3 - EE108B Digital Systems II Stanford...

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

View Full Document Right Arrow Icon
EE108B: Digital Systems II Stanford University Spring 03/04 April 29, 2004 EE108B Midterm Exam Exam Instructions Answer each of the questions included in the exam. Write all of your answers directly on the examination paper, including any work that you wish to be considered for partial credit. The examination is closed-book. You may use a single page of notes (notes on both sides) and a calculator. You may not use a computer of any kind. On equations: Wherever possible, make sure to include the equation, the equation rewritten with the numerical values, and the final solution. Partial credit will be weighted appropriately for each component of the problem, and providing more information improves the likelihood that partial credit can be awarded. On writing code: Unless otherwise stated, you are free to use any of the assembly instructions listed in the Appendix at the back of the book, including pseudoinstructions. You do not need to optimize your MIPS code unless specifically instructed to do so. On style: In writing procedures you should follow the convention for use of all registers across procedure calls. You may use your stack space, however, in whatever manner you wish. On commenting: Comments for MIPS implementation are not strictly required on the exam, but are highly recommended. They may help you receive partial credit on a problem if they help us determine what you were trying to do. On time: You will have two hours to complete this exam. Budget your time and try to leave some time at the end to go over your work. The point weightings correspond roughly to the number of minutes each problem is expected to take. Name (printed) ________________________________________________________ Leland Username/Email ________________________________________________________ SCPD Student (Y/N) ________________________________________________________ THE STANFORD UNIVERSITY HONOR CODE The Honor Code is an undertaking of the students, individually and collectively: (1) that they will not give or receive aid in examinations; that they will not give or receive unpermitted aid in class work, in the preparation of reports, or in any other work that is to be used by the instructor as the basis of grading; (2) that they will do their share and take an active part in seeing to it that others as well as themselves uphold the spirit and letter of the Honor Code. I acknowledge and accept the Honor Code. Name (signed) __________________________________________________________ Score Grader 1. Some theory 15 ______ ______ 2. MIPS ISA & Performance 25 ______ ______ 3. Saturation 15 ______ ______ 4. Processor Design 20 ______ ______ 5. Recursive sentence reversal 20 ______ ______ Total (95) ______ - 1 -
Background image of page 1

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

View Full Document Right Arrow Icon
Problem 1: Theory (15 points) a) [5 points] The MIPS ISA has fixed length instructions (32 bits) and only three instruction encoding formats. Taking into account the MIPS processor designs we discussed (single-cycle, multi-cycle, pipeline), briefly explain how the fixed-length encoding and the simple formats simplify the processor design. Focus on the logic for: fetching an instruction, decoding an instruction, reading register operands, and calculating the next PC.
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.

{[ snackBarMessage ]}