Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A processor takes one clock cycle to execute each instruction, when no memory st

ID: 3842506 • Letter: A

Question

A processor takes one clock cycle to execute each instruction, when no memory stalls are present. Its one level cache has a miss rate of 3% and the main memory takes 504 clock cycles to be accessed. The CPI taking into account the memory stall cycles, assuming 1.56 accesses to memory per instruction is A processor takes one clock cycle to execute each instruction, when no memory stalls are present. Its one level cache has a miss rate of 5% and the main memory takes 875 clock cycles to be accessed. The CPI taking into account the memory stall cycles, assuming 1.96 accesses to memory per instruction is A processor takes one clock cycle to execute each instruction, when no memory stalls are present. Its one level cache has a miss rate of 12% and the main memory takes 393 clock cycles to be accessed. The CPI taking into account the memory stall cycles, assuming 1.35 accesses to memory per instruction is

Explanation / Answer

CPI(base) is 2 (without any memory stalls, if we never had to access memory)

CPI(stall) = CPI(base) + Average Memorystall cycles = CPI Base + Memory accesses /Instruction *Miss rate +Miss Penalty

Answer 1:

Miss penalty: 504 cycles

Miss percentage: 3%

= 2+ (1.56)*3/100*504 = 2+23.58 = 25.58

Answer 2:

Miss penalty: 875 cycles

Miss percentage: 5%

= 2+ (1.96)*5/100*875= 2+85.75 =87.75

Answer 3:

Miss penalty: 393 cycles

Miss percentage: 12%

= 2+ (1.35)*12/100*393= 2+63.66 =65.66

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote