retagged by
707 views
0 votes
0 votes
consider a computer with 4 GB main memory synchronized with CPU speed using 8-way set associative cache of 16 KB. memory system is organized into 64 word blocks and word length of CPU is 64 bits. the size of tag in cache line in the set is ______ bits.

(answer is 21)
retagged by

1 Answer

1 votes
1 votes

Main Memory= 4GB=2^2 * 2^30= 2^32 Bytes

Physical Address= 32 bits

Cache size= 16KB = 2^4 * 2^10= 2^14 Bytes

Block offset= 64 word=2^6*2^3=2^9 Bytes(because word size is 64 bits)

No. of blocks=2^14/2^9= 2^5

No of sets= 2^5/2^3=2^2

Tag= 32-(2+9)= 21 bit

reshown by

Related questions

3 votes
3 votes
1 answer
1
0 votes
0 votes
1 answer
4