134k views
4 votes
2. A computer is using a fully associative cache and has 216 bytes of memory and a cache of 64 blocks, where each block contains 32 bytes.(15 points) a. How many blocks of main memory are there

User Aun
by
5.0k points

1 Answer

6 votes

Answer:

2048 blocks

Step-by-step explanation:

From the information given:

The memory size of a computer with fully associative cache = 2¹⁶ bytes

The no. of blocks in a single cache = 64

In which each block size = 32 bytes

The no of blocks in the main memory = memory size ÷ block size

The no of blocks in the main memory = 2¹⁶ ÷ 32

The no of blocks in the main memory = 2¹⁶ ÷ 2⁵

The no of blocks in the main memory =
2^(16-5)

The no of blocks in the main memory = 2¹¹

The no of blocks in the main memory = 2048 blocks

User Matharden
by
5.3k points