Homework4s 04

Homework4s 04 - LSU EE 4720 Problem 1 Homework 4 Due 22...

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

View Full Document Right Arrow Icon
LSU EE 4720 Homework 4 Due: 22 March 2004 Problem 1: Suppose code like the memory copy program above (from Homework 3) appears frequently enough in the execution of programs so that new instructions should be added to the ISA to allow improved execution. (It does and they have been.) Following the points below devise new instruction(s) that can be used to write a new memory copy loop that would execute more e±ciently than is possible with existing MIPS-I instructions. A goal is to copy at the rate of two bytes per cycle. See the subparts after the bulleted points below. LOOP: lw $t0, 0($a0) sw 0($a1), $t0 addi $a0, $a0, 4 bne $a0, $a2 LOOP addi $a1, $a1, 4 format immed IR Addr 25:21 20:16 IR IF ID EX WB MEM IR IR rsv rtv IMM NPC ALU Addr Data Data Addr D In +4 PC Mem Port Addr Data Out Addr Data In Mem Port Data Out rtv ALU MD dst dst dst Decode dest. reg NPC The instructions must use the existing MIPS formats. An instruction can do more than one thing (as long as it follows the points below). For
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
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

Homework4s 04 - LSU EE 4720 Problem 1 Homework 4 Due 22...

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