Homework 1 07

Homework 1 07 - LSU EE 4720 Homework 1 Due: 2 March 2007...

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

View Full Document Right Arrow Icon
LSU EE 4720 Homework 1 Due: 2 March 2007 Problem 1: Without looking at the solution solve Spring 2002 Homework 2 Problem 2 parts a-c. Then, look at the solution and assign yourself a grade in the range [0,1]. Problem 2: If the value in register r2 is not aligned (a multiple of four) the lw in the MIPS code below will not complete. lw r1, 0(r2) ( a ) Re-write the code so that r1 is loaded with the word at the address in r2 , whether or not it is aligned. For this part do not use instructions lwl and lwr (see the next part). ( b ) Re-write the code, but this time use MIPS instructions lwl and lwr . Hint: These instructions were not covered in class, try looking them up in the MIPS architecture manual conveniently linked to the http://www.ece.lsu.edu/ee4720/reference.html page. . Problem 3: Consider how the lwl and lwr instructions might be added to the implementation below. There are two pieces of hardware that with minor modi±cation would be able to merge the sub-words in a reasonable solution. Alternatively, a new piece of hardware to perform the merge can be added.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Homework 1 07 - LSU EE 4720 Homework 1 Due: 2 March 2007...

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

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