123k views
3 votes
A new company has proposed a number of different cache layouts for their system and you’ve

been asked to come in and calculate the overhead for each of the different caches. Their
system uses a cache with 512 B of data storage capable of addressing 4 GB of
byte-addressable memory. Stores will be handled by write-back and allocate-on-write policies.
Please be sure to show the work for your calculations.

A. The first design is a fully associative cache with a block size of 32 bytes, how many bytes of
overhead would the cache keep in total (including any necessary tag bits?, valid bits,? dirty
bits?, or LRU bits?)? [5]

B. Their next design utilizes a direct mapped cache with 16 different cache lines. How many
bytes of overhead would the cache keep in total (including any necessary tag bits?, valid
bits,? dirty bits?, or LRU bits?)? [5]

C. Finally, they’ve suggested a 2-way set associative cache with 4 different sets. How many
bytes of overhead would the cache keep in total (including any necessary tag bits?, valid
bits,? dirty bits?, or LRU bits?)? [5]

User Wahkuna
by
5.1k points

1 Answer

5 votes

Answer:

66 bytes, 50 bytes and 27 bytes

Step-by-step explanation:

Cache can be defined as an area or type of computer memory in which information that is often in use can be stored temporarily and got to especially quickly.

It's a hardware or software that is used to store something, usually data, temporarily in a computing environment.

See attachment for a step by step solution to the questions.

A new company has proposed a number of different cache layouts for their system and-example-1
User Martin Ackermann
by
5.3k points