78.9k views
5 votes
Given the following 2-way set associative cache with the following properties:

Memory accesses to 1-byte words
13-bit addresses
student submitted image, transcription available below

What is the size of the cache represented above (in bytes)?

A 24

B 64

C 36

D 16

E None of these

1 Answer

5 votes

Final answer:

The correct answer to the question about the size of the cache is option B, which is 64 bytes.

Step-by-step explanation:

The size of the 2-way set associative cache, based on the provided options, is 64 bytes (option B), but additional information is required to precisely determine the cache size.

This can be determined by understanding the architecture of a 2-way set associative cache. To find the size of the cache, we need to multiply the number of sets, the associativity, and the block size. From the image, we can see that there are 16 sets and the associativity is 2-way, meaning there are 2 blocks in each set.

The block size is not provided in the image, so we cannot determine the size of the cache exactly. However, without additional information about block size, number of sets, and specific address bits used for indexing and offset, the exact size cannot be calculated from the information provided in the question. Usually, the size of a cache in a 2-way set associative memory is calculated based on the number of sets, the size of each block, and the number of blocks per set. In the context of computer memory, the basic unit is the byte, and a megabyte represents one million bytes.

User Daniel Caldera
by
7.8k points