csse232_hw3_soln - Fall 2009-2010 CSSE 232 CSSE 232...

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

View Full Document Right Arrow Icon
CSSE 232 CSSE 232 – Computer Architecture I Rose-Hulman Institute of Technology Computer Science and Software Engineering Department Homework 3 Solutions 1. (10 points) F 2. (20 points) The problem statement tells us how much the cycle time increases and that the CPI does not change. We must ±gure out how many load instructions can be eliminated. 35% of instructions are memory access and 2/3 of those are loads. This leads us to: ExecTime old ExecTime new = CycleTime old × CPI old × # Inst old 1 . 1 CycleTime old × CPI old × (1 - (2 / 3)(0 . 35) x ) # Inst old = 1 . 0 and x = 0 . 3896 . If 38.96% of the loads can take advantage of addm then the new machine will have equivalent performance. Note: In practice the average CPI would also change and would need to be recalculated. 3. (20 points) a = b + c ; b = a + c ; d = a - b ; Accumulator Instruction Code Data load AddressB 3 4 add AddressC 3 4 store AddressA 3 4 add AddressC 3 4 store AddressB 3 4 neg 1 0 add AddressA 3 4
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.

This note was uploaded on 12/04/2009 for the course ECE 471 taught by Professor Someprofessor during the Spring '09 term at Cornell University (Engineering School).

Page1 / 3

csse232_hw3_soln - Fall 2009-2010 CSSE 232 CSSE 232...

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