CDA3101-F11-Quiz2 - for 0< w,x,y< 100 Comment all code to get full credit(10 pts 2 Analyze your code and calculate total number of cycles

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CDA3101 F11 Quiz 2 Fri 16 Sep 2011 Given: MIPS Instructions CPI mult = 5 cycles; add, addi, sub, subi = 3 cycles; lw,sw = 2 cycles; mflo + all others = 1 cycle 1) Write a simple MIPS code fragment to compute z = 3x + y 2w
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: , for 0 < w,x,y < 100 Comment all code to get full credit!! (10 pts) 2) Analyze your code and calculate total number of cycles required to compute z, which must be independent of the values of w, x, and y. (10 pts)...
View Full Document

This note was uploaded on 12/10/2011 for the course CDA 3101 taught by Professor Small during the Fall '08 term at University of Florida.

Ask a homework question - tutors are online