Question #45245

A 4-way set-associative cache memory unit with a capacity of 16 KB is built using a block
size of 8 words. The word length is 32 bits. The size of the physical address space is 4 GB.
The number of bits for the TAG field is _____
1

Expert's answer

2014-08-25T10:19:07-0400

Answer on Question #45245 – Engineering - Other

A 4-way set-associative cache memory unit with a capacity of 16 KB is built using a block size of 8 words. The word length is 32 bits. The size of the physical address space is 4 GB. The number of bits for the TAG field is

Solution


Physical address size = 32 bits.

Cache size = 16k bytes = 2142^{14} Bytes.

Block size = 8 words = 8 · 4 Byte = 32 Bytes (where each word = 4 Bytes).

No. of blocks = 21425=29\frac{2^{14}}{2^5} = 2^9.

Block offset = 9 bits.

No. of sets = 294=27\frac{2^9}{4} = 2^7.

Set offset = 7 bits

Byte offset = 8 · 4 Bytes = 32 Bytes = 252^5 = 5 bits.


TAG=32(7+5)=20 bits.TAG = 32 - (7 + 5) = 20 \text{ bits}.


Answer: 20 bits.

www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Assignment Expert
10.10.14, 11:20

Dear Sujata Roy, You're welcome. We are glad to be helpful. If you liked our service please press like-button beside answer field. Thank you!

Sujata Roy
26.08.14, 00:57

Thanks.

LATEST TUTORIALS
APPROVED BY CLIENTS