Activity12 Soln - SOLUTION In-Class Activity #12 Activity...

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

View Full Document Right Arrow Icon
ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2001 Page 1 of 2 SOLUTION In-Class Activity #12 Activity 12.1 1. For the following questions, use the following data: Instruction Mix Instruction Type Usage Frequency Loads 20% Stores 15% R-type 50% Conditional Branches 10% Jumps 5% Additional Data 40% of load instructions are followed immediately by an instruction that uses the loaded result (i.e., causes a load-use data hazard that costs an extra cycle); Jumps always take 2 cycles Cycle time = 2ns a. (5 points) Calculate the CPI for this machine assuming that the CPU is stalled for 3 cycles for each branch instruction. Hint: For such questions that involve averages with weighted trees, it is convenient to use a “decision-tree table”: Instruction weight cycles weighted cycles lw 0.20 Hazard 0.40 2 0.20 x 0.40 x 2 0.16 No Hazard 0.60 1 0.20 x 0.60 x 1 0.12 sw 0.15 1 0.15 x 1 0.15 R-type 0.50 1 0.50 x 1 0.50 branch 0.10 1+3 4 0.10 x 4 0.40 jump 0.05 2
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

Activity12 Soln - SOLUTION In-Class Activity #12 Activity...

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