Computer Science, asked by amiedibba24, 2 days ago

A set-associative cache has a block size of four 16-bit words and a set size of 2. The cache can accommodate a total of 4096 words. The main memory size that is cacheable is 64k 32 bits. Design the cache structure and show how the processors addresses are interpreted.

Answers

Answered by ghannahline88
9

Answer:

A set-associative cache has a block size of four 16-bit words and a set size of 2. The cache can accommodate a total of 4096 words. The main memory size that is cacheable is 64k 32 bits. Design the cache structure and show how the processors addresses are interpreted.

hope you like my answer

please follow me and mark this as brainliest

Answered by kaushanimisra97
1

Answer:

Four 16-bit words make up the block size and two words make up the set size of a set-associative cache. Four thousand nine hundred sixty words can fit in the cache. A 64k by 32-bit main memory block can be cached.

Explanation:

What is  set-associative cache ?

The cache memory has 64 blocks.

Every cache set has four blocks.

4096 blocks divided by the main memory size equals 212.

block size (128 words plus 27 words)

Primary Memory Bits Address

4096 blocks in main memory is 212 blocks, which is 212 blocks multiplied by 27 to get 219 blocks.

As a result, the main memory will have 19 bits.

Address of Bits in Memory Cache (TAG, SET and Word Fields)

4096 blocks divided by 212 is the main memory size.

In light of this, the tag and set field combined will have 12 bits.

12 bits from TAG plus SET

64/4 = 16 sets total

A total of 16 = 24 sets make up the cache.

SET = 4 bits

TAG is equal to 12 bits minus 4 bits, which equals 8 bits.

128 words (or 27 words) make up each block.

The Word Field will therefore be 7 bits in length.

To Learn more About set-associative cache Refer To:

https://brainly.in/question/21495216

https://brainly.in/question/49077934

#SPJ2

Similar questions