Question

4B, 20%) compare performance of a Processor with cache vs. without cache. Assume an Ideal processor with 1 cycle memory acces
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Processor without cache:-

Since main memory access time = 8 cycles

And there are 40% instruction using memory data access. Hence out of 100000 instruction, there will be 100000*0.4 = 40000 instruction which will access memory data.

Hence total execution time = (number of instructions + number of instruction accessing memory data)*(number of cycles in memory access) = (100000 + 40000)*8 = 140000*8 cycles = 1120000 cycles

Processor with cache:-

Total execution time =( (hit rate of instructions)*(number of instructions) + (hit rate of data)*(number of memory access) )*(number of cycles in cache access) + ( (miss rate of instructions)*(number of instructions) + (miss rate of data)*(number of memory access) )*(number of cycles in cache access +number of cycles in memory access)

= ( 0.9*100000 + 0.85*40000 )*1 + (0.1*100000 + 0.15*40000)*(1+8) = 124000*1 + 16000*9 = 268000 cycles

Please comment for any clarification.

Add a comment
Know the answer?
Add Answer to:
4B, 20%) compare performance of a Processor with cache vs. without cache. Assume an Ideal processor with 1 cycle memory access, CPI1 Assume main memory access time of 8 cycles Assume 40% instruct...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT