View the step-by-step solution to:

Question

Suppose a computer using fully associative cache has 264

style="color:#000000;">bytes of byte-addressable main memory and a cache of 128 blocks, where each cache block contains 64 bytes?

a)     How many blocks of main memory are there?

b)     What is the format of a memory address as seen by the cache, i.e., what are the sizes of the tag and offset fields?

c)     To which cache block can the memory address 0x0000000000021ABC map?


Suppose a byte-addressable computer using set associative cache has 264 byes of main memory and a cache of 64 blocks, where each cache block contains 4 bytes.


a)     If this cache is 2-way set associative, what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, set, and offset fields?

 

b) If this cache is 4-way set associative, what is the format of a memory address as seen by the cache?

Top Answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question