Homework 3 04

Homework 3 04 - LSU EE 4720 Homework 3 Solution Due: 3...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: LSU EE 4720 Homework 3 Solution Due: 3 November 2004 Problem 1: Do Problems 1 and 2 From Spring 2004 Homework 3 http://www.ece.lsu.edu/ee4720/2004/hw03.pdf . After completing the problems look at the solution and assign yourself a grade. The maximum grade should be 10 points, divide the points between problems as you wish. Problem 2: A new instruction, copyTreg rt, rs , will read the contents of register rt and rs and will write the contents of rs to the register number specified by the contents of register rt (not into register rt ). For example, # Before: $1 = 4, $2 = 0x1234, $4 = 0 copyTreg $1, $2 # After: $1 = 4, $2 = 0x1234, $4 = 0x1234; # (Register $4 written with contents of register 2.) Note that this is a variation on Midterm Exam 1 Problem 3, with the destination, rather than the source, being specified in a register. ( a ) Modify the pipeline below to implement this instruction. ( b ) Add the bypass connections needed so that the code below executes correctly. # Before: $1 = 4, $2 = 0x1234, $4 = 0, $5 = 0 addi $1, $0, 5 copyTreg $1, $2 # After: $1 = 5, $2 = 0x1234, $4 = 0, $5 = 0x1234; Changes shown in red below. The major change is providing a path for thebelow....
View Full Document

Page1 / 3

Homework 3 04 - LSU EE 4720 Homework 3 Solution Due: 3...

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